-
Notifications
You must be signed in to change notification settings - Fork 58
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
Enable/disable scheduled reports #3871
base: main
Are you sure you want to change the base?
Conversation
…m/minvws/nl-kat-coordination into feature/disable-scheduled-reports
Quality Gate failedFailed conditions |
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.
Tiny suggestions, looks good otherwise
<td class="nowrap">{{ schedule.deadline_at }}</td> | ||
<td class="nowrap"> | ||
{% if not schedule.enabled %} | ||
{% translate "-" %} |
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.
Doesn't need to be translated
<td> | ||
{% if report.input_oois|length == 1 %} | ||
{% with ooi=report.input_oois.0 %} | ||
<a href="{% ooi_url 'ooi_detail' ooi organization.code query=ooi.mandatory_fields %}">{{ ooi|human_readable }}</a> | ||
{% endwith %} | ||
{% else %} | ||
{{ report.input_oois|length }} | ||
{{ report.input_oois|length }} {% translate "objects" %} |
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.
Would be nice to use pluralization here:
{% blocktrans count report.input_oois as objects %}
{{ objects }} object
{% plural %}
{{ objects }} objects
{% endblocktrans %}
Changes
This PR makes it possible to disable and enable scheduled reports.
It also makes some changes in the scheduled reports table conform the new design (see ticket).
Besides this, I've created enable/disable tags that haven't been implemented as a component yet. That's why I've implemented it the same way as how it's done for the grey label ("tags-color-grey-2").
Issue link
Closes #3124
Demo
Opname.2024-11-20.161301.mp4
QA notes
Check the video for an example.
Code Checklist
.env
changes files if required and changed the.env-dist
accordingly.Checklist for code reviewers:
Copy-paste the checklist from the docs/source/templates folder into your comment.
Checklist for QA:
Copy-paste the checklist from the docs/source/templates folder into your comment.