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

feat: OPTIC-107: Draft saving on view all #1637

Merged
merged 11 commits into from
Jan 8, 2024

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

drafts were being lost when view all was selected, this change ensures they are saved and notifies the user accordingly.

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.)

@yyassi-heartex yyassi-heartex changed the title eat: OPTIC-107: Draft saving on view all feat: OPTIC-107: Draft saving on view all Dec 5, 2023
@codecov-commenter
Copy link

codecov-commenter commented Dec 8, 2023

Codecov Report

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

Comparison is base (bb1c548) 68.30% compared to head (6f59542) 68.30%.
Report is 7 commits behind head on master.

Files Patch % Lines
src/components/TopBar/TopBar.js 33.33% 1 Missing and 1 partial ⚠️
src/stores/Annotation/Annotation.js 0.00% 2 Missing ⚠️
src/components/TopBar/Actions.js 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1637      +/-   ##
==========================================
- Coverage   68.30%   68.30%   -0.01%     
==========================================
  Files         443      443              
  Lines       28687    28691       +4     
  Branches     7629     7634       +5     
==========================================
+ Hits        19596    19597       +1     
- Misses       7841     7842       +1     
- Partials     1250     1252       +2     

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

src/components/TopBar/TopBar.js Outdated Show resolved Hide resolved
src/components/TopBar/TopBar.js Outdated Show resolved Hide resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@Travis1282
Copy link
Contributor Author

Travis1282 commented Jan 4, 2024

/git merge master

Workflow run
Successfully pushed new changes:
Merge remote-tracking branch 'origin/master' into fb-optic-107/save-draft-view-all (8c3fcea)

@Travis1282
Copy link
Contributor Author

Travis1282 commented Jan 4, 2024

/git merge master

Workflow run
Already up-to-date. Nothing to commit.

@Travis1282
Copy link
Contributor Author

Travis1282 commented Jan 8, 2024

/git merge master

Workflow run
Successfully pushed new changes:
Merge remote-tracking branch 'origin/master' into fb-optic-107/save-draft-view-all (5bbe35e)

@Travis1282 Travis1282 merged commit 08aa5b5 into master Jan 8, 2024
12 of 14 checks passed
@Travis1282 Travis1282 deleted the fb-optic-107/save-draft-view-all branch January 8, 2024 19:19
MasherJames pushed a commit to HelloPareto/label-studio-frontend that referenced this pull request Feb 29, 2024
* track time traveller update times to compare with draft update times, save notify about changes

* change where lastUpdate is set

* serialize before draft save, pass params

* fix time traveller time save

---------

Co-authored-by: Travis Clark <travisclark@Traviss-MBP-2.lan>
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.

None yet

4 participants