Skip to content

[SYNPY-1784] Added delete_record_set and delete_file_view parameters to CurationTask.delete()#1333

Merged
andrewelamb merged 6 commits intodevelopfrom
SYNPY-1784
Mar 4, 2026
Merged

[SYNPY-1784] Added delete_record_set and delete_file_view parameters to CurationTask.delete()#1333
andrewelamb merged 6 commits intodevelopfrom
SYNPY-1784

Conversation

@andrewelamb
Copy link
Contributor

@andrewelamb andrewelamb commented Mar 3, 2026

Problem:

Data managers would like to make the cleanup of Curation tasks easier.

Solution:

  • For record-based curation the delete_record_set parameter deletes the associated RecordSet entity.
  • For file-based curation the delete_file_view parameter deletes the associated FileView entity.

Testing:

Integration tests were added/modified for:

  • Record-based curation with/without delete_record_set parameter
  • File-based curation with/without delete_file_view parameter

@andrewelamb andrewelamb requested a review from a team as a code owner March 3, 2026 20:47
@andrewelamb andrewelamb marked this pull request as draft March 3, 2026 20:47
@andrewelamb andrewelamb changed the title added delete_recod_set and selete_file_view [SYNPY-1784] Added delete_record_set and delete_file_view parameters to CurationTask.delete() Mar 3, 2026
@andrewelamb andrewelamb marked this pull request as ready for review March 3, 2026 21:01
Copy link
Member

@thomasyu888 thomasyu888 left a comment

Choose a reason for hiding this comment

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

Great to see this - I have one comment and I'll defer to the team for final review

@thomasyu888 thomasyu888 requested a review from linglp March 3, 2026 21:24
@andrewelamb andrewelamb marked this pull request as draft March 3, 2026 21:44
@andrewelamb andrewelamb requested a review from thomasyu888 March 3, 2026 22:45
@andrewelamb andrewelamb marked this pull request as ready for review March 3, 2026 22:45
Copy link
Contributor

@linglp linglp left a comment

Choose a reason for hiding this comment

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

Hi @andrewelamb ! Thanks for your hard work. I left some comments about the tests. Could you also update metadata_curation.md to make sure that we have a section about deleting curation tasks? Thanks

@andrewelamb andrewelamb requested a review from linglp March 4, 2026 16:19
# Clean up temporary file
if os.path.exists(temp_csv):
os.unlink(temp_csv)

Copy link
Contributor

Choose a reason for hiding this comment

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

Should the script here: create_file_based_metadata_task also be updated?

Copy link
Member

@thomasyu888 thomasyu888 left a comment

Choose a reason for hiding this comment

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

🔥 LGTM! When we complete our new set of curator updates (grid, and etc), I will to do an update of the documentation in metadata_curation.md section.

Will defer to Lingling for the final review.

@linglp linglp self-requested a review March 4, 2026 22:02
Copy link
Contributor

@linglp linglp left a comment

Choose a reason for hiding this comment

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

LGTM! The fix of integration will be done in a separate ticket: https://sagebionetworks.jira.com/browse/SYNPY-1788

@andrewelamb andrewelamb merged commit ca03832 into develop Mar 4, 2026
22 of 28 checks passed
@andrewelamb andrewelamb deleted the SYNPY-1784 branch March 4, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants