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

feat(series,relationship): show revision history for series and relationship attributes #669

Merged
merged 7 commits into from
Aug 16, 2021

Conversation

akashgp09
Copy link
Contributor

@akashgp09 akashgp09 commented Jul 16, 2021

Summary

Show revision diffs for series and relationship atrributes.

@coveralls
Copy link

coveralls commented Jul 16, 2021

Coverage Status

Coverage decreased (-0.08%) to 61.233% when pulling 5c40158 on akashgp09:Series-Revision into 27c5cca on bookbrainz:series-entity.

Contains a PR for the addition of relationship attributes to revision diffs
Copy link
Member

@MonkeyDo MonkeyDo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there are still some issues to iron out, but this is already working pretty well.
I updated the bookbrainz-data-js package and deployed this on test.bookbrainz.

I'm seeing no diffs changes in two revisions: https://test.bookbrainz.org/revision/29907 and https://test.bookbrainz.org/revision/29908
Each revision has a note explaining what I changed.

The attributes do appear on some revisions, but I think only when the relationship is created. For example: https://test.bookbrainz.org/revision/29905

I think this may be because in the formatRelationship function we detect addition and removal of relationships, but not modifications?

src/server/helpers/diffFormatters/entity.js Outdated Show resolved Hide resolved
src/server/helpers/diffFormatters/entity.js Outdated Show resolved Hide resolved
@MonkeyDo MonkeyDo merged commit 829167c into metabrainz:series-entity Aug 16, 2021
@akashgp09 akashgp09 changed the title feat(series,relationship): add revision for series and relationship attributes feat(series,relationship): Show revision history for series and relationship attributes Aug 20, 2021
@akashgp09 akashgp09 changed the title feat(series,relationship): Show revision history for series and relationship attributes feat(series,relationship): revision history for series and relationship attributes Aug 20, 2021
@akashgp09 akashgp09 changed the title feat(series,relationship): revision history for series and relationship attributes feat(series,relationship): show revision history for series and relationship attributes Aug 20, 2021
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.

3 participants