Skip to content

Commit

Permalink
add schema value on eventData
Browse files Browse the repository at this point in the history
  • Loading branch information
justinpark committed Feb 9, 2023
1 parent 239fb2a commit 4025454
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions superset-frontend/src/middleware/loggerMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,13 @@ const loggerMiddleware = store => next => action => {
...logMetadata,
};
} else if (sqlLab) {
const editor = sqlLab.queryEditors.find(
({ id }) => id === sqlLab.tabHistory.slice(-1)[0],
);
logMetadata = {
source: 'sqlLab',
source_id: sqlLab.queryEditors.find(
({ id }) => id === sqlLab.tabHistory.slice(-1)[0],
)?.dbId,
source_id: editor?.dbId,
schema: editor?.schema,
};
}

Expand Down

0 comments on commit 4025454

Please # to comment.