-
Notifications
You must be signed in to change notification settings - Fork 3
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
Separate exercise list into current/previous exercises #69
Conversation
That's a good idea. The 31 days cutoff seems fine to me. An alternative would be to consider as current only those exercises that are part of an active routine, or show all exercises that fulfill the former or latter condition. I have also no strong opinion here. I think it would be nicer if we omitted the heading "Current exercises". A similar approach is used for routines: There is a heading "Archive", but no heading "Current routines". We could also add a tooltip to explain what "Previous exercises" means (something like "Exercises that have not been done in the last 31 days"). The |
fe5a6fe
to
59b5bec
Compare
I'm in favor of using the 31 days cutoff for now and see how it goes. This is easily changed if we feel the behavior could be better.
Good suggestions - I changed the implementation accordingly. |
59b5bec
to
4827fbd
Compare
What would be the best way to fix the e2e tests?
As the test data is static (and in the past), all exercises likely show up in "Previous exercises" and don't seem to be found by |
The issue is that
We could make the test data parametrizable, so that a start date can be defined. A fixed value could be used for the API tests and a dynamic one for the E2E tests. But I think it would be also fine to not explicitly test this feature in the E2E tests. |
4827fbd
to
f51a6fd
Compare
Thanks for enhancing |
Some other minor changes:
|
I'm a bit confused what your intention of this change was. With the parametrization all exercises are now always considered as current and there is no second table with previous exercises, and thus the enhancement of
I'm not sure what the issue was, but your change should make the test more robust. |
aed4953
to
846bc63
Compare
I totally forgot to actually make that change. This is the case now. |
846bc63
to
409bbad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from two small details, it looks good to me!
409bbad
to
3c7b770
Compare
I just realized that there is a problem with the change in 64cf3bc. This change leads to an error if
Also, the virtual environment |
I chose the previous 31 days as the cutoff for current exercises, but have no strong opinion here...