-
Notifications
You must be signed in to change notification settings - Fork 0
Update access type values #152
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
Conversation
Pull Request Test Coverage Report for Build 8485137780Details
💛 - Coveralls |
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.
The change here seems fine, and I see it reflected in the review app. I have a question, though, about some other references to the access_type
helper - for example, whether the one here needs to have its value updated as well?
https://github.com/MITLibraries/timdex-ui/blob/main/app/views/record/_record_geo.html.erb#L45
I ask because when I look at record gismit:US_P1TRANTERM_2006
I'm seeing a "Download full metadata" button on the desktop screen, and I'm curious if that's still intended - although maybe that's going to be dealt with in a separate ticket.
At any rate, my question is whether there are other uses of this helper which also need to be updated.
@matt-bernhardt Ah yeah, good catch. In the hasty process of trying to fixing this, I'd forgotten how many views that method helps. To answer your question, that 'download metadata' button should appear for all MIT-provided records, including the one you shared. It should not, however, appear for the OGM records, since it would be the same URL as the access button link. So, a couple more things to confirm in this most recent change:
Thanks for reviewing this with greater care than I wrote it! |
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.
This all looks good to me - thanks for noting the sorts of conditions that I should be looking for (which I believe I've identified in my poking at the review app).
dbb45fc
to
4a2f581
Compare
Why these changes are being introduced: The "access to files" values have been changed in the data mapping layer. We need to make a corresponding change in a few partials where the value of that field is a rendering condition. Relevant ticket(s): * [GDT-252](https://mitlibraries.atlassian.net/browse/GDT-252) How this addresses that need: This updates the values as needed in the access_button, record_geo, and geo_data_info partials, as well as the access_type helper method. Side effects of this change: It was a bit tricky to wrangle and update all of these hardcoded values. Though they are unlikely to change again, this is something that we may want to consider refactoring.
4a2f581
to
c7f05d4
Compare
Why these changes are being introduced:
The "access to files" values have been changed in the data mapping
layer. We need to make a corresponding change in a few partials
where the value of that field is a rendering condition.
Relevant ticket(s):
How this addresses that need:
This updates the values as needed in the access_button, record_geo, and
geo_data_info partials, as well as the access_type helper method.
Side effects of this change:
It was a bit tricky to wrangle and update all of these hardcoded values.
Though they are unlikely to change again, this is something that
we may want to consider refactoring.
Developer
Accessibility
New ENV
Approval beyond code review
Additional context needed to review
To confirm the changes, check a full record for each of the three access types. The download buttons should contain the following text, based on the access type:
MIT authentication required
: "Download geodata filesfa-lock icon
MIT authentication"*
no authentication required
: "Download geodata files"*
unknown: check with owning institution
: "Viewinstitution name
record"Code Reviewer
Code
added technical debt.
Documentation
(not just this pull request message).
Testing