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

fix(revision): show type changes in revision page #660

Merged
merged 4 commits into from
Jul 15, 2021

Conversation

akashgp09
Copy link
Contributor

@akashgp09 akashgp09 commented Jul 2, 2021

Problem

Revisions for workType, authorType, publisherType, editionGroupType, editionFormat and editionStatus are not shown in the revision page.

Solution

  • Fixed some incorrect path name.
  • Modified formatChange function and conditional statement.

Screenshot:

1

New

Before

Screenshot from 2021-07-02 11-51-59

After

Screenshot from 2021-07-02 11-49-39

2

Edited

Before

Screenshot from 2021-07-02 11-52-07

After

Screenshot from 2021-07-02 11-57-00

Areas of Impact

@coveralls
Copy link

coveralls commented Jul 2, 2021

Coverage Status

Coverage decreased (-0.04%) to 60.84% when pulling a510820 on akashgp09:fix-revision into a837286 on bookbrainz:master.

when type value is edited revision for it isn't shown. Modified the conditional accordingly to include this case
Copy link
Contributor

@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.

Nice catch, and thanks for fixing that !

src/server/helpers/diffFormatters/base.js Outdated Show resolved Hide resolved
src/server/routes/revision.js Show resolved Hide resolved
Copy link
Contributor

@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.

Good to go !

@MonkeyDo MonkeyDo merged commit c7421f4 into metabrainz:master Jul 15, 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
3 participants