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

MBS-8570 / MBS-12012: External-link editor existing error enhancements #2301

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

reosarevok
Copy link
Member

@reosarevok reosarevok commented Oct 6, 2021

Fix MBS-8570 / MBS-12012

See commit messages.

@reosarevok reosarevok added the Bug Bugs that should be checked/fixed soonish label Oct 6, 2021
@reosarevok
Copy link
Member Author

Actually, looking at #2287 it seems that we could use "deleted" in the state there to improve the implementation of MBS-8570, too.

@reosarevok reosarevok changed the title MBS-12010 / MBS-8570: External-link editor existing error enhancements MBS-12010 / MBS-8570 / MBS-12012: External-link editor existing error enhancements Oct 12, 2021
@reosarevok
Copy link
Member Author

Made some changes to the second commit to better take advantage of the deleted links now staying in state with highlights.

@reosarevok reosarevok force-pushed the MBS-12010 branch 2 times, most recently from b517782 to f7f8d5f Compare October 21, 2021 12:21
@reosarevok
Copy link
Member Author

I think the errors this is hitting in selenium now are mostly connected to MBS-12032 (which I'm not sure how to fix).

@reosarevok
Copy link
Member Author

Cherry-picked 068b6c7 into its own PR since it's blocking users from editing so we should fix that soonish: #2322

@reosarevok reosarevok changed the title MBS-12010 / MBS-8570 / MBS-12012: External-link editor existing error enhancements MBS-8570 / MBS-12012: External-link editor existing error enhancements Nov 3, 2021
@yvanzo yvanzo added this to the 2021-11-29 milestone Nov 17, 2021
@yvanzo
Copy link
Contributor

yvanzo commented Nov 19, 2021

@reosarevok: Can you please rebase it on current master to see if CI tests pass again?

@yvanzo yvanzo marked this pull request as draft November 19, 2021 12:17
@reosarevok
Copy link
Member Author

I can, but I doubt they will, as I said above I think that's because of it hitting MBS-12032. You've played with this code more, do you have any suggestions on how to fix that bug?

We shouldn't check for duplicates based on both kept and deleted links,
since that means the duplicate is still detected even when deleting
an already existing dupe.

The reason we did this was to avoid an editor deleting a relationship,
then adding the exact same relationship. We can still block that
by checking it separately only if the link is new or changed,
and actually giving a more useful error message than "already exists"
that explicitly tells the user to prefer the existing relationship
they are deleting.
Example of legitimate use case: Artist "Example" has official homepage
at http://example.com from 2010 to 2011 and from 2016 to present
(because the homepage was down or elsewhere in the meantime).
This could use a lot more changes, but let's at least
get the simple ones done.
Avoids a "Form submission canceled because the form is not connected"
console warning.
@yvanzo
Copy link
Contributor

yvanzo commented Nov 19, 2021

I probably have to review #2322 in the first place?

@reosarevok
Copy link
Member Author

Well, that's been merged but you can take a look :) The bug existed before that though.

@reosarevok reosarevok modified the milestones: 2021-11-29, 2021-12-12 Nov 23, 2021
@reosarevok reosarevok removed this from the 2021-12-13 milestone Dec 8, 2021
@atj
Copy link
Contributor

atj commented May 5, 2023

Please ping me when this ends up on beta (related irc chat). Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bugs that should be checked/fixed soonish
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants