Skip to content

Remove defaults from historic validation#1006

Merged
trevor-scheer merged 2 commits intomasterfrom
trevor/default-historical-params
Feb 11, 2019
Merged

Remove defaults from historic validation#1006
trevor-scheer merged 2 commits intomasterfrom
trevor/default-historical-params

Conversation

@trevor-scheer
Copy link
Copy Markdown
Contributor

@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