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

[Infrastructure UI] Clean dead code after saved objects migration #156158

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
7b488c3
feat(infra): wip useInventoryViews
Apr 19, 2023
7228a31
feat(infra): extract react query config
Apr 20, 2023
34e8571
feat(infra): wip useInventoryViews mutations
Apr 20, 2023
54a5172
refactor(infra): remove currentView placeholder
Apr 20, 2023
a6b3809
Merge branch 'main' into 154725-create-saved-views-hooks
tonyghiani Apr 26, 2023
a76f79a
refactor(infra): update types
Apr 26, 2023
4fd307b
Merge branch 'main' into 154725-create-saved-views-hooks
tonyghiani Apr 26, 2023
5f65776
refactor(infra): finalize types
Apr 26, 2023
f3f18a9
Merge branch 'main' into 154725-create-saved-views-hooks
tonyghiani Apr 26, 2023
d23b773
feat(infra): use new useInventoryView hook
Apr 26, 2023
c95eed3
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine Apr 26, 2023
f1ff109
fix(infra): update insertion logic for view
Apr 26, 2023
8d150fa
fix(infra): wait to update source
Apr 26, 2023
8f86912
Merge branch '154725-create-saved-views-hooks' of github.com:tonyghia…
Apr 26, 2023
b3265ca
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine Apr 26, 2023
d597acf
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine Apr 26, 2023
5de74e8
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine Apr 26, 2023
08d7b49
Merge branch 'main' into 154725-create-saved-views-hooks
tonyghiani Apr 27, 2023
ac20959
feat(infra): update typing Inventory Views
Apr 27, 2023
9cc2345
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine Apr 27, 2023
a164def
feat(infra): add useMetricsExplorerViews hook
Apr 27, 2023
38edf9b
feat(infra): refine types for metrics views
Apr 27, 2023
cd974bd
Merge branch 'main' into 154725-create-saved-views-hooks
tonyghiani Apr 27, 2023
b0b9f03
fix(infra): types
Apr 27, 2023
4092e28
tests(infra): remove legacy tests
Apr 27, 2023
4cfe534
tests(infra): remove exclusive tests
Apr 27, 2023
5a88bef
refactor(translation): remove unused translations
Apr 27, 2023
78df44d
refactor(translation): update toolbar types
Apr 27, 2023
d55002f
refactor(infra): switch to icon button for better alignment
Apr 27, 2023
ee872cd
refactor(infra): update test
Apr 27, 2023
7c8dae6
refactor(infra): update types
Apr 27, 2023
b526b14
refactor(infra): minor components changes
Apr 28, 2023
1ffd3e4
tests(infra): update views tets
Apr 28, 2023
cca3426
fix(infra): handle not found view with fallback to default
Apr 28, 2023
183b88c
fix(infra): remove memo
Apr 28, 2023
04ac8c7
fix(infra): fix flaky test
Apr 28, 2023
fa009c9
Update x-pack/plugins/infra/public/components/saved_views/manage_view…
tonyghiani May 2, 2023
3e3cc33
Merge branch 'main' into 154725-create-saved-views-hooks
tonyghiani May 2, 2023
6915fb5
Update x-pack/plugins/infra/public/hooks/use_inventory_views.ts
tonyghiani May 2, 2023
bcd0eb3
Update x-pack/plugins/infra/public/services/inventory_views/types.ts
tonyghiani May 2, 2023
bf3718c
Merge branch 'main' into 154725-create-saved-views-hooks
tonyghiani May 2, 2023
d881c37
Merge branch 'main' into 154725-create-saved-views-hooks
tonyghiani May 2, 2023
6137f8c
refactor(infra): remove dead code
Apr 28, 2023
3fad0e1
refactor(infra): remove dead testSubject code
Apr 28, 2023
63a59ff
fix(infra): remove translations
May 2, 2023
624825b
fix(infra): fix type
May 2, 2023
6ab5560
fix(infra): fix type
May 2, 2023
65e7859
Merge branch 'main' into 155117-cleanup-client-saved-objects
tonyghiani May 2, 2023
28a1d5d
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
kibanamachine May 2, 2023
34c527f
Merge branch 'main' into 155117-cleanup-client-saved-objects
tonyghiani May 4, 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
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ export const inventoryViewRequestParamsRT = rt.type({
inventoryViewId: inventoryViewIdRT,
});

