Project

General

Profile

Actions

Bug #4689

closed

api v2 system update - passing content_view_id=nil errors

Added by Thomas McKay over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Category:
Content Views
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Creating a system in Library with content_view_id=nil puts it in the "Default Organization View" CV. Passing nil to update errors.

Suggest either allow https://localhost:3000/katello/api/v2/content_views?organization_id=megacorp to return "Default Organization View" so the ID may be retrieved and then require it on both create and update, or allow nil to be passed to update.

Actions #1

Updated by David Davis over 10 years ago

  • Assignee changed from David Davis to Thomas McKay
Actions #2

Updated by David Davis over 10 years ago

There are a couple items on the back log item dealing with this and I may or may not work on that depending on who does what.

http://pad-katello.rhcloud.com/p/convent_view_backlog

If you want, you can add this bug to the back log so that whoever works on them can update this bug but we're already aware of this.

Actions #3

Updated by Thomas McKay over 10 years ago

@daviddavis - what is the solution to this? (ie. do you wish to return the default CV id, or accept nil?). It seems fairly trivial to fix in the API and I could submit patch.

Actions #4

Updated by David Davis over 10 years ago

I'm torn. Actually I'd be ok with either or even both.

Actions #5

Updated by David Davis over 10 years ago

  • Assignee changed from Thomas McKay to David Davis
  • Priority changed from High to Urgent
Actions #6

Updated by David Davis over 10 years ago

  • Status changed from New to Assigned
Actions #7

Updated by Mike McCune over 10 years ago

  • Triaged set to Yes
Actions #8

Updated by Mike McCune over 10 years ago

  • Triaged deleted (Yes)
Actions #9

Updated by Mike McCune over 10 years ago

  • Triaged set to Yes
Actions #10

Updated by David Davis over 10 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Applied in changeset katello|commit:017c63dd96fc789c920180916bdfc33ff339a8fd.

Actions #11

Updated by Eric Helms over 10 years ago

  • Translation missing: en.field_release set to 13
Actions

Also available in: Atom PDF