Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion ui/packages/tidb-dashboard-for-dbaas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pingcap/tidb-dashboard-for-dbaas",
"version": "0.0.68",
"version": "0.0.80",
"main": "dist/main.js",
"module": "dist/main.js",
"files": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,41 @@ class DataSource implements IStatementDataSource {
return client.getAxiosInstance().get('/statements/time_ranges', options)
}

// quick plan bind api
statementsPlanBindStatusGet(
sqlDigest: string,
beginTime: number,
endTime: number,
options?: ReqConfig
) {
return client.getInstance().statementsPlanBindingGet(
{
sqlDigest,
beginTime,
endTime
},
options
)
}

statementsPlanBindCreate(planDigest: string, options?: ReqConfig) {
return client.getInstance().statementsPlanBindingPost(
{
planDigest
},
options
)
}

statementsPlanBindDelete(sqlDigest: string, options?: ReqConfig) {
return client.getInstance().statementsPlanBindingDelete(
{
sqlDigest
},
options
)
}

// slow query
slowQueryAvailableFieldsGet(options?: ReqConfig) {
return client.getInstance().slowQueryAvailableFieldsGet(options)
Expand Down Expand Up @@ -170,6 +205,7 @@ export const ctx: () => IStatementContext = () => ({
cfg: {
apiPathBase: client.getBasePath(),
enableExport: false,
showHelp: false
showHelp: false,
enablePlanBinding: true
}
})
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ class DataSource implements IStatementDataSource {
})
}

// quick plan bind api
statementsPlanBindStatusGet(
sqlDigest: string,
beginTime: number,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ const PlanTable = ({
onRenderCheckbox={(props) => (
<Radio checked={props?.checked} disabled={!!boundPlanDigest} />
)}
style={{ overflow: 'scroll' }}
/>
)
}
Expand Down