Project

Profile

Help

Issue #2947

closed

Notes field on the Repository model should default to {}

Added by ttereshc over 6 years ago. Updated almost 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
Actions #1

Updated by ttereshc over 6 years ago

  • Subject changed from Notes and Scratchpad fileds are required for repo creation to Notes and Scratchpad fields are required for repo creation
Actions #2

Updated by bmbouter over 6 years ago

Why do we have these fields? I thought we were planning to delete them. Are they currently used anywhere?

Actions #3

Updated by bizhang over 6 years ago

  • Related to Task #2817: Remove Scratchpad from Pulp 3 added
Actions #4

Updated by ttereshc over 6 years ago

  • Subject changed from Notes and Scratchpad fields are required for repo creation to Notes field on the Repository model should default to {}
  • Description updated (diff)
  • Triaged changed from No to Yes
Actions #5

Updated by mhrivnak over 6 years ago

  • Priority changed from Normal to Low
  • Sprint/Milestone set to 43
Actions #6

Updated by daviddavis over 6 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to daviddavis
Actions #7

Updated by daviddavis over 6 years ago

  • Status changed from ASSIGNED to POST
Actions #8

Updated by amacdona@redhat.com over 6 years ago

  • Related to Issue #2977: Attributes on KeyValueRelatedFields are not used by DRF added
Actions #9

Updated by daviddavis over 6 years ago

  • Status changed from POST to CLOSED - WONTFIX

Talking with bizhang, it sounds like there shouldn't need to be a default and we could just fix this in issue #2977.

Actions #10

Updated by bmbouter about 6 years ago

  • Sprint set to Sprint 24
Actions #11

Updated by bmbouter about 6 years ago

  • Sprint/Milestone deleted (43)
Actions #12

Updated by daviddavis almost 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #13

Updated by bmbouter almost 5 years ago

  • Tags deleted (Pulp 3)

Also available in: Atom PDF