Skip to content

8042/hotfix/false success on author merge#8735

Merged
jimchamp merged 5 commits into
internetarchive:masterfrom
benbdeitch:8042/hotfix/False-Success-On-Author-Merge
Feb 21, 2024
Merged

8042/hotfix/false success on author merge#8735
jimchamp merged 5 commits into
internetarchive:masterfrom
benbdeitch:8042/hotfix/False-Success-On-Author-Merge

Conversation

@benbdeitch

Copy link
Copy Markdown
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
Copy Markdown

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.

@jimchamp jimchamp left a comment

Copy link
Copy Markdown
Collaborator

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.

Comment thread openlibrary/plugins/openlibrary/js/merge.js Outdated
@jimchamp
jimchamp merged commit 6f0a4b2 into internetarchive:master Feb 21, 2024
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