Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,15 @@ function NotificationSettingsByEntity(props: Props) {
<Fragment>
<Panel>
<StyledPanelHeader>
<OrganizationSelectHeader
organizations={organizations}
organizationId={orgId}
handleOrgChange={handleOrgChange}
/>
{entityType === 'project' ? (
<OrganizationSelectHeader
organizations={organizations}
organizationId={orgId}
handleOrgChange={handleOrgChange}
/>
) : (
t('Settings for Organizations')
Copy link
Member

Choose a reason for hiding this comment

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

for all organizations?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@scttcper yea, should be all

)}
</StyledPanelHeader>
<Item>
{/* TODO: enable search for sentry projects */}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,14 +332,16 @@ class NotificationSettingsByTypeV2 extends DeprecatedAsyncComponent<Props, State
fields={this.getFields()}
/>
</Form>
<Form
saveOnBlur
apiMethod="PUT"
apiEndpoint="/users/me/notification-providers/"
initialData={this.getProviderInitialData()}
>
<BottomJsonForm fields={this.getProviderFields()} />
</Form>
{notificationType !== 'reports' ? (
<Form
saveOnBlur
apiMethod="PUT"
apiEndpoint="/users/me/notification-providers/"
initialData={this.getProviderInitialData()}
>
<BottomJsonForm fields={this.getProviderFields()} />
</Form>
) : null}
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this handle saving the data correctly? As in, will this set NotificationSettingProvider for email?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@snigdhas Yes, I verified. It all goes to the control silo so it's fine. I think the problem is that to get the projects you have to pick the region silo but not an issue for the organization which has replication in the control silo.

<NotificationSettingsByEntity
notificationType={notificationType}
notificationOptions={notificationOptions}
Expand Down