-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/sprints functionality pt4 #136
Conversation
…-functionality-pt4
…-functionality-pt4
I think redirect would be better. Also, yes, disable the button. |
I do want it to be optional. They are all phrased in a way that's optional. It's silly to force user to write "n/a" or something like that. |
we can change to optional but it shouldn't really affect the implementation, you should be able to handle both required and non require questions based on the question data. I don't understand what the fuss is, all we have to do is the change the isRequired in the database. I think the bigger issue is the check in form is very different now, especially for product owners and scrum masters, they have a completely different form it seems (This is a recent change) |
… not for the current sprint
|
ok, so I'm not sure if this is a bug or it's working as intended. If I change the date manually in the code (changing to a past date seems to work fine but changing to future date doesn't. I changed to june 12 and I get that behavior), the checkin and voyage submission doesn't work. It just redirects to the dashboard page. Also, I see a lot of code like this written out manually
But we have this already in the getCurrentVoyageTeam util file. You should be able to re-use that. Also, if I change the date manually to something like new Date(2024, 7, 12), the dashboard just completely breaks. Is that a date-fns thing or some kind of issue somewhere in the code? This is the error I get https://i.imgur.com/keBqAuq.png |
I forgot to remove an additional check related to
Okay, just updated it a little bit, added
|
I was testing to see what would happen if I change the date to something that's outside the voyage dates so I am aware of that part. I was thinking if the date is outside the voyage dates, it should behave the same way as if a user tries to access something they don't have access to, and redirect to the dashboard page or something like that, but instead the app just completely breaks. |
Well, I think the primary reason the app breaks if you try to change date like this in So... hmmm... idk 🤔 If you want I can add some redirects but I guess I'll have to add them to the user dashboard too... but again I think this scenario seems unlikely (that a user somehow can be outside the voyage date while the voyage is still 'active.. okay it's possible if we have some bug in our code related to date-time conversion, all this timezone thing, but again the bug itself should better be fixed instead) |
@Dan-Y-Ko btw Jessica has two |
That is something that is being discussed for p2. There are cases where a user can be part of multiple teams in a voyage, so we have to account for that. For this initial beta, that won't be the case, so it shouldn't be a problem for now |
Ok sounds good, maybe we can just put this on the side for now |
Feature/sprints functionality pt4
Description
weekly check-in form
andsubmit voyage form
are fetched from the server now, and then a corresponding validation schema is created.weekly check-in form
(can only be submitted whenDid you deploy to Production at the end of this Sprint
isyes
, but the backend team is fixing it => fixed!)submit voyage form
(not working currently, need to re-seed the dev database first).weekly check-in form
is submitted successfully, the user is redirected to the corresponding sprint page, and a success modal is displayed.In the next PR:
submit voyage form
functionality (if anything is not working)Issue link
Fixes # (issue)
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: