-
Notifications
You must be signed in to change notification settings - Fork 26
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
Work list facets #1872
Work list facets #1872
Conversation
d8274c0
to
20e6fb8
Compare
it's unlikely actual work data will change within 30 seconds, whereas its common to click/unclick facets pretty quickly
@longhotsummer I have added the taxonomy and made the changes we discussed: https://www.loom.com/share/6a77b5aca43f4b8085476bc98f3e83e0?sid=8ee9a0b7-9f65-4ba3-8b21-f9ae4a424048 |
Looking great. Minor changes, please:
|
Oh and "Expression status" should be "Point in time status" |
- Document to Points in time - Expression status to Point in time
This reverts commit 2babd3e.
Advanced form tweaks
indigo_app/forms.py
Outdated
@@ -387,6 +387,21 @@ class WorkFilterForm(forms.Form): | |||
|
|||
advanced_filters = ['assent', 'publication', 'repeal', 'amendment', 'commencement', 'taxonomies', 'completeness'] | |||
|
|||
# Principal | |||
principal = forms.MultipleChoiceField(required=False, choices=[('principal', 'Principal'), ('not_principal', 'Not Principal'), ('stub', 'Stub'), ('not_stub', 'Not Stub')]) |
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.
I don't think the labels here have any reflection on reality, since the actual labels are driven by the facets calculation code.
indigo_app/forms.py
Outdated
@@ -354,8 +354,8 @@ def data_as_url(self): | |||
|
|||
class WorkFilterForm(forms.Form): | |||
q = forms.CharField() | |||
stub = forms.ChoiceField(choices=[('', 'Exclude stubs'), ('only', 'Only stubs'), ('temporary', 'Temporary stubs'), ('permanent', 'Permanent stubs'), ('all', 'Everything')]) | |||
status = forms.ChoiceField(choices=[('published', 'published'), ('draft', 'draft')]) | |||
stub = forms.MultipleChoiceField(choices=[('stub', 'Stub'), ('not_stub', 'Not stub'), ]) |
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.
note that we split out stubs into their own facet
Facets for the new work list view:
https://www.loom.com/share/780e9445853045d39ae45880518ce696?sid=74a77e9f-d7dd-416f-a1c1-c6c0c6d805a0