Project

Profile

Help

Issue #3829

Relationships should use id or name in lieu of href

Added by daviddavis over 2 years ago. Updated 6 months ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Currently we have:

pulp remotes file sync --repository=http://pulp3.dev:8000/pulp/api/v3/repositories/c3550bb7-1984-4bd4-bbc4-5bc5483008b5/ --id=396b7eb5-97aa-4394-bc25-ca8be7dd19c4

However, users probably should be able to use name or id like they do with other fields:

pulp remotes file sync --repository=c3550bb7-1984-4bd4-bbc4-5bc5483008b5 --id=396b7eb5-97aa-4394-bc25-ca8be7dd19c4
pulp remotes file sync --repository=foo --id=396b7eb5-97aa-4394-bc25-ca8be7dd19c4

After we switch over to openapi schema there is a format field, if this field is set to uri we can probably assume it's a relationship field. The problem comes when we try to figure out what resource it is referencing.


Related issues

Blocks Pulp CLI - Task #3831: Hide fields prefixed by "_"CLOSED - WONTFIX

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by daviddavis over 2 years ago

  • Blocks Task #3831: Hide fields prefixed by "_" added

#2 Updated by daviddavis over 2 years ago

  • Sprint/Milestone set to Proof of concept

#3 Updated by daviddavis 6 months ago

  • Status changed from NEW to CLOSED - WONTFIX

Please register to edit this issue

Also available in: Atom PDF