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 @@ -124,17 +124,16 @@ export function categorizeTags(
runToTag: RunToTag,
selectedRuns: string[],
query?: string): TagCategory[] {
runToTag = _.pick(runToTag, selectedRuns);
const tags = tf_backend.getTags(runToTag);
const categories = categorize(tags, query);
const tagToRuns = createTagToRuns(runToTag);
const tagToRuns = createTagToRuns(_.pick(runToTag, selectedRuns));

return categories.map(({name, metadata, items}) => ({
name,
metadata,
items: items.map(tag => ({
tag,
runs: tagToRuns.get(tag).slice(),
runs: (tagToRuns.get(tag) || []).slice(),
})),
}));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ <h3>No scalar data was found.</h3>
const PLUGIN_NAME = 'scalars';
const USE_DATA_SELECTOR = tf_globals.getEnableDataSelector();
const SelectionType = tf_data_selector.Type;
const NUM_DEFAULT_OPENED_PANE = 2;
const NUM_DEFAULT_OPENED_PANE = 3;

Polymer({
is: 'tf-scalar-dashboard',
Expand Down Expand Up @@ -377,9 +377,7 @@ <h3>No scalar data was found.</h3>
query = tagRegex;
selectedRuns = runs.map(({name}) => name);
}
const runToTag = _.mapValues(
_.pick(runToTagInfo, selectedRuns),
x => Object.keys(x));
const runToTag = _.mapValues(runToTagInfo, x => Object.keys(x));
categories = tf_categorization_utils.categorizeTags(
runToTag, selectedRuns, query);
categories.forEach(category => {
Expand Down