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

Improve and export errors in packages #8

Merged
merged 6 commits into from
Sep 11, 2024
Merged

Improve and export errors in packages #8

merged 6 commits into from
Sep 11, 2024

Conversation

ivanahuckova
Copy link
Member

This PR exports errors so we can check them in Infinity data source and add error source based on error type. This is same as what we did in c9bd79b

@ivanahuckova ivanahuckova requested review from gwdawson and a team September 10, 2024 13:45
Copy link
Contributor

@Multimo Multimo left a comment

Choose a reason for hiding this comment

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

LGTM, few extremely minor comments continuing the proud tradition of emojis in release notes

lib/go/csvframer/CHANGELOG.md Outdated Show resolved Hide resolved
lib/go/framesql/CHANGELOG.md Outdated Show resolved Hide resolved
@@ -12,7 +11,7 @@ import (

func EvaluateInFrame(expression string, input *data.Frame) (any, error) {
if strings.TrimSpace(expression) == "" {
return nil, errors.New(strings.TrimSpace(fmt.Sprintf("empty/invalid expression. %s", expression)))
return nil, ErrEmptySummarizeExpression
Copy link
Contributor

Choose a reason for hiding this comment

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

Should you also log the expression in case we need to find out the query or this surfaced elsewhere?

Copy link
Member Author

Choose a reason for hiding this comment

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

It should be always just empty string or space as we do a check strings.TrimSpace(expression) == "" . Do you think it would still be valuable, as it is always going to be same/similar thing?

lib/go/transformations/CHANGELOG.md Outdated Show resolved Hide resolved
ivanahuckova and others added 5 commits September 10, 2024 16:28
Co-authored-by: Tim Mulqueen <Multimo@users.noreply.github.com>
Co-authored-by: Tim Mulqueen <Multimo@users.noreply.github.com>
Co-authored-by: Tim Mulqueen <Multimo@users.noreply.github.com>
@ivanahuckova ivanahuckova merged commit 8657a8c into main Sep 11, 2024
4 checks passed
@ivanahuckova ivanahuckova deleted the improve-errors branch September 11, 2024 07:58
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