export type InventoryViewRequestParams = rt.TypeOf<typeof inventoryViewRequestParamsRT>;

export const inventoryViewRequestQueryRT = rt.partial({
sourceId: rt.string,
});
Expand Down Expand Up @@ -62,5 +60,3 @@ const inventoryViewResponseRT = rt.exact(
export const inventoryViewResponsePayloadRT = rt.type({
data: inventoryViewResponseRT,
});

export type InventoryViewResponsePayload = rt.TypeOf<typeof inventoryViewResponsePayloadRT>;
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,3 @@ export type CreateInventoryViewAttributesRequestPayload = rt.TypeOf<
export const createInventoryViewRequestPayloadRT = rt.type({
attributes: createInventoryViewAttributesRequestPayloadRT,
});

export type CreateInventoryViewRequestPayload = rt.TypeOf<
typeof createInventoryViewRequestPayloadRT
>;
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,3 @@ const findInventoryViewResponseRT = rt.exact(
export const findInventoryViewResponsePayloadRT = rt.type({
data: rt.array(findInventoryViewResponseRT),
});

export type FindInventoryViewResponsePayload = rt.TypeOf<typeof findInventoryViewResponsePayloadRT>;
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ import * as rt from 'io-ts';
export const getInventoryViewRequestParamsRT = rt.type({
inventoryViewId: rt.string,
});

export type GetInventoryViewRequestParams = rt.TypeOf<typeof getInventoryViewRequestParamsRT>;
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,3 @@ export type UpdateInventoryViewAttributesRequestPayload = rt.TypeOf<
export const updateInventoryViewRequestPayloadRT = rt.type({
attributes: updateInventoryViewAttributesRequestPayloadRT,
});

export type UpdateInventoryViewRequestPayload = rt.TypeOf<
typeof updateInventoryViewRequestPayloadRT
>;
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ export const metricsExplorerViewRequestParamsRT = rt.type({
metricsExplorerViewId: metricsExplorerViewIdRT,
});

export type MetricsExplorerViewRequestParams = rt.TypeOf<typeof metricsExplorerViewRequestParamsRT>;

export const metricsExplorerViewRequestQueryRT = rt.partial({
sourceId: rt.string,
});
Expand Down Expand Up @@ -62,7 +60,3 @@ const metricsExplorerViewResponseRT = rt.exact(
export const metricsExplorerViewResponsePayloadRT = rt.type({
data: metricsExplorerViewResponseRT,
});

export type GetMetricsExplorerViewResponsePayload = rt.TypeOf<
typeof metricsExplorerViewResponsePayloadRT
>;
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,3 @@ export type CreateMetricsExplorerViewAttributesRequestPayload = rt.TypeOf<
export const createMetricsExplorerViewRequestPayloadRT = rt.type({
attributes: createMetricsExplorerViewAttributesRequestPayloadRT,
});

export type CreateMetricsExplorerViewRequestPayload = rt.TypeOf<
typeof createMetricsExplorerViewRequestPayloadRT
>;
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,3 @@ const findMetricsExplorerViewResponseRT = rt.exact(
export const findMetricsExplorerViewResponsePayloadRT = rt.type({
data: rt.array(findMetricsExplorerViewResponseRT),
});

export type FindMetricsExplorerViewResponsePayload = rt.TypeOf<
typeof findMetricsExplorerViewResponsePayloadRT
>;
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,3 @@ import * as rt from 'io-ts';
export const getMetricsExplorerViewRequestParamsRT = rt.type({
metricsExplorerViewId: rt.string,
});

export type GetMetricsExplorerViewRequestParams = rt.TypeOf<
typeof getMetricsExplorerViewRequestParamsRT
>;
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,3 @@ export type UpdateMetricsExplorerViewAttributesRequestPayload = rt.TypeOf<
export const updateMetricsExplorerViewRequestPayloadRT = rt.type({
attributes: updateMetricsExplorerViewAttributesRequestPayloadRT,
});

export type UpdateMetricsExplorerViewRequestPayload = rt.TypeOf<
typeof updateMetricsExplorerViewRequestPayloadRT
>;
23 changes: 0 additions & 23 deletions x-pack/plugins/infra/common/saved_objects/inventory_view.ts

This file was deleted.

23 changes: 0 additions & 23 deletions x-pack/plugins/infra/common/saved_objects/metrics_explorer_view.ts

This file was deleted.

Loading