keephq / keep

The open-source alert management and AIOps platform
https://platform.keephq.dev
Other
3.21k stars 238 forks source link

add scopes to OpsGenie provider #543

Closed shahargl closed 9 months ago

talboren commented 9 months ago

/bounty 20

algora-pbc[bot] commented 9 months ago

💎 $20 bounty created by talboren 🙋 If you start working on this, comment /attempt #543 to notify everyone 👉 To claim this bounty, submit a pull request that includes the text /claim #543 somewhere in its body 📝 Before proceeding, please make sure you can receive payouts in your country 💵 Payment arrives in your account 2-5 days after the bounty is rewarded 💯 You keep 100% of the bounty award 🙏 Thank you for contributing to keephq/keep!

Attempt Started (GMT+0) Solution
🟢 @ezhil56x Nov 23, 2023, 11:02:03 AM #557
🟢 @sakshambp Nov 23, 2023, 5:59:22 PM WIP
🟢 @TakshPanchal Nov 24, 2023, 2:18:29 AM WIP
surendrasomai commented 9 months ago

@talboren , Can you provide me detail ?

talboren commented 9 months ago

@surendrasomai you can take a look at Datadog Provider/Grafana Provider/Dynatrace Provider for reference on how to implement the ProviderScopes and validate_scopes() functions. If it's still not 100% clear, I'd be happy to elaborate further.

ezhil56x commented 9 months ago

/attempt #543

Options
sakshambp commented 9 months ago

/attempt #543

Options
algora-pbc[bot] commented 9 months ago

[!NOTE] The user @ezhil56x is already attempting to complete issue #543 and claim the bounty. We recommend checking in on @ezhil56x's progress, and potentially collaborating, before starting a new solution.

sakshambp commented 9 months ago

How do we test the change @talboren what is success criteria?

sakshambp commented 9 months ago

Also do we know what all scopes to add?

TakshPanchal commented 9 months ago

/attempt #543

Options
TakshPanchal commented 9 months ago

Hey @talboren, I searched for the API endpoint to get permissions, but I couldn't find any! Lastly, we need userid or username to get user role.

algora-pbc[bot] commented 9 months ago

💡 @ezhil56x submitted a pull request that claims the bounty. You can visit your bounty board to reward.

TakshPanchal commented 9 months ago

Hey @talboren, I searched for the API endpoint to get permissions, but I couldn't find any! Lastly, we need userid or username to get user role.

@shahargl can you help me here 😅

shahargl commented 9 months ago

@TakshPanchal couldn't find easy way to do it :( what I suggest is that you'll try to delete it after creating (although delete permissions are higher). let's go with it and wait for user feedback.

ezhil56x commented 9 months ago

@TakshPanchal couldn't find easy way to do it :( what I suggest is that you'll try to delete it after creating (although delete permissions are higher). let's go with it and wait for user feedback.

I have implemented a way to validate the user on the next commit. Can you review my pull request #557

algora-pbc[bot] commented 9 months ago

🎉🎈 @ezhil56x has been awarded $20! 🎈🎊