-
Notifications
You must be signed in to change notification settings - Fork 19
compspec-seed-data-change #1313
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
base: master
Are you sure you want to change the base?
Conversation
| path: '/api', | ||
| }; | ||
|
|
||
| // const config = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removeeee
|
|
||
| axios.defaults.baseURL = `${config.protocol}://${config.apiServer}:${config.port}${config.path}`; | ||
|
|
||
| const query = 'query fetchAllComputations($preprocess: Boolean) {fetchAllComputations(preprocess: $preprocess) {id, computation {type, dockerImage, command, input}, meta { id,name,preprocess }}}'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
multi - line :fithelement:
| async function getComputations() { | ||
| const computationsFromApi = await fetchAllComputations(); | ||
| const computationsFromSeedData = await getComputationsFromSeedData(); | ||
| return [...computationsFromApi, ...computationsFromSeedData]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add comment about merging comps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be simpler to dedupe here
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Feature
What is the current behavior? (You can also link to an open issue here)
closes _issue API: revise compspec seed data usage #1303
What is the new behavior (if this is a feature change)?
There are now public routes in the api.
the devdata script now populates the local dev database with computations pulled from the production api.
If
.jsonfiles are present inpackages\coinstac-api-server\seed\datathose compspecs will override the ones pulled from the api.