-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
BB-585: Revisions should clearly mark removed entities #626
BB-585: Revisions should clearly mark removed entities #626
Conversation
Signed-off-by: Akash Gupta <akashgp9@gmail.com>
Signed-off-by: Akash Gupta <akashgp9@gmail.com>
Signed-off-by: Akash Gupta <akashgp9@gmail.com>
Signed-off-by: Akash Gupta <akashgp9@gmail.com>
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 works well for the most part. Seems to display deleted entities correctly in all cases I checked.
I'm seeing a regression in the way merged entities are displayed though, showing the BBID of the entity they are merged into rather than their own BBID :
Compare this screenshot from bb.org:
… to this one running this PR locally:
A clue might lie in this comment in the deleted code in diffFormatters/entity.js :
For entities without data (deleted or merged), we use getEntityParentAlias instead which returns a JSON object
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 think this is almost ready. Deleted entities are shown as expected, so that part seems solved.
However I believe that now a revision where we create a new entity will appear like the entity was deleted:
Screenshot from this revision mentioned in the BB-585 ticket: http://localhost:9099/revision/3212
Clarify the meaning of the "new", "merged" and "deleted" badges in the revision page, as well as the hover text on strikethrough entity names (deleted entities)
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.
Thanks for this good feature !
Now it will be a lot clearer when an entity has been deleted, even looking at its history.
I took the liberty to make the modifications I suggested on IRC; I added hover text for the strikethrough names and for the "new", "deleted" and "merged" badges to help avoid possible confusion.
Problem
This PR Fixes: BB-585
Solution
Before
After
Areas of Impact