Skip to content
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

Remove defaults from historic validation #1006

Merged
merged 2 commits into from
Feb 11, 2019

Conversation

trevor-scheer
Copy link
Member

@trevor-scheer trevor-scheer commented Feb 11, 2019

Previous behavior leveraged the nullability of the checkSchema mutation. By removing defaults from the flags, we can expect the same behavior as before when no historic flags are provided.

What's incorrect?
Defaulting to one day for the period was an incorrect assumption on my part - this value can vary on the backend when it's not provided, depending on the user's plan. To account for this, we need the option to provide nothing in the way of historical params (as we were doing before).

TODO:

  • Update CHANGELOG.md* with your change (include reference to issue & this PR)
  • Make sure all of the significant new logic is covered by tests
  • Rebase your changes on master so that they can be merged easily
  • Make sure all tests and linter rules pass

Previous behavior leveraged the nullability of the checkSchema
mutation. By removing defaults from the flags, we can expect behavior
to be the same as it was before when no historic flags are provided.
@trevor-scheer trevor-scheer merged commit d296e4f into master Feb 11, 2019
@trevor-scheer trevor-scheer deleted the trevor/default-historical-params branch February 11, 2019 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants