Project

General

Profile

« Previous | Next » 

Revision 107ad431

Added by Brad Buckingham about 10 years ago

Content Views Rework: prepend content_view on filter models, update routes

This commit addresses the following:

1. Rename the filter models/schema, prepending 'content_view_' to each.
This change is to be consistent with other models
(e.g. content_view_environments) as well as to ensure that there is
never a name clash with the core or future models added to katello

2. Update routes to also account for the above change. For example,
rather than define:
GET /filters/:id
defint:
GET /content_view_filters/:id

View differences:

engines/bastion/app/assets/javascripts/bastion/content-views/details/filters/filter.factory.js
angular.module('Bastion.content-views').factory('Filter',
['$resource', function ($resource) {
return $resource('/api/v2/filters/:filterId/:action',
return $resource('/api/v2/content_view_filters/:filterId/:action',
{filterId: '@id', 'content_view_id': '@content_view.id'},
{
query: {method: 'GET', isArray: false},

Also available in: Unified diff