generated from nationalarchives/django-application-template
-
Notifications
You must be signed in to change notification settings - Fork 0
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
FIND-81:Add record attributes from CIIM to BE #15
Open
TNA-Allan
wants to merge
35
commits into
main
Choose a base branch
from
feature/FIND-81-integrate-ciim-get-attr
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,879
−16
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Conflicts: app/records/views.py config/settings/base.py test/records/test_views.py
TNA-Allan
changed the title
FIND-81:Add CIIM record attributes to BE
FIND-81:Add record attributes from CIIM to BE
Dec 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
Ticket URL: https://national-archives.atlassian.net/browse/FIND-81
About these changes
As part of the transfer from https://github.com/nationalarchives/ds-wagtail to use Rosetta API
This PR is BE focused to getting the record attributes from API response available to use in the record details template
app/templates/records/record_detail.html
. The attributes return raw data. There are separate tickets to address those attributes returning html in the data - the mark_safe/safe filter is differed until then.record
template variable to use in the record details templateHow to check these changes
This PR is BE focused, it can be tested as follows-
Ref to
Catalogue Data Elements
for record attributes and iaid exampleshttp://localhost:65533/catalogue/id/[iaid-value]/
add {{ record.[attribute-name] }} to
app/templates/records/record_detail.html
Before assigning to reviewer, please make sure you have