Fix for ELE-699, None default for --group-by#819
Closed
dimoschi wants to merge 1 commit intoelementary-data:masterfrom
Closed
Fix for ELE-699, None default for --group-by#819dimoschi wants to merge 1 commit intoelementary-data:masterfrom
dimoschi wants to merge 1 commit intoelementary-data:masterfrom
Conversation
Contributor
|
@dimoschi does it now work for you in the config that caused the original issue? |
Author
Yes, it works perfectly fine with the config. FYI the config is the following: slack:
token: "definitely-not-a-token"
channel_name: "data-ops"
group_alerts_by: "table"
alerts_config:
alert_fields: ["table", "column", "result_message", "test_parameters", "test_query", "test_results_sample", "description","subscribers"] |
Author
|
Tests failed though 😞 |
Contributor
|
Copied the changes to this PR |
Author
|
@RoiTabach I guess it was because the Pr comes from a forked repo? FYI, I wasn't able to push a new branch, that's why I forked it. Also, if you can help me setup testing suite, I'm willing to write tests. |
Contributor
|
@dimoschi it's merged |
Contributor
|
(@dimoschi Sending you a Slack message in the elementary community slack space) |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

To address issue #816 I've set the default value of
--group-byoption to None, since later on when theConfigis instantiated, theself.slack_group_alerts_bygetsalertas the last non-null value.elementary/elementary/config/config.py
Lines 111 to 115 in 2bc0204