-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Displays author name on merge #9920
Displays author name on merge #9920
Conversation
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.
Awesome @DanielleInkster ! A few small fixes but looking great so far 😊 Note I noticed this in my testing erroring:
https://testing.openlibrary.org/works/merge?records=OL6151392W,OL31613496W
Some sort of error is happening and only the result row is getting rendered!
Yes that's exactly correct! We don't want to use |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #9920 +/- ##
==========================================
+ Coverage 16.06% 17.12% +1.06%
==========================================
Files 90 89 -1
Lines 4769 4752 -17
Branches 832 831 -1
==========================================
+ Hits 766 814 +48
+ Misses 3480 3428 -52
+ Partials 523 510 -13 ☔ View full report in Codecov by Sentry. |
2253ae3
to
9474056
Compare
@cdrini - I'm not able to access this unfortunately. |
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.
Idk Vue and my JavaScript is very rusty, and I also haven’t really looked at the HTML structure of the rest of the site, so take this comment with a tiny grain of salt! 😅
9474056
to
48a7178
Compare
@cdrini - I think I've covered everything except the error - I'm not able to access the link you've included. Can you please take a look when you've got a minute? |
Hi @DanielleInkster apologies for the delay, I was on holiday last week! IA/OL are currently offline, but I'll be able to test this once they're back up (see #9947 (comment) ). |
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 looks great @DanielleInkster , nice work! One small style tweak. I tested merging works and the author names loaded/displayed perfectly!
I noticed one issue, which was that the author name didn't appear for the "merged" work, but we can tackle that in a future issue/pr.
Closes #9811
Displaying the author’s name next to the OL...A identifier making it easier to distinguish between works by different authors.
Technical
utils.js
Added
get_author_name
function to fetch the name of the author associated with the id and append to the record.AuthorRoleTable.vue
Added p tag to display authors name, as well as class to formate with CSS.
MergeTable.vue
Created
enhancedRecords
to include author name and added to template in order to display. Added CSS to display name next to ID.*** I've not added
enhancedRecords
to themerge
function in this file as I couldn't verify if this would impact what is saved when merging works. Can someone please clarify?***Testing
npm run serve --component=MergeUI
.*** I was not able to find any JS tests for the files associated with this ticket. If needed, I can create if directed to the correct directory.***
Screenshot
Stakeholders
@cdrini