Project

Profile

Help

Issue #2947

closed

Notes field on the Repository model should default to {}

Added by ttereshc over 7 years ago. Updated over 5 years ago.

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

Description

$ http POST http://127.0.0.1:8000/api/v3/repositories/ name=file_repo
HTTP/1.0 400 Bad Request
Allow: GET, POST, HEAD, OPTIONS
Content-Length: 78
Content-Type: application/json
Date: Sat, 29 Jul 2017 12:00:46 GMT
Server: WSGIServer/0.2 CPython/3.5.3
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "notes": [
        "This field is required."
    ],
    "scratchpad": [
        "This field is required."
    ]
}

It should be possible to create repo with just name provided.
Scratchpad field will be removed in #2817.


Related issues

Related to Pulp - Task #2817: Remove Scratchpad from Pulp 3CLOSED - CURRENTRELEASEbizhang

Actions
Related to Pulp - Issue #2977: Attributes on KeyValueRelatedFields are not used by DRFCLOSED - CURRENTRELEASEbizhangActions

Also available in: Atom PDF