-
Notifications
You must be signed in to change notification settings - Fork 42
MMT-3991: As a user, I can click on a published or draft Visualization #1359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
53babaa
MMT-3990: Adding Published and Draft Visualizations
mandyparson 91fbe7f
MMT-3990: Removing Search Bar for now
mandyparson 45e9260
MMT-3991: Saving progress
mandyparson b90e7d6
MMT-3991: Working but needs refactor and tests
mandyparson 65248e7
MMT-3991: Editing tests
mandyparson f3912fe
MMT-3991: Refactoring
mandyparson 9b1a2cc
MMT-3991: Few minor fixes
mandyparson 168ce54
MMT-3991: Editing combined schema
mandyparson e5d6e47
MMT-3991: Adding feature toggle
mandyparson 3924381
MMT-3991: Addressing PR feedback
mandyparson ad1d9a2
MMT-3991: Code Coverage
mandyparson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,15 @@ | ||
| import { DELETE_COLLECTION } from '../operations/mutations/deleteCollection' | ||
| import { DELETE_SERVICE } from '../operations/mutations/deleteService' | ||
| import { DELETE_TOOL } from '../operations/mutations/deleteTool' | ||
| import { DELETE_VARIABLE } from '../operations/mutations/deleteVariable' | ||
| import { DELETE_COLLECTION } from '@/js/operations/mutations/deleteCollection' | ||
| import { DELETE_SERVICE } from '@/js/operations/mutations/deleteService' | ||
| import { DELETE_TOOL } from '@/js/operations/mutations/deleteTool' | ||
| import { DELETE_VARIABLE } from '@/js/operations/mutations/deleteVariable' | ||
| import { DELETE_VISUALIZATION } from '@/js/operations/mutations/deleteVisualization' | ||
|
|
||
| const deleteMutationTypes = { | ||
| Collection: DELETE_COLLECTION, | ||
| Service: DELETE_SERVICE, | ||
| Tool: DELETE_TOOL, | ||
| Variable: DELETE_VARIABLE | ||
| Variable: DELETE_VARIABLE, | ||
| Visualization: DELETE_VISUALIZATION | ||
| } | ||
|
|
||
| export default deleteMutationTypes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import { gql } from '@apollo/client' | ||
|
|
||
| export const DELETE_VISUALIZATION = gql` | ||
| mutation DeleteVisualization ( | ||
| $providerId: String! | ||
| $nativeId: String! | ||
| ) { | ||
| deleteVisualization ( | ||
| providerId: $providerId | ||
| nativeId: $nativeId | ||
| ) { | ||
| conceptId | ||
| revisionId | ||
| } | ||
| } | ||
| ` | ||
|
|
||
| // Example Visualizations: | ||
| // { | ||
| // "conceptId": "V1S200000096-MMT_2",", | ||
| // "providerId": "MMT_2" | ||
| // } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| import { gql } from '@apollo/client' | ||
|
|
||
| export const GET_VISUALIZATION = gql` | ||
| query GetVisualization ($params: VisualizationInput) { | ||
| visualization (params: $params) { | ||
| conceptId | ||
| description | ||
| generation | ||
| identifier | ||
| metadataSpecification | ||
| pageTitle: name | ||
| nativeId | ||
| providerId | ||
| revisionDate | ||
| revisionId | ||
| revisions { | ||
| count | ||
| } | ||
| scienceKeywords | ||
| spatialExtent | ||
| specification | ||
| subtitle | ||
| temporalExtent | ||
| title | ||
| ummMetadata | ||
| visualizationType | ||
| } | ||
| } | ||
| ` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| import { gql } from '@apollo/client' | ||
|
|
||
| export const VISUALIZATION_DRAFT = gql` | ||
| query VisualizationDraft($params: DraftInput) { | ||
| draft(params: $params) { | ||
| conceptId | ||
| conceptType | ||
| deleted | ||
| name | ||
| nativeId | ||
| providerId | ||
| revisionDate | ||
| revisionId | ||
| previewMetadata { | ||
| ... on Visualization { | ||
| conceptId | ||
| description | ||
| generation | ||
| identifier | ||
| metadataSpecification | ||
| pageTitle: name | ||
| nativeId | ||
| providerId | ||
| revisionDate | ||
| revisionId | ||
| scienceKeywords | ||
| spatialExtent | ||
| specification | ||
| subtitle | ||
| temporalExtent | ||
| title | ||
| ummMetadata | ||
| visualizationType | ||
| } | ||
| } | ||
| ummMetadata | ||
| } | ||
| } | ||
| ` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.