Custom Query (2152 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (1363 - 1365 of 2152)

Ticket Resolution Summary Owner Reporter
#365 fixed ResourceNotifications dread dread

Reported by dread, 4 years ago.

Description

If you change a resource then you not only get a PackageNotification?, but also a ResourceNofication?.

#276 fixed Resources in Package form seen multiple times upon preview dread rgrp

Reported by rgrp, 4 years ago.

Description

Create a new package with a name 'blah' and resource format 'blah'. Hit preview. There is an error because of the lack of resource url, but in the resource input boxes, there are now four resources with format 'blah'.

#358 duplicate Resources in REST API rgrp dread

Reported by dread, 4 years ago.

Description

(spun out of ticket:336)

Resource added to model API at:

api/rest/resource

Example model request

GET to: /api/2/rest/resource/a3dd8f64-9078-4f04-845c-e3f047125028

returns:

 [{"id": "a3dd8f64-9078-4f04-845c-e3f047125028",
   "package_id": "b8a325c8-af2a-43f3-8245-9db7d73dfbfe",
   "URL": "http://scraperwiki.com/lincolnshire-councillors", 
   "format": "CSV", 
   "Description": "Scrape of www.lincs.gov/councillors.pdf by ScraperWiki.",
   "hash": "", 
   "position": 2
 }]

Authorization

  1. Have it generic (ie. not per resource) and use an action/role on system
  2. Require all resources to attach to packages an inherit their permissions (i.e. read/write etc if and only read/write on associated packages)
  3. Introduce Resource in authorization system (requires migration)

Mixed model

Create / Edit:

if resource associated to package:
    check_permissions(package, update)
else:
    check_system_permissions(c.user, model.Action.Resouce Create/Update, model.System)
Note: See TracQuery for help on using queries.