Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: LSDV-5035: Use created_at from draft as the annotation draft_created_at #4259

Merged
merged 6 commits into from
May 30, 2023

Conversation

bmartel
Copy link
Contributor

@bmartel bmartel commented May 26, 2023

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
  • Backend (Database)
  • Backend (API)
  • Frontend

Describe the reason for change

It was observed that the created_at date seemingly changes throughout the lifecycle of an annotation which causes some ui issues, but this is actually not true. The issue is that annotations that started as a saved draft become created_at the time the annotation is created. So this makes it so the connected draft_created_at keeps from from the draft through to the associated annotation so it can be used in the UI for filtering and sorting and maintain a consistent historical order for annotation tabs.

What feature flags were used to cover this change?

fflag_feat_back_lsdv_5035_use_created_at_from_draft_for_annotation_256052023_short

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?

Annotation, Draft

@netlify
Copy link

netlify bot commented May 26, 2023

Deploy Preview for label-studio-docs-new-theme canceled.

Name Link
🔨 Latest commit d0ac177
🔍 Latest deploy log https://app.netlify.com/sites/label-studio-docs-new-theme/deploys/64766cba45d91a0008bf9b31

@netlify
Copy link

netlify bot commented May 26, 2023

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit d0ac177
🔍 Latest deploy log https://app.netlify.com/sites/heartex-docs/deploys/64766cba2ab602000845c881

@github-actions github-actions bot added the feat label May 26, 2023
@codecov
Copy link

codecov bot commented May 26, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.01 🎉

Comparison is base (bb885be) 75.74% compared to head (811a0bb) 75.75%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4259      +/-   ##
===========================================
+ Coverage    75.74%   75.75%   +0.01%     
===========================================
  Files          156      156              
  Lines        12075    12081       +6     
===========================================
+ Hits          9146     9152       +6     
  Misses        2929     2929              

see 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bmartel bmartel changed the title feat: LSDV-5035: Use created_at from draft as the annotation created_at feat: LSDV-5035: Use created_at from draft as the annotation draft_created_at May 26, 2023
@robot-ci-heartex robot-ci-heartex enabled auto-merge (squash) May 30, 2023 21:38
@robot-ci-heartex robot-ci-heartex merged commit 613379c into develop May 30, 2023
26 of 36 checks passed
bmartel added a commit that referenced this pull request May 30, 2023
…eated_at (#4259)

* feat: LSDV-5035: Use created_at from draft as the annotation created_at

* fix the update statement as it cannot be mass assigned and should not be open to this

* save the draft created at to its own field to not disturb existing data

* [submodules] Build static heartexlabs/dm2

* [submodules] Build static heartexlabs/dm2
bmartel added a commit that referenced this pull request May 30, 2023
* feat: LSDV-5035: Use created_at from draft as the annotation draft_created_at (#4259)

* feat: LSDV-5035: Use created_at from draft as the annotation created_at

* fix the update statement as it cannot be mass assigned and should not be open to this

* save the draft created at to its own field to not disturb existing data

* [submodules] Build static heartexlabs/dm2

* [submodules] Build static heartexlabs/dm2

* fix: LSDV-5163: Storage errors AttributeError can't set attribute 'storage' when pre-signed proxy urls are turned on (#4243)

* fix: LSDV-5163: Storage errors AttributeError can't set attribute 'storage' when pre-signed proxy urls are turned on

* removing the cache on the server, too hard to predict that this won't cause gaps in the frontend cache and subsequent errors over time.

* forgot to commit the change to not set the self.storage property of the model

* Update feedback api.py

---------

Co-authored-by: bmartel <bmartel@users.noreply.github.com>

* fix: LSDV-5178: Update django version to fix CVE-2023-31047 (#4245)

Update django version to fix CVE-2023-31047

Co-authored-by: nik <nik@heartex.net>

* fix: LSDV-5199: API docs redoc version updated to fix DOMPurify incompatibility (#4267)

* [submodules] Build static heartexlabs/label-studio-frontend

* docs: LSF Update

* [submodules] Build static heartexlabs/dm2

* [submodules] Build static heartexlabs/dm2

* [submodules] Build static heartexlabs/label-studio-frontend

---------

Co-authored-by: bmartel <brandonmartel@gmail.com>
Co-authored-by: bmartel <bmartel@users.noreply.github.com>
Co-authored-by: niklub <lubimov.nicolas@gmail.com>
Co-authored-by: nik <nik@heartex.net>
Co-authored-by: Travis Clark <travisjosephclark@gmail.com>
shayantabatabaee pushed a commit to shayantabatabaee/label-studio that referenced this pull request Sep 19, 2023
…eated_at (HumanSignal#4259)

* feat: LSDV-5035: Use created_at from draft as the annotation created_at

* fix the update statement as it cannot be mass assigned and should not be open to this

* save the draft created at to its own field to not disturb existing data

* [submodules] Build static heartexlabs/dm2

* [submodules] Build static heartexlabs/dm2
@deppp deppp deleted the fb-lsdv-5035 branch November 14, 2023 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants