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

Added Escalation Type #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

harikac1
Copy link

No description provided.

var rv []*v2.Entitlement

assignmentOptions := []ent.EntitlementOption{
ent.WithGrantableTo(resourceTypeEscalation),

Choose a reason for hiding this comment

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

These are probably grantable to users (or teams) not escalations themselves. Self-referential grants seems weird for this

assignmentOptions := []ent.EntitlementOption{
ent.WithGrantableTo(resourceTypeEscalation),
ent.WithDisplayName(fmt.Sprintf("%s Escalation Member", resource.DisplayName)),
ent.WithDescription(fmt.Sprintf("Is member of the %s escalation in Opsgenie", resource.DisplayName)),

Choose a reason for hiding this comment

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

I'd probably word this different. You're not exactly a "member" of an escalation. Escalation policies apply to your team

@ggreer
Copy link
Contributor

ggreer commented May 28, 2024

Besides the git conflict, is there anything blocking this? It'd be nice to get it merged.

@harikac1
Copy link
Author

Besides the git conflict, is there anything blocking this? It'd be nice to get it merged.

So, looking more into Escalations they're basically rules to notify on-call people. They don't fit into resources/entitlements I think. Not sure how do we want to proceed.

@mgaeta
Copy link

mgaeta commented Aug 14, 2024

Hey @harikac1, are you still working on this PR?

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.

4 participants