Skip to content

Commit

Permalink
PMM-12710 Update method names
Browse files Browse the repository at this point in the history
  • Loading branch information
YashSartanpara1 committed Jun 10, 2024
1 parent 5639f0b commit 96cc2af
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export const fetchExplains = async (
};

const [classicResult, jsonResult] = await Promise.all([
mysqlMethods.getExplainMysql(payload).then(getActionResult),
mysqlMethods.getExplainJSONMysql(payload).then(getActionResult),
mysqlMethods.getExplain(payload).then(getActionResult),
mysqlMethods.getExplainJSON(payload).then(getActionResult),
]);

const jsonValue = parseExplain(jsonResult);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ export const mysqlMethods = {
return result.mysql_show_table_status.action_id;
},

getExplainJSONMysql: async ({ example, queryId, placeholders }) => {
getExplainJSON: async ({ example, queryId, placeholders }) => {
try {
const payload = getExplainPayload(example, queryId, placeholders);

const result = await MysqlDatabaseService.getExplainJSONMysql(payload);
const result = await MysqlDatabaseService.getExplainJSON(payload);

return result.mysql_explain_json.action_id;
} catch (e) {
Expand All @@ -58,11 +58,11 @@ export const mysqlMethods = {
}
},

getExplainMysql: async ({ example, queryId, placeholders }) => {
getExplain: async ({ example, queryId, placeholders }) => {
try {
const payload = getExplainPayload(example, queryId, placeholders);

const result = await MysqlDatabaseService.getExplainMysql(payload);
const result = await MysqlDatabaseService.getExplain(payload);

return result.mysql_explain.action_id;
} catch (e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ export default {
return apiRequest.post<any, any>('/v1/actions:startServiceAction', requestBody);
},

getExplainJSONMysql(body) {
getExplainJSON(body) {
const requestBody = { mysql_explain_json: body };

return apiRequest.post<any, any>('/v1/actions:startServiceAction', requestBody);
},

getExplainMysql(body) {
getExplain(body) {
const requestBody = { mysql_explain: body };

return apiRequest.post<any, any>('/v1/actions:startServiceAction', requestBody);
Expand Down

0 comments on commit 96cc2af

Please sign in to comment.