Skip to content

Commit 3cf971c

Browse files
authored
Chore: Remove header attribute of sortingInfo interface (#6524)
## Motivation for features / changes This is the final change in a long line of changes to move to using name. The original and functional change is #6362. This had to add name as an optional parameter only in order to avoid internal breakages. Now that we had name we could add the use of name internally(Googlers see cl/534191646) . Then we could switch to make the header optional and the name required which was done here: #6400. After header was optional we removed the use of headers internally(googlers see cl/552643471). Finally in this PR we removed the header attribute.
1 parent 0036372 commit 3cf971c

File tree

5 files changed

+0
-12
lines changed

5 files changed

+0
-12
lines changed

tensorboard/webapp/runs/store/runs_reducers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ const {initialState: uiInitialState, reducers: uiNamespaceContextedReducers} =
333333
},
334334
],
335335
sortingInfo: {
336-
header: ColumnHeaderType.RUN,
337336
name: 'run',
338337
order: SortingOrder.DESCENDING,
339338
},

tensorboard/webapp/runs/store/runs_reducers_test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,7 +1624,6 @@ describe('runs_reducers', () => {
16241624
{},
16251625
{
16261626
sortingInfo: {
1627-
header: ColumnHeaderType.RUN,
16281627
name: 'run',
16291628
order: SortingOrder.ASCENDING,
16301629
},
@@ -1634,14 +1633,12 @@ describe('runs_reducers', () => {
16341633
state,
16351634
actions.runsTableSortingInfoChanged({
16361635
sortingInfo: {
1637-
header: ColumnHeaderType.HPARAM,
16381636
name: 'lr',
16391637
order: SortingOrder.DESCENDING,
16401638
},
16411639
})
16421640
);
16431641
expect(nextState.ui.sortingInfo).toEqual({
1644-
header: ColumnHeaderType.HPARAM,
16451642
name: 'lr',
16461643
order: SortingOrder.DESCENDING,
16471644
});

tensorboard/webapp/runs/store/runs_selectors_test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -633,15 +633,13 @@ describe('runs_selectors', () => {
633633
{},
634634
{
635635
sortingInfo: {
636-
header: ColumnHeaderType.RUN,
637636
name: 'run',
638637
order: SortingOrder.ASCENDING,
639638
},
640639
}
641640
)
642641
);
643642
expect(selectors.getRunsTableSortingInfo(state)).toEqual({
644-
header: ColumnHeaderType.RUN,
645643
name: 'run',
646644
order: SortingOrder.ASCENDING,
647645
});

tensorboard/webapp/runs/store/testing.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ export function buildRunsState(
7171
selectionState: new Map(),
7272
runsTableHeaders: [],
7373
sortingInfo: {
74-
header: ColumnHeaderType.RUN,
7574
name: 'run',
7675
order: SortingOrder.DESCENDING,
7776
},

tensorboard/webapp/widgets/data_table/types.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ export enum SortingOrder {
6060
}
6161

6262
export interface SortingInfo {
63-
// Currently in the process of moving from header to name.
64-
// Header is no longer used but is required as to not break sync
65-
// TODO(jameshollyer): Remove header once all internal code is switched
66-
// to using name.
67-
header?: ColumnHeaderType;
6863
name: string;
6964
order: SortingOrder;
7065
}

0 commit comments

Comments
 (0)