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

fix: LEAP-930: Autoselect model as prelabeler when its added #5697

Merged
merged 4 commits into from
Apr 10, 2024

Conversation

hlomzik
Copy link
Collaborator

@hlomzik hlomzik commented Apr 9, 2024

This code sets a model as a default prelabeler in case no other option was selected. This is done to keep it consistent with how offline predictions are used when uploaded (they get selected).

Mirror of #5709

PR fulfills these requirements

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

  • Product design
  • Backend (Database)
  • Backend (API)
  • Frontend

Describe the reason for change

Label Stream and other flows have some issues when model is added but not selected because of discrepancies in logic.

What alternative approaches were there?

We could change the way model is added and handled in settings, but autoselect is small and precise fix.

Does this PR introduce a breaking change?

  • 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?

  • e2e
  • integration
  • unit

state (i.e. no predictions were selected).

Fixing a bug with model version getting reset on patch request

Adding tests
@github-actions github-actions bot added the fix label Apr 9, 2024
Copy link

codecov bot commented Apr 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.21%. Comparing base (9fdc42e) to head (90ed986).
Report is 1 commits behind head on ls-release/1.12.0.

Additional details and impacted files
@@                Coverage Diff                 @@
##           ls-release/1.12.0    #5697   +/-   ##
==================================================
  Coverage              76.21%   76.21%           
==================================================
  Files                    158      158           
  Lines                  13330    13334    +4     
==================================================
+ Hits                   10159    10163    +4     
  Misses                  3171     3171           

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

@hlomzik hlomzik merged commit 46b6457 into ls-release/1.12.0 Apr 10, 2024
28 checks passed
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

2 participants