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

Restore EXPLAIN capability #53

Merged
merged 2 commits into from
Jun 14, 2024
Merged

Restore EXPLAIN capability #53

merged 2 commits into from
Jun 14, 2024

Conversation

siddharthvp
Copy link
Collaborator

The explain endpoint now takes an additional db_name param, so that we can figure out the replica host to which the explain query should be sent.

Bug: T205214

@siddharthvp siddharthvp marked this pull request as ready for review June 14, 2024 10:49
dhinus
dhinus previously approved these changes Jun 14, 2024
Copy link
Member

@dhinus dhinus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but I have not tested it.

The explain endpoint now takes an additional db_name param, so that we can figure out the replica host to which the explain query should be sent.

Bug: T205214
;
}
output += "\n";
if(runtime.memberLookup((runtime.contextOrFrameLookup(context, frame, "extra")),"replag")) {
output += "\n<div class=\"alert alert-warning\">\n <h4 class=\"alert-heading\">Replication lag</h4>\n <p class=\"mb-0\">The database on which this query was executed has a <a href=\"https://replag.toolforge.org/\">synchronization delay</a> with the wiki.\n This can be caused by maintenance or incident on database, and should be resolved soon.<br>\n The modifications that was made in last <b>";
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are unrelated changes that were not made in this PR. Looks like the last time someone changed query-status.html, they missed running nunjucks precompile (understandable as there's no documentation on how to update it!). Perhaps we should add a CI step to ensure compiled.js matches the original files.

@siddharthvp siddharthvp merged commit bd68601 into main Jun 14, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants