Skip to content

Fix Cradle item-creation success handling - #150

Open
addshore wants to merge 1 commit into
mainfrom
fix-cradle-result-spinner-forever
Open

addshore wants to merge 1 commit into
mainfrom
fix-cradle-result-spinner-forever

Conversation

@addshore

Copy link
Copy Markdown
Collaborator

Read the created entity from Widar's res field instead of last_res in both the subject and ShEx forms.

Previously, successful edits entered the error branch, leaving the spinner visible and hiding the created-item link. Retrying could create duplicate items.

Clear the spinner on failure and warn when no item ID is returned. Add regression tests for successful, failed, and incomplete responses.

I saw this on phabricator somewhere, however can't currently find the task, but expeirenced this while setting up a dev environment...

Read the created entity from Widar's res field instead of last_res in
both the subject and ShEx forms.

Previously, successful edits entered the error branch, leaving the
spinner visible and hiding the created-item link. Retrying could
create duplicate items.

Clear the spinner on failure and warn when no item ID is returned.
Add regression tests for successful, failed, and incomplete responses.

I saw this on phabricator somewhere, however can't currently
find the task, but expeirenced this while setting up a dev
environment...
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.

1 participant