Project

General

Profile

Actions

Idea #12414

closed

[API] Contents of trashed projects are actually deleted once delete_at is past

Added by Peter Amstutz about 7 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Start date:
04/02/2018
Due date:
Story points:
1.0
Release:
Release relationship:
Auto

Description

Extend existing sweep process needs to be extended to recursively traverse project hierarchy and delete records from the database where owner_uuid is the project being deleted.


Subtasks 1 (0 open1 closed)

Task #13284: Review 12414-delete-trashed-project-contentsResolvedPeter Amstutz04/02/2018Actions
Actions #1

Updated by Peter Amstutz about 7 years ago

  • Target version changed from Arvados Future Sprints to To Be Groomed
Actions #2

Updated by Tom Morris about 7 years ago

  • Description updated (diff)
  • Target version changed from To Be Groomed to Arvados Future Sprints
  • Story points set to 1.0
Actions #3

Updated by Peter Amstutz about 7 years ago

  • Description updated (diff)
  • Target version changed from Arvados Future Sprints to To Be Groomed
Actions #4

Updated by Peter Amstutz about 7 years ago

  • Target version changed from To Be Groomed to Arvados Future Sprints
Actions #5

Updated by Tom Morris over 6 years ago

  • Target version changed from Arvados Future Sprints to 2018-04-11 Sprint
Actions #6

Updated by Peter Amstutz over 6 years ago

  • Assigned To set to Peter Amstutz
Actions #7

Updated by Lucas Di Pentima over 6 years ago

  • Assigned To changed from Peter Amstutz to Lucas Di Pentima
Actions #8

Updated by Lucas Di Pentima over 6 years ago

  • Status changed from New to In Progress
Actions #9

Updated by Lucas Di Pentima over 6 years ago

Updates at fea63ac82 - branch 12414-delete-trashed-project-contents
Test run: https://ci.curoverse.com/job/developer-run-tests/673/

Ready for review.

Actions #10

Updated by Peter Amstutz over 6 years ago

This looks good. I have two small suggestions:

  1. I think you can write "klass.columns.collect{|c| c.name}" as "klass.columns.collect(&:name)"
  2. Add a couple of checks to the test "delete projects and their contents in SweepTrashedObjects" that things which shouldn't be deleted, were not deleted.
Actions #11

Updated by Lucas Di Pentima over 6 years ago

Updates at 5f463235c
Test run: https://ci.curoverse.com/job/developer-run-tests/674/

Updated test to confirm that only the expected records are being deleted.

Actions #12

Updated by Peter Amstutz over 6 years ago

Lucas Di Pentima wrote:

Updates at 5f463235c
Test run: https://ci.curoverse.com/job/developer-run-tests/674/

Updated test to confirm that only the expected records are being deleted.

This LGTM

Actions #13

Updated by Lucas Di Pentima over 6 years ago

  • Status changed from In Progress to Resolved
Actions #14

Updated by Tom Morris over 6 years ago

  • Release set to 13
Actions

Also available in: Atom PDF