Skip to content

fix: add runtime query validation#160

Merged
amcgee merged 2 commits intomasterfrom
feat/validation
Sep 30, 2019
Merged

fix: add runtime query validation#160
amcgee merged 2 commits intomasterfrom
feat/validation

Conversation

@amcgee
Copy link
Copy Markdown
Contributor

@amcgee amcgee commented Sep 30, 2019

This adds runtime query and mutation validation to the Data Engine, rather than throwing an unrelated and unhelpful error (like cannot read property 'startsWith' of undefined if no "resource" property exists.

@amcgee amcgee requested a review from varl September 30, 2019 08:37
@netlify
Copy link
Copy Markdown

netlify Bot commented Sep 30, 2019

Deploy preview for dhis2-app-runtime ready!

Built with commit 61a9223

https://deploy-preview-160--dhis2-app-runtime.netlify.com

@amcgee
Copy link
Copy Markdown
Contributor Author

amcgee commented Sep 30, 2019

Maybe this should be a patch bump rather than a feature bump?

Copy link
Copy Markdown
Contributor

@varl varl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me.

I agree that it should be a patch bump.

@amcgee amcgee changed the title feat: add runtime query validation fix: add runtime query validation Sep 30, 2019
@amcgee amcgee merged commit a8d2d5e into master Sep 30, 2019
@amcgee amcgee deleted the feat/validation branch September 30, 2019 14:30
dhis2-bot added a commit that referenced this pull request Sep 30, 2019
## [2.0.2](v2.0.1...v2.0.2) (2019-09-30)

### Bug Fixes

* add runtime query validation ([#160](#160)) ([a8d2d5e](a8d2d5e))
@dhis2-bot
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants