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

fix: OPTIC-218: 'Annotation saved successfully' message is NOT displayed when user exit label stream using 'Submit and exit' option #293

Merged
merged 6 commits into from
Feb 1, 2024

Conversation

yyassi-heartex
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

minor tweak to give feedback to user on successful annotation save and exiting labeling flow

…yed when user exit label stream using 'Submit and exit' option
@@ -586,11 +586,14 @@ export class LSFWrapper {
// don't react on duplicated annotations error
{ errorHandler: result => result.status === 409 },
);
}, false, loadNext, exitStream);
Copy link
Collaborator

Choose a reason for hiding this comment

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

the only place passed this parameter in is this place, so please remove exiStream from submitCurrentAnnotation() as well.

src/sdk/lsf-sdk.js Outdated Show resolved Hide resolved
Comment on lines +594 to +596

if (exitStream) return this.exitStream();

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if (exitStream) return this.exitStream();
if (exitStream) return this.exitStream();

@yyassi-heartex yyassi-heartex merged commit b902638 into master Feb 1, 2024
5 checks passed
@yyassi-heartex yyassi-heartex deleted the fb-optic-218/confirm-message branch February 1, 2024 12:07
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.

3 participants