Project

Profile

Help

Issue #2947

Notes field on the Repository model should default to {}

Added by ttereshc about 2 years ago. Updated 6 months ago.

Status:
CLOSED - WONTFIX
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 24

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 3 MODIFIED Actions
Related to Pulp - Issue #2977: Attributes on KeyValueRelatedFields are not used by DRF MODIFIED Actions

History

#1 Updated by ttereshc about 2 years ago

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

#2 Updated by bmbouter about 2 years ago

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

#3 Updated by bizhang about 2 years ago

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

#4 Updated by ttereshc about 2 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

#5 Updated by mhrivnak about 2 years ago

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

#6 Updated by daviddavis about 2 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to daviddavis

#7 Updated by daviddavis about 2 years ago

  • Status changed from ASSIGNED to POST

#8 Updated by amacdona@redhat.com about 2 years ago

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

#9 Updated by daviddavis about 2 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.

#10 Updated by bmbouter over 1 year ago

  • Sprint set to Sprint 24

#11 Updated by bmbouter over 1 year ago

  • Sprint/Milestone deleted (43)

#12 Updated by daviddavis 6 months ago

  • Sprint/Milestone set to 3.0

#13 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF