This is an automated email from the ASF dual-hosted git repository. akshayrai09 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
The following commit(s) were added to refs/heads/master by this push: new d8061f3 [TE] frontend - harleyjj/edit-alert - fix subscription group put bug (#3995) d8061f3 is described below commit d8061f3d0871e74c2cd960a3f205e12946c66219 Author: Harley Jackson <harleyy...@gmail.com> AuthorDate: Wed Mar 20 12:31:38 2019 -0700 [TE] frontend - harleyjj/edit-alert - fix subscription group put bug (#3995) --- .../app/pods/components/yaml-editor/component.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/thirdeye/thirdeye-frontend/app/pods/components/yaml-editor/component.js b/thirdeye/thirdeye-frontend/app/pods/components/yaml-editor/component.js index 1777b90..2e8537f 100644 --- a/thirdeye/thirdeye-frontend/app/pods/components/yaml-editor/component.js +++ b/thirdeye/thirdeye-frontend/app/pods/components/yaml-editor/component.js @@ -303,7 +303,7 @@ export default Component.extend({ */ onYAMLGroupSelectionAction(value) { if(value.yaml) { - set(this, 'currentYamlSettings', value.yaml); + set(this, 'detectionSettingsYaml', value.yaml); set(this, 'groupName', value); set(this, 'subscriptionGroupId', value.id); } @@ -420,11 +420,11 @@ export default Component.extend({ async saveEditYamlAction() { const { alertYaml, - currentYamlSettings, + detectionSettingsYaml, notifications, alertId, subscriptionGroupId - } = getProperties(this, 'alertYaml', 'currentYamlSettings', 'notifications', 'alertId', 'subscriptionGroupId'); + } = getProperties(this, 'alertYaml', 'detectionSettingsYaml', 'notifications', 'alertId', 'subscriptionGroupId'); //PUT alert const alert_url = `/yaml/${alertId}`; const alertPostProps = { @@ -445,12 +445,11 @@ export default Component.extend({ } catch (error) { notifications.error('Save alert yaml file failed.', error); } - //PUT settings const setting_url = `/yaml/subscription/${subscriptionGroupId}`; const settingsPostProps = { method: 'PUT', - body: currentYamlSettings, + body: detectionSettingsYaml, headers: { 'content-type': 'text/plain' } }; try { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org