You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by ap...@apache.org on 2018/11/27 22:13:06 UTC
[incubator-pinot] branch master updated: [TE] rootcause - preselect
metric name in metric dropdown (#3553)
This is an automated email from the ASF dual-hosted git repository.
apucher 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 ee4784d [TE] rootcause - preselect metric name in metric dropdown (#3553)
ee4784d is described below
commit ee4784d9c10e83e34ba6ee601e78459032c29132
Author: Alexander Pucher <ap...@linkedin.com>
AuthorDate: Tue Nov 27 14:13:01 2018 -0800
[TE] rootcause - preselect metric name in metric dropdown (#3553)
---
.../pods/components/rootcause-select-metric/component.js | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/thirdeye/thirdeye-frontend/app/pods/components/rootcause-select-metric/component.js b/thirdeye/thirdeye-frontend/app/pods/components/rootcause-select-metric/component.js
index 6428b7c..d5c78af 100644
--- a/thirdeye/thirdeye-frontend/app/pods/components/rootcause-select-metric/component.js
+++ b/thirdeye/thirdeye-frontend/app/pods/components/rootcause-select-metric/component.js
@@ -5,7 +5,7 @@ import { selfServeApiCommon } from 'thirdeye-frontend/utils/api/self-serve';
import { task, timeout } from 'ember-concurrency';
import _ from 'lodash';
import { checkStatus } from 'thirdeye-frontend/utils/utils';
-import { get, set, computed, getProperties } from '@ember/object';
+import { computed, getProperties } from '@ember/object';
export default Component.extend({
classNames: ['rootcause-select-metric-dimension'],
@@ -48,12 +48,12 @@ export default Component.extend({
return agg;
});
const relatedMetrics = filterPrefix(Object.keys(entities), 'thirdeye:metric:')
- .filter(urn => urn in entities)
- .map((urn) => {
- const entity = entities[urn];
- const agg = { alias: entity.label, id: entity.urn.split(':')[2] };
- return agg;
- });
+ .filter(urn => urn in entities)
+ .map((urn) => {
+ const entity = entities[urn];
+ const agg = { alias: entity.label, id: entity.urn.split(':')[2] };
+ return agg;
+ });
return [
{ groupName: 'Selected Metrics', options: _.sortBy(selectedMetrics, (row) => row.alias) || [] },
@@ -132,6 +132,7 @@ export default Component.extend({
if (selectionEditable && selectObj.isActive && selectObj.selected) {
const selectInputEl = document.querySelector(searchInputSelector);
selectInputEl.value = selectObj.selected.alias;
+ selectInputEl.select();
}
},
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org