Actions
Story #2824
closedAs a user, I can see the 'name' as a repository attribute for both the list and detail view
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix
Sprint:
Quarter:
Description
This is what gets returned if I do a get on /api/v3/repositories or /api/v3/repositories/blah/:
{
"_href": "http://127.0.0.1:1234/api/v3/repositories/blah/",
"content": "http://127.0.0.1:1234/api/v3/repositories/blah/content/",
"description": "123456",
"importers": [],
"last_content_added": null,
"last_content_removed": null,
"notes": {},
"publishers": [],
"scratchpad": {
"test": "asgfdds"
}
}
I can tell that the name of the repo is blah from the _href field. But suppose I name my repo something that needs to be escaped:
{
"_href": "http://127.0.0.1:1234/api/v3/repositories/%E6%88%91%E7%9A%84%E6%95%B0%E6%8D%AE/",
"content": "http://127.0.0.1:1234/api/v3/repositories/%E6%88%91%E7%9A%84%E6%95%B0%E6%8D%AE/content/",
"description": "123456",
"importers": [],
"last_content_added": null,
"last_content_removed": null,
"notes": {},
"publishers": [],
"scratchpad": {
"test": "asgfdds"
}
}
Can you tell the name of the repo here?
Updated by daviddavis over 7 years ago
- Tracker changed from Issue to Story
- Assignee set to daviddavis
- % Done set to 0
- Tags Easy Fix added
Updated by bmbouter over 7 years ago
- Subject changed from Name isn't returned when querying repos to As a user, I can see the 'name' as a repository attribute for both the list and detail view
Fixing this seems as simple as adding the name to the repo list and detail views. I retitled and added some checklist items reflecting that.
Updated by bizhang over 7 years ago
I think the only change needed is to remove the write_only attribute on the serializer [0] to make it readable
Added by daviddavis over 7 years ago
Added by daviddavis over 7 years ago
Revision 39650365 | View on GitHub
Return name for repositories in the api
Updated by daviddavis over 7 years ago
- Status changed from ASSIGNED to POST
Updated by daviddavis over 7 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulp|39650365d36c24994bccaace07856a6c55487d6d.
Updated by bmbouter almost 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Return name for repositories in the api
fixes #2824 https://pulp.plan.io/issues/2824