Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modified explorer data grid to follow discover look and feel #1041

Merged
merged 28 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
219b0ed
initial data grid column change with hardcoded vals
paulstn Sep 15, 2023
bcb1501
basic render cell data added
paulstn Sep 15, 2023
64428e5
added memoization for all components and redid cell rendering
paulstn Sep 15, 2023
1a56df0
allow for any kind of field to be shown
paulstn Sep 15, 2023
612a4c1
basic pagination only with queried data
paulstn Sep 15, 2023
6c7a5a0
sorting and pagination effect onto query support
paulstn Sep 19, 2023
017f38c
fully functional flyout
paulstn Sep 19, 2023
86ab883
removed unneeded code and fixed typing errors
paulstn Sep 19, 2023
b559fb5
fixed field sorting/paginating issue with sidebar integration and exp…
paulstn Sep 21, 2023
92f05c7
code cleanup
paulstn Sep 22, 2023
d060673
fixed a lot of tests
paulstn Sep 22, 2023
47921b2
Merge branch 'main' of https://github.com/opensearch-project/dashboar…
paulstn Sep 22, 2023
ee4fe5e
reduce sidebar code redundancy
paulstn Sep 22, 2023
b94cec2
remove commented code
paulstn Sep 22, 2023
38aea1b
test constant
paulstn Sep 22, 2023
6a12fba
flyout testing code
paulstn Sep 26, 2023
6ac7259
fixed small sidebar init issue
paulstn Sep 26, 2023
66e2206
changed default page size from 25 to 100
paulstn Sep 26, 2023
fa3c3ac
updated snapshot
paulstn Sep 26, 2023
221f65a
Merge branch 'main' of https://github.com/opensearch-project/dashboar…
paulstn Sep 26, 2023
a226c81
small changes + source column prettied + snapshot
paulstn Sep 26, 2023
d1a8b35
small todos and code coverage change
paulstn Sep 27, 2023
fcf676b
moved redo query to util function
paulstn Sep 27, 2023
226b4a7
redoQuery testing
paulstn Sep 27, 2023
8576bf6
redoQuery testing
paulstn Sep 27, 2023
0387d7e
redoQuery testing
paulstn Sep 27, 2023
48861a1
modified redo func in utils test
paulstn Sep 28, 2023
c1cc79f
small pr changes
paulstn Sep 28, 2023
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
20 changes: 20 additions & 0 deletions common/constants/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,3 +324,23 @@ export const TYPE_TAB_MAPPING = {
[SAVED_QUERY]: TAB_EVENT_ID,
[SAVED_VISUALIZATION]: TAB_CHART_ID,
};

export const DEFAULT_EMPTY_EXPLORER_FIELDS = [
{ name: 'timestamp', type: 'timestamp' },
{ name: '_source', type: 'string' },
];

export const DEFAULT_TIMESTAMP_COLUMN = {
id: 'timestamp',
isSortable: true,
display: 'Time',
schema: 'datetime',
initialWidth: 200,
};

export const DEFAULT_SOURCE_COLUMN = {
id: '_source',
isSortable: false,
display: 'Source',
schema: '_source',
};
5 changes: 5 additions & 0 deletions common/types/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,3 +401,8 @@ export type MOMENT_UNIT_OF_TIME =
| 's'
| 'milliseconds'
| 'ms';

export interface GridSortingColumn {
id: string;
direction: 'asc' | 'desc';
}
paulstn marked this conversation as resolved.
Show resolved Hide resolved
Loading
Loading