Skip to content

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.

{{/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.

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.

2 participants