Project

Profile

Help

Story #8920

closed

Story #8924: As a user, I can manage OSTree repositories

As a Pulp REST API user, I can see what refs are available in OSTree repository version

Added by dkliban@redhat.com almost 3 years ago. Updated over 2 years ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Target Release - OSTree:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 103
Quarter:

Description

The REST API for retrieving OSTree repository versions should return a list of available refs (branches) in the repository version. Each ref should also show which commit it is pointing to.


Related issues

Related to OSTree Support - Story #8918: As a user, I can create a new repository by uploading an archive with OSTree commitsMODIFIEDlmjachky

Actions
Actions #1

Updated by dkliban@redhat.com almost 3 years ago

  • Sprint/Milestone set to 2.0.0a1
Actions #2

Updated by ttereshc almost 3 years ago

Do we need a separate ticket for delete operation?

Actions #3

Updated by dkliban@redhat.com almost 3 years ago

Yes we do need a separate story for deleting repository versions. I'll open one.

Actions #4

Updated by dkliban@redhat.com almost 3 years ago

  • Parent issue set to #8924
Actions #5

Updated by lmjachky over 2 years ago

@dkliban, is this how it is supposed to work (this was already added in the PR referenced in the issue https://pulp.plan.io/issues/8919)?

(pulp) [vagrant@pulp3-source-fedora33 ~]$ http :24817/pulp/api/v3/content/ostree/refsheads/?repository_version_added=/pulp/api/v3/repositories/ostree/ostree/029ee9aa-a8d6-495c-bc31-3e6b087ad28d/versions/1/
HTTP/1.1 200 OK
Access-Control-Expose-Headers: Correlation-ID
Allow: GET, HEAD, OPTIONS
Connection: close
Content-Length: 669
Content-Type: application/json
Correlation-ID: ff2dfc3ae4fc441ba98d46f546bd73d6
Date: Mon, 09 Aug 2021 22:13:43 GMT
Referrer-Policy: same-origin
Server: gunicorn
Vary: Accept, Cookie
X-Content-Type-Options: nosniff
X-Frame-Options: DENY

{
    "count": 2,
    "next": null,
    "previous": null,
    "results": [
        {
            "artifact": "/pulp/api/v3/artifacts/418b8e99-0e03-4539-9573-8773bbd1921e/",
            "commit": "/pulp/api/v3/content/ostree/commits/5ee2c6aa-45ef-44f5-8d70-8d2665d1fe77/",
            "name": "foo",
            "pulp_created": "2021-08-09T22:12:42.017004Z",
            "pulp_href": "/pulp/api/v3/content/ostree/refsheads/667e6264-ee47-4b74-af47-59d3e3dad7cd/"
        },
        {
            "artifact": "/pulp/api/v3/artifacts/adc7a405-7628-4f45-9517-70d68b44d674/",
            "commit": "/pulp/api/v3/content/ostree/commits/29ed7b20-0257-4626-ac79-33b07c6fd45d/",
            "name": "bar",
            "pulp_created": "2021-08-09T22:12:41.981642Z",
            "pulp_href": "/pulp/api/v3/content/ostree/refsheads/53d75c9b-4982-48f9-8501-84d60f7c7c59/"
        }
    ]
}
Actions #6

Updated by lmjachky over 2 years ago

  • Related to Story #8918: As a user, I can create a new repository by uploading an archive with OSTree commits added

Added by Lubos Mjachky over 2 years ago

Revision 6caebd2d | View on GitHub

Implement uploading

closes #8918

Actions #7

Updated by lmjachky over 2 years ago

  • Status changed from NEW to MODIFIED
  • Assignee set to lmjachky
  • Sprint set to Sprint 103

This story was resolved by the commit https://github.com/pulp/pulp_ostree/commit/6caebd2d4bdd29a699f1d0e7ce939b2b5a2c7b56 which is already merged in the corresponding GitHub repository.

Actions #8

Updated by lmjachky over 2 years ago

  • % Done changed from 0 to 100

Also available in: Atom PDF