Skip to content

feat: Group alerts by owner #1809

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

szaffarano
Copy link

@szaffarano szaffarano commented Feb 10, 2025

This is an initial implementation of what I proposed in #1808. It is only focused on Slack, but if you agree with what I did, I could also implement the Teams support.

  • Slack implementation
  • Teams implementation (still WIP)
  • Add tests

@@ -38,12 +38,12 @@ class ElementaryCLI(click.MultiCommand):
"run-operation": run_operation,
}

def list_commands(self, ctx):
return self._CMD_MAP.keys()
def list_commands(self, ctx) -> list[str]:
Copy link
Author

Choose a reason for hiding this comment

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

the changes here were because of some linting warnings from pyright I got

@@ -88,11 +88,11 @@ def __init__(

config = self._load_configuration()

self.target_dir = self._first_not_none(
self.target_dir = str(self._first_not_none(
Copy link
Author

Choose a reason for hiding this comment

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

the changes here were because of some linting warnings from pyright I got

Copy link
Author

Choose a reason for hiding this comment

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

Here is a WIP because I don't have a valid Teams user to test it, but I can finish it if you agree with the current implementation.

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.

1 participant