Add artifact_group models and REST API to icebox

Bug #1233697 reported by Lars Butler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake Platform
Fix Committed
High
Lars Butler

Bug Description

Two new DB tables:

artifact_group:
  - id
  - name
  - group_type ("map", "calculation", etc.)
  - user_id (FK to Django User table)

artifact_group_link:
  - id
  - artifact_id (FK to icebox's Artifact table)
  - artifact_group_id (FK to icebox's ArtifactGroup table)

Two new REST API methods:

- GET /icebox/artifact_groups
  - optional group_type=<group_type> parameter
- GET /icebox/artifact_group/:group_id

The POST /icebox/artifacts/import implementation needs to updated to
  - create an artifact_group with group_type=="calculation"
  - create an artifact record also for the calculation summary json blob

description: updated
Changed in oq-platform:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Lars Butler (lars-butler)
Revision history for this message
Lars Butler (lars-butler) wrote :
Changed in oq-platform:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.