Skip to content

Commit

Permalink
comment out data view get changes, lets run all the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Sep 19, 2021
1 parent 1614d3a commit f4fcaab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/plugins/data/common/data_views/data_views/data_views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,11 @@ export class DataViewsService {
};

private getSavedObjectAndInit = async (id: string): Promise<DataView> => {
const savedObject = await this.savedObjectsClient.get<DataViewAttributes>(
DATA_VIEW_SAVED_OBJECT_TYPE,
id
);
/*
let savedObject: SavedObject<DataViewAttributes>;
try {
savedObject = await this.savedObjectsClient.get<DataViewAttributes>(
Expand All @@ -429,6 +434,7 @@ export class DataViewsService {
'management/kibana/indexPatterns'
);
}
*/

if (!savedObject.version) {
throw new SavedObjectNotFound(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ export const registerUpdateIndexPatternRoute = (
if (changeCount < 1) {
throw new Error('Index pattern change set is empty.');
}

await indexPatternsService.updateSavedObject(indexPattern);

if (doRefreshFields && refresh_fields) {
Expand Down

0 comments on commit f4fcaab

Please sign in to comment.