Project

General

Profile

Feature #9375

Find a way for plugins to easily override the behavior of taxonomies controller actions

Added by David Davis over 6 years ago. Updated over 6 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Plugin integration
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

Suppose I add an attribute to a foreman object (ie Host). Then I want /api/v2/hosts/:id/update to be able to set that attribute. I don't know of a good way to do that. In Katello, we're currently removing the old foreman route in a routes file, extending the controller with our own hosts controller, and then adding a new route to replace the old one. It's ugly and not a good solution.


Related issues

Related to Foreman - Bug #3853: allow rabl overrides to taxonomies_controllerClosed2013-12-11
Related to Foreman - Feature #3763: Ability for engine/plugin to extend RABL responsesClosed2013-11-26
Related to Katello - Bug #6647: Foreman organization API destroy routes (DELETE /api/v2/organizations/1 and DELETE /api/v1/organizations/1) are still accessibleClosed2014-07-16
Related to Katello - Bug #6708: Have the /api/v2/organization routes point to our Organization controller in KatelloRejected2014-07-21

History

#1 Updated by David Davis over 6 years ago

  • Related to Bug #3853: allow rabl overrides to taxonomies_controller added

#2 Updated by David Davis over 6 years ago

  • Related to Feature #3763: Ability for engine/plugin to extend RABL responses added

#3 Updated by David Davis over 6 years ago

  • Related to Bug #6647: Foreman organization API destroy routes (DELETE /api/v2/organizations/1 and DELETE /api/v1/organizations/1) are still accessible added

#4 Updated by David Davis over 6 years ago

  • Related to Bug #6708: Have the /api/v2/organization routes point to our Organization controller in Katello added

#5 Updated by David Davis over 6 years ago

  • Subject changed from Find a way for plugins to easily override the behavior of a controller action to Find a way for plugins to easily override the behavior of taxonomies controller actions
  • Status changed from New to Closed

I believe this was actually a special case with the taxonomies controller but I don't specifically recall what the problem was. Will reopen if I think of it.

#6 Updated by Dominic Cleal over 6 years ago

  • Status changed from Closed to Rejected

Also available in: Atom PDF