-
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
Adding missing elements from physdesc #1482
Conversation
f3c30db
to
20331c1
Compare
Hi @randalldfloyd -- nice! This works great for me locally. My only suggestion is maybe to add a test that captures the very helpful directions you laid out in your comment above. So, something like checking that "Physical facet: Compact digital disc Your tests for the indexing are great but this would make sure the elements are appearing on the pages. Thoughts? |
@marlo-longley Glad you asked that because I had the same question myself. I tried to get a feel for whether not I should test for display via the collection/component page feature specs, so I compared what's currently indexed/configured for display with what's actually being tested that way. As it turns out, there's a lengthy list of fields that aren't tested for display (and some have no indexing coverage), including the new ones from #1466, but it's especially true of component fields - there's not a lot of fielded data tested on the component page at all. Based on that I wasn't sure how necessary it was to make everything track one-to-one. But I can definitely do it if we want to try to establish a pattern for doing so in the future. |
I agree that feature specs would be helpful here (and for the other fields we have added in this sprint). We do have some existing that we can just supplement: @randalldfloyd I'd recommend adding the feature tests for just the fields that this PR adds to the display. We can create another ticket for writing tests for the fields from #1466 and any others that may be missing. |
Thanks @seanaery ! Yeah the more I thought about it, my question was more for the missing elements still on the board than for this PR specifically, so having that consensus is great. |
6249895
to
7dd7852
Compare
7dd7852
to
d57a9c8
Compare
@seanaery @marlo-longley The physdesc elements are now tested in the collection/component feature specs. I had to disable a rubocop metric for the collection page If we don't like doing that I can find some arbitrary way to group those expectations into smaller examples, but either way it sounds like we plan on growing that list of tested elements. |
@@ -73,7 +73,7 @@ | |||
end | |||
end | |||
|
|||
it 'background has configured metadata' do | |||
it 'background has configured metadata' do # rubocop:disable RSpec/MultipleExpectations |
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'm fine with this.
This is great @randalldfloyd . Thanks too for all the revisions to tests and fixtures, that helps a lot! |
This PR adds individual indexing and display of the missing child elements of
physdesc
at both a collection and component level . In doing so, it carefully preserves the preexisting behaviors of theextents
child element.Assuming the test app is already running this commit level locally, this can be tested with:
For the new document In the locally running test app ...
Summary should contain:
Background should contain:
This component in the document should contain: