-
Notifications
You must be signed in to change notification settings - Fork 0
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
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d54fa56
Improve and export errors
ivanahuckova 64e1b1f
Update lib/go/csvframer/CHANGELOG.md
ivanahuckova 125eff7
Update lib/go/framesql/CHANGELOG.md
ivanahuckova 76bbfec
Update lib/go/transformations/CHANGELOG.md
ivanahuckova a561a9d
Bump versions in package.json
ivanahuckova 400d07f
Merge branch 'improve-errors' of https://github.com/grafana/infinity-…
ivanahuckova File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# @grafana/infinity-csvframer | ||
|
||
## 1.0.1 | ||
|
||
- ⚙️ **Chore**: improved error messages | ||
|
||
## 1.0.0 | ||
|
||
- chore release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package csvframer | ||
|
||
import "errors" | ||
|
||
var ( | ||
ErrEmptyCsv = errors.New("empty/invalid csv") | ||
ErrReadingCsvResponse = errors.New("error reading csv response") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# @grafana/infinity-framesql | ||
|
||
## 1.0.1 | ||
|
||
- ⚙️ **Chore**: improved error messages | ||
|
||
## 1.0.0 | ||
|
||
- chore release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package framesql | ||
|
||
import "errors" | ||
|
||
var ( | ||
ErrEmptySummarizeExpression = errors.New("empty/invalid summarize expression") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# @grafana/infinity-transformations | ||
|
||
## 1.0.1 | ||
|
||
- ⚙️ **Chore**: improved error messages | ||
|
||
## 1.0.0 | ||
|
||
- chore release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package transformations | ||
|
||
import "errors" | ||
|
||
var ( | ||
ErrSummarizeByFieldNotFound = errors.New("summarize by field not found. Not applying summarize") | ||
ErrNotUniqueFieldNames = errors.New("field names are not unique. Not applying filter") | ||
ErrEvaluatingFilterExpression = errors.New("error evaluating filter expression") | ||
|
||
ErrMergeTransformationNoFrameSupplied = errors.New("no frames supplied for merge frame transformation") | ||
ErrMergeTransformationDifferentFields = errors.New("unable to merge fields due to different fields") | ||
ErrMergeTransformationDifferentFieldNames = errors.New("unable to merge field due to different field names") | ||
ErrMergeTransformationDifferentFieldTypes = errors.New("unable to merge fields due to different field types") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?