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

Add Pushover.net support from LDAP sync #368

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

Conversation

Fmstrat
Copy link
Contributor

@Fmstrat Fmstrat commented Feb 24, 2022

A PR will be submitted for Pushover.net support in Iris. This allows users to store a Pushover key in LDAP for use in this instance.

@@ -517,6 +517,7 @@ <h4 class="modal-title">Calendar Timezones</h4>
{{/isEqual}}
</li>
<li> Slack: <a>{{getUserInfo this @root.users 'contacts.slack'}}</a> </li>
<li> Pushover: <a>{{getUserInfo this @root.users 'contacts.pushover'}}</a> </li>
Copy link
Contributor

Choose a reason for hiding this comment

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

most people will not be using pushover, it looks like this code will leave a bunch of empty pushover related ui elements, these should be made conditional on pushover data existing.

@@ -138,6 +138,7 @@ def fetch_ldap():
name = name.decode("utf-8")
mobile = ldap_dict.get(LDAP_SETTINGS['attrs']['mobile'])
mail = ldap_dict.get(LDAP_SETTINGS['attrs']['mail'])
pushover = ldap_dict.get(LDAP_SETTINGS['attrs']['pushover'])
Copy link
Contributor

Choose a reason for hiding this comment

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

this looks like it could potentially cause keyerror exceptions if there is no pushover data in ldap. The app should look and behave as it does now if there is no pushover data defined anywhere in ldap, iris, or oncall.

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.

None yet

2 participants