Data as document: replace snapshot with publish workflow
Mirror the SOA-to-document migration for the data list. Remove data from the snapshot system and add a publish workflow that generates a ProseMirror document for the full organization data inventory. Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -21,11 +21,18 @@ import { graphql } from "relay-runtime";
|
||||
/* eslint-disable relay/unused-fields, relay/must-colocate-fragment-spreads */
|
||||
|
||||
export const dataQuery = graphql`
|
||||
query DatumGraphListQuery($organizationId: ID!, $snapshotId: ID = null) {
|
||||
query DatumGraphListQuery($organizationId: ID!) {
|
||||
node(id: $organizationId) {
|
||||
... on Organization {
|
||||
canCreateDatum: permission(action: "core:datum:create")
|
||||
...DataPageFragment @arguments(snapshotId: $snapshotId)
|
||||
canPublishData: permission(action: "core:datum:publish")
|
||||
dataListDocument {
|
||||
id
|
||||
defaultApprovers {
|
||||
id
|
||||
}
|
||||
}
|
||||
...DataPageFragment
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -36,7 +43,6 @@ export const datumNodeQuery = graphql`
|
||||
node(id: $dataId) {
|
||||
... on Datum {
|
||||
id
|
||||
snapshotId
|
||||
name
|
||||
dataClassification
|
||||
owner {
|
||||
|
||||
Reference in New Issue
Block a user