| Summary: | [RFE] Need a way to update arbitrary key value pairs in a pulp repository | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Partha Aji <paji> |
| Component: | user-experience | Assignee: | Sayli Karmarkar <skarmark> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.0.0 | CC: | cperry, skarmark, tsanders |
| Target Milestone: | --- | Keywords: | FutureFeature, Triaged |
| Target Release: | Sprint 29 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-24 20:13:18 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Partha Aji
2011-10-18 22:57:28 UTC
commit 9a2c3513812f2dddb8a30157546ac9a1fa225c54
Author: Sayli Karmarkar <skarmark>
Date: Thu Oct 20 00:52:50 2011 -0700
747151 - Added api and cli to add, update and delete a key-value pair to repository notes along with wiki documentation for api and unit tests
Add - POST /repositories/<id>/notes/
Update - PUT /repositories/<id>/notes/<key>/
Delete - DELETE /repositories/<id>/notes/<key>/
You can also list all repositories containing particular key-values by calling GET on /repositories/ with notes as the filter.
build: 0.241 Fails_qa
root@preethi ~]# rpm -q pulp
pulp-0.0.241-1.fc15.noarch
Failing as the output needs to be neater
Now the notes are shown as
Notes {u'key1': u'value1'}
This bug is about api rather than cli. There were no changes made to displaying notes in cli. Moving to on_qa and opening new bug for neater display of notes. verified [root@preethi ~]# curl -k -u admin:admin -X POST https://localhost/pulp/api/repositories/f15/notes/ -d '{"key":"key1","value":"value1"}' true[root@preethi curl -k -u admin:admin -X DELETE https://localhost/pulp/api/repositories/f15/notes/key1/ true[root@preethi curl -k -u admin:admin -X POST https://localhost/pulp/api/repositories/f15/notes/ -d '{"key":"key1","value":"value1"}' true[root@preethi ~]# Pulp v1.0 is released Closed Current Release. |