-
Notifications
You must be signed in to change notification settings - Fork 6
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
[#911] Added configuration options and logic to hide unused functionality #371
Conversation
…le page But only if Samenwerken(plans) isn't enabled (because Plans re-use part of the Action views and user interaction)
This catches the edge case where Plan's are disabled after users were assigned tasks so we can't link back to the plan
…aireStep UI/links when no published steps
Codecov Report
@@ Coverage Diff @@
## develop #371 +/- ##
===========================================
+ Coverage 96.51% 96.56% +0.04%
===========================================
Files 457 461 +4
Lines 14452 14629 +177
===========================================
+ Hits 13949 14126 +177
Misses 503 503
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
def clean(self): | ||
super().clean() | ||
|
||
if self.show_plans and not self.show_actions: |
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.
Netjes opgelost :)
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.
Tested locally, works as expected. Only one remark about the separate migrations but no worries, especially now that's merged!
@vaszig thanks, glad you double-checked 👍 |
@vaszig I don't see it here but I'm still interested about the migration feedback, but anyway, there are two because I was trying to make clean commits instead of piling everything into one. |
Yes, it's clear enough. It makes sense to have them separately according to the nice and clear functionality-based commits. |
We had to do some interpretation on the ticket, because Actions are a thing with or without Plan/Samenwerken.
So I made it so there is an option to disable Samenwerken and remove it from menu but keep general Action functionality, and another option to also disable the general Actions (which requires disabled Plan).
Additionally there was an ask to hide QuestionaireStep (Zelfcheck) if there are no published QuestionaireStep's, which was more of a bug-fix then a feature request.
It might make sense to overview the code per-commit as they are reasonably clean.