-
Notifications
You must be signed in to change notification settings - Fork 67
[PLT-1677] Added get mal import functions to replace old BulkImportRequest class #1909
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
Conversation
MALPredictionImport, | ||
) | ||
|
||
def get_label_imports(self) -> PaginatedCollection: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: Not going to add a delete path for regular label imports. This is because the mutation is internal and it can also put the data row in a bad state i.e. label with no annotations. We also already have SDk methods to delete and requeue labels so not needed.
@@ -587,6 +587,20 @@ def parent_id(self) -> str: | |||
""" | |||
return self.project().uid | |||
|
|||
def delete(self) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't use the deletable inheritance to make this work for this class due to this being a hard delete, not flipping a field to False.
Im okay approving because of codeowner requirement, but might be useful getting 👀 from someone from Model team |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Description
Type of change
All Submissions