Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

fix: OPTIC-124: Save and update have success/fail toast messages #250

Merged
merged 6 commits into from
Nov 10, 2023

Conversation

Travis1282
Copy link
Contributor

PR fulfills these requirements

  • Commit message(s) and PR title follows the format [fix|feat|ci|chore|doc]: TICKET-ID: Short description of change made ex. fix: DEV-XXXX: Removed inconsistent code usage causing intermittent errors
  • Tests for the changes have been added/updated (for bug fixes/features)
  • Docs have been added/updated (for bug fixes/features)
  • Best efforts were made to ensure docs/code are concise and coherent (checked for spelling/grammatical errors, commented out code, debug logs etc.)
  • Self-reviewed and ran all changes on a local instance (for bug fixes/features)

Change has impacts in these area(s)

(check all that apply)

  • Product design
  • Frontend

Describe the reason for change

Toast messages should be displayed on save, update actions as well as draft save on leave

What does this fix?

(if this is a bug fix)

What is the new behavior?

(if this is a breaking or feature change)

What is the current behavior?

(if this is a breaking or feature change)

What libraries were added/updated?

(list all with version changes)

Does this change affect performance?

(if so describe the impacts positive or negative)

Does this change affect security?

(if so describe the impacts positive or negative)

What alternative approaches were there?

(briefly list any if applicable)

What feature flags were used to cover this change?

(briefly list any if applicable)

Does this PR introduce a breaking change?

(check only one)

  • Yes, and covered entirely by feature flag(s)
  • Yes, and covered partially by feature flag(s)
  • No
  • Not sure (briefly explain the situation below)

What level of testing was included in the change?

(check all that apply)

  • e2e
  • integration
  • unit

Which logical domain(s) does this change affect?

(for bug fixes/features, be as precise as possible. ex. Authentication, Annotation History, Review Stream etc.)

@Travis1282 Travis1282 changed the title fix: optic-124: save and update have success/fail toast messages fix: OPTIC-124: Save and update have success/fail toast messages Oct 17, 2023
src/sdk/lsf-sdk.js Outdated Show resolved Hide resolved
src/sdk/lsf-sdk.js Outdated Show resolved Hide resolved
@@ -563,7 +563,12 @@ export class LSFWrapper {
{ body },
// don't react on duplicated annotations error
{ errorHandler: result => result.status === 409 },
);
).then(result => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

promise chain is broken here because it doesn't pass result through. I'd remove current returns and added final return result the same way as in "update" version.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch, thanks!

@Travis1282 Travis1282 force-pushed the fb-optic-124/save-and-update-toast branch from 417683d to a73b540 Compare October 19, 2023 20:48
src/sdk/lsf-sdk.js Outdated Show resolved Hide resolved
@vladimirheartex
Copy link
Contributor

vladimirheartex commented Oct 30, 2023

/git merge master

Successfully pushed new changes:
Merge remote-tracking branch 'origin/master' into fb-optic-124/save-and-update-toast (ef919eb)

Workflow run

@vladimirheartex
Copy link
Contributor

vladimirheartex commented Nov 6, 2023

/git merge master

Successfully pushed new changes:
Merge remote-tracking branch 'origin/master' into fb-optic-124/save-and-update-toast (57ad59b)

Workflow run

@Travis1282 Travis1282 merged commit c55f66f into master Nov 10, 2023
5 checks passed
@Travis1282 Travis1282 deleted the fb-optic-124/save-and-update-toast branch November 10, 2023 01:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants