-
Notifications
You must be signed in to change notification settings - Fork 4.1k
server, ui: Merge Admin and Status endpoints #24989
Copy link
Copy link
Closed
Labels
A-kv-serverRelating to the KV-level RPC serverRelating to the KV-level RPC serverA-server-architectureRelates to the internal APIs and src org for server codeRelates to the internal APIs and src org for server codeA-webui-generalIssues on the DB Console that span multiple areas or don't have another clear category.Issues on the DB Console that span multiple areas or don't have another clear category.C-cleanupTech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.Tech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.
Metadata
Metadata
Assignees
Labels
A-kv-serverRelating to the KV-level RPC serverRelating to the KV-level RPC serverA-server-architectureRelates to the internal APIs and src org for server codeRelates to the internal APIs and src org for server codeA-webui-generalIssues on the DB Console that span multiple areas or don't have another clear category.Issues on the DB Console that span multiple areas or don't have another clear category.C-cleanupTech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.Tech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.
We have, for historical reasons, two different main endpoints for UI and Status data.
Originally, as we were upgrading the UI, the admin endpoint was supposed to handle all requests that were destined for the admin ui, as opposed to other misc endpoints. But that distinction is no longer true and never really was.
We also have to make sure that permissions are clear for every endpoint. And having the two endpoints is clearly just complicating that.
For anyone looking to add a new endpoint, there is no clear guidance, this makes doing any admin ui work more complicated.
I started auditing both and here are the endpoints in both right now:
Admin
Status:
It's obvious that there is no clear division between the two endpoints and I recommend that we move all into Status, just because there is less code movement. We should of course maintain the old links, at least until v2.2 or even v3.0.
Jira issue: CRDB-5737