Project

Profile

Help

Story #3234

closed

Story #3209: As a user, I have Repository Versions

As an authenticated user, I can create a new version by adding or removing content to the latest version.

Added by daviddavis almost 7 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 31
Quarter:

Description

  • I can follow the progress. (adding/removing are asynchronous).
  • can add and remove together in a single call

A POST to the api/v3/repositories/123/versions/ should accept 2 POST body parameters: add_content_units, remove_content_units. A task should be spawned to create a new repository version. The repository version starts with the content from previous version, if any, and then adds units from add_content_units, then removes content from remove_content_units.

Actions #1

Updated by daviddavis almost 7 years ago

  • Blocked by Story #3173: As a plugin author, I have documentation on how to implement a sync operation for my importer added
Actions #2

Updated by daviddavis almost 7 years ago

  • Description updated (diff)
Actions #3

Updated by dkliban@redhat.com almost 7 years ago

  • Groomed changed from No to Yes
  • Sprint Candidate changed from No to Yes
Actions #4

Updated by amacdona@redhat.com almost 7 years ago

  • Description updated (diff)

Updated based on RepositoryVersions discussion. The initial implementation no longer includes an importer parameter, the deployment of the sync task be the responsibility of the Detail Importer Viewset rather than the RepositoryVersionsViewset.

Actions #5

Updated by amacdona@redhat.com almost 7 years ago

  • Blocked by deleted (Story #3173: As a plugin author, I have documentation on how to implement a sync operation for my importer)
Actions #6

Updated by amacdona@redhat.com almost 7 years ago

  • Description updated (diff)
Actions #7

Updated by amacdona@redhat.com almost 7 years ago

  • Description updated (diff)
Actions #8

Updated by jortel@redhat.com almost 7 years ago

Let's drop the "units" suffix and use add_content and remove_content.

Actions #9

Updated by amacdona@redhat.com almost 7 years ago

@jortel, -1 for `add_content` and `remove_content` since "content" can be singular or plural. In this context it will be plural, but the model already defines `add_content` (singular). `add_content_units` is admittedly clunky, but is more clear.

Actions #10

Updated by dkliban@redhat.com almost 7 years ago

  • Sprint/Milestone set to 53
Actions #11

Updated by dkliban@redhat.com almost 7 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com
Actions #12

Updated by daviddavis almost 7 years ago

Not a huge fan of add/remove_content_units but I like it better than add/remove_content. Seems like the param should be plural. Perhaps another option: add/remove_content_hrefs?

Actions #13

Updated by dkliban@redhat.com almost 7 years ago

  • Status changed from ASSIGNED to POST

Added by dkliban@redhat.com almost 7 years ago

Revision d88f2f1a | View on GitHub

Adds ability to POST to repository version API

This patchs adds ability to create new repository versions by specifying a list of content to add to the previous version and remove from the previous version.

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

Added by dkliban@redhat.com almost 7 years ago

Revision d88f2f1a | View on GitHub

Adds ability to POST to repository version API

This patchs adds ability to create new repository versions by specifying a list of content to add to the previous version and remove from the previous version.

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

Actions #14

Updated by dkliban@redhat.com almost 7 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #16

Updated by bmbouter over 6 years ago

  • Sprint set to Sprint 31
Actions #17

Updated by bmbouter over 6 years ago

  • Sprint/Milestone deleted (53)
Actions #18

Updated by dkliban@redhat.com over 6 years ago

  • Sprint/Milestone set to 3.0.0
Actions #19

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3, Pulp 3 MVP)
Actions #20

Updated by bmbouter almost 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF