Skip to content
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

Dp 3047 present additional metadata items #91

Merged
merged 62 commits into from
Feb 26, 2024

Conversation

mitchdawson1982
Copy link
Collaborator

@mitchdawson1982 mitchdawson1982 commented Feb 20, 2024

resolves ministryofjustice/analytical-platform#3047 & ministryofjustice/analytical-platform#2961

Adds

  • sensitivityLevel & whereToAccessDataset as additional filters in the UI and now passes the values of these fields into the filter for searching.
  • Selected filters are moved into their own partial template and there is now logic to build them based on the clear-filter_href dictionary keys that is passed in the context.

Changes

  • domain to a single select element from multi-select check box
  • Clear filter link is now only displayed if there are filters to clear rather than on all requests
  • encode_without_filter now checks for the type of value and responds appropriately

Also:

  • update pre-commit
    • add sync_with_poetry hook to keep pre-commit in sync with pyproject.toml
    • config flake8
    • config isort to use black via pyproject.toml
  • Add .secrets.baseline for detect-secrets
  • move testing libraries to dev.dependencies in pyproject.toml

@mitchdawson1982 mitchdawson1982 marked this pull request as draft February 20, 2024 23:11
tom-webber and others added 10 commits February 21, 2024 13:48
- add sync_with_poetry hook to keep pre-commit in sync with pyproject.toml
- config flake8
- config isort to use black via pyproject.toml
Add .secrets.baseline for detect-secrets
move testing libraries to dev.dependencies in pyproject.toml
…to_access choice value to 'Analytical_Platform' to avoid spaces.

q
exit
quit()
q
��[200~classifications~classifications
@mitchdawson1982 mitchdawson1982 force-pushed the dp-3047-present-additional-metadata-items branch from bfbc39f to 389a609 Compare February 22, 2024 14:51
home/admin.py Outdated Show resolved Hide resolved
home/forms/search.py Outdated Show resolved Hide resolved
home/forms/search.py Outdated Show resolved Hide resolved
home/forms/search.py Outdated Show resolved Hide resolved
home/service/search.py Outdated Show resolved Hide resolved
home/service/search.py Outdated Show resolved Hide resolved
home/templatetags/clear_filter.py Outdated Show resolved Hide resolved
home/templatetags/clear_filter.py Show resolved Hide resolved
templates/partial/filter.html Outdated Show resolved Hide resolved
templates/partial/filter.html Outdated Show resolved Hide resolved
LavMatt and others added 17 commits February 26, 2024 12:58
Domain will have top level and subdomain selections, and work similarly
to "Topic/Sub-Topic" on GOV.UK search.

The form will submit domain and subdomain as separate fields, so we
need to combine them on the backend.

If javascript is not enabled, then the subdomain field is not displayed
and it will work as before.

This is tested using jest and jest-dom.
The chromedriver library updates more frequently than the chrome
distributed in ubuntu-latest, but these need to be the same version,
otherwise axe-core breaks.

As a workaround, try to install a version that matches whatever chrome
is on the path.

See also dequelabs/axe-core-npm#401 (comment)
@mitchdawson1982 mitchdawson1982 force-pushed the dp-3047-present-additional-metadata-items branch from 59d5cfb to 861c1a1 Compare February 26, 2024 16:04
@mitchdawson1982 mitchdawson1982 force-pushed the dp-3047-present-additional-metadata-items branch from 861c1a1 to 52ec70f Compare February 26, 2024 16:13
home/forms/search.py Outdated Show resolved Hide resolved
@mitchdawson1982 mitchdawson1982 merged commit 91ed261 into main Feb 26, 2024
3 checks passed
@mitchdawson1982 mitchdawson1982 deleted the dp-3047-present-additional-metadata-items branch February 26, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Present additional metadata items in front end
4 participants