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

8042/hotfix/false success on author merge #8735

Conversation

benbdeitch
Copy link
Collaborator

Closes #8042

Hotfix, so that unsuccessful merges don't display as successful.

Technical

The Ajax request for merges was set to always load in the 'successful merge element' on completion, regardless of whether or not the merge was successful. It has been split into a 'success' function and an 'error' function respectively.

Testing

Simply attempt an impossible merge, and an error message should show up.

Screenshot

image

Stakeholders

@cdrini

@codecov-commenter
Copy link

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (d376947) 16.62% compared to head (cd6ef8f) 16.61%.
Report is 3 commits behind head on master.

Files Patch % Lines
openlibrary/plugins/openlibrary/js/merge.js 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8735      +/-   ##
==========================================
- Coverage   16.62%   16.61%   -0.02%     
==========================================
  Files          88       88              
  Lines        4698     4701       +3     
  Branches      837      837              
==========================================
  Hits          781      781              
- Misses       3399     3402       +3     
  Partials      518      518              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@jimchamp jimchamp left a comment

Choose a reason for hiding this comment

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

Thanks, @benbdeitch, and sorry for the delay.
This seems to be working. I'm going to remove that confusing comment and merge this.

openlibrary/plugins/openlibrary/js/merge.js Outdated Show resolved Hide resolved
@jimchamp jimchamp merged commit 6f0a4b2 into internetarchive:master Feb 21, 2024
3 checks passed
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.

Author merge UI displays "Success" when request returns 400
3 participants