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

fix: don't raise error when missing time series on token collection #730

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

jsolaas
Copy link
Contributor

@jsolaas jsolaas commented Dec 10, 2024

When collecting the tokens from time series collection, we don't want to
raise an error since that would limit the information we get from
validation. Instead we want to collect the tokens we can, then validate
the model based on that context. The errors will still give information
about a missing resource, but also additional information, and file
context.

@jsolaas jsolaas requested a review from a team as a code owner December 10, 2024 10:54
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Weird diff. I moved init logic to create, with an additional raise_on_error flag.

@jsolaas jsolaas force-pushed the fix/validation-errors-missing-time-series-file branch from 4801ca0 to d4d40a5 Compare December 10, 2024 10:59
resources=self.resources,
raise_on_error=True,
)
assert len(err) == 0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

raise_on_error should make this empty

When collecting the tokens from time series collection, we don't want to
raise an error since that would limit the information we get from
validation. Instead we want to collect the tokens we can, then validate
the model based on that context. The errors will still give information
about a missing resource, but also additional information, and file
context.
@jsolaas jsolaas merged commit 65d417a into main Dec 10, 2024
8 checks passed
@jsolaas jsolaas deleted the fix/validation-errors-missing-time-series-file branch December 10, 2024 11:06
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