Project

Profile

Help

Issue #2630

closed

disassociate_units updates last_unit_removed timestamp even if no units are removed

Added by semyers about 7 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Urgent
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
Platform Release:
2.12.2
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 16
Quarter:

Description

This[0] fix introduced a minor regression, by which the 'last_unit_removed' timestamp is updated whenever disassociate_units was called, even if that call removes no units. Since it's acceptable for disassociate_units to be called with unevaluated generators that generate nothing or otherwise empty iterables, that function should only update 'last_unit_removed' when units are actually removed.

[0]: https://github.com/pulp/pulp/commit/10d651cf44d26b97f777f8b4c237b12c480cdf52


Related issues

Related to Pulp - Issue #1389: Disallow re-uploading the same package twiceCLOSED - CURRENTRELEASEttereshcActions
Actions #1

Updated by semyers about 7 years ago

  • Status changed from NEW to POST

I found this while going over smash results for 2.12.2 Beta 1 with jaudet. In the process of figuring out what was going wrong, it was also pretty clear how to fix it:

https://github.com/pulp/pulp/pull/2963

Actions #2

Updated by semyers about 7 years ago

  • Description updated (diff)
Actions #3

Updated by semyers about 7 years ago

  • Related to Issue #1389: Disallow re-uploading the same package twice added
Actions #4

Updated by semyers about 7 years ago

  • Description updated (diff)

Added by semyers about 7 years ago

Revision 45ed6e6e | View on GitHub

Only update last_unit_removed when units are removed

closes #2630 https://pulp.plan.io/issues/2630

Added by semyers about 7 years ago

Revision 45ed6e6e | View on GitHub

Only update last_unit_removed when units are removed

closes #2630 https://pulp.plan.io/issues/2630

Actions #5

Updated by semyers about 7 years ago

  • Status changed from POST to MODIFIED
Actions #6

Updated by ttereshc about 7 years ago

  • Sprint/Milestone set to 34
Actions #7

Updated by semyers about 7 years ago

  • Status changed from MODIFIED to 5
  • Platform Release set to 2.12.2

redmine fail, this is included in 2.12.2 and should be ON_QA

Actions #9

Updated by bizhang about 7 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #10

Updated by bmbouter about 6 years ago

  • Sprint set to Sprint 16
Actions #11

Updated by bmbouter about 6 years ago

  • Sprint/Milestone deleted (34)
Actions #12

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF