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

release-22.1: admin: tenant support jobs endpoints #87432

Merged
merged 2 commits into from
Oct 31, 2022

Conversation

dhartunian
Copy link
Collaborator

Release note: None

Release justification: non-production code changeBackport 2/2 commits from #84620.

/cc @cockroachdb/release


Previously, the Job() and Jobs() endpoints were not implemented on the
tenant admin server as there was not a need and we had split the
implementation into a tenant-only server.

Now that we want to ship the jobs page into CC Console and support it
for multi-tenant, the endpoints for the UI should work as expected.

This PR edits the jobHelper and jobsHelper helpers to be functions
instead of methods in adminServer which allows the implementation to
be shared between the two servers.

Fixes #84621.

Release note: None

Release justification: low risk, high benefit addition to multi-tenant

@dhartunian dhartunian requested review from a team September 6, 2022 17:03
@dhartunian dhartunian requested a review from a team as a code owner September 6, 2022 17:03
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@dhartunian dhartunian changed the title admin: tenant support jobs endpoints release-22.1: admin: tenant support jobs endpoints Sep 7, 2022
Copy link
Contributor

@maryliag maryliag left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

Release note: None

Release justification: non-production code change
Previously, the Job() and Jobs() endpoints were not implemented on the
tenant admin server as there was not a need and we had split the
implementation into a tenant-only server.

Now that we want to ship the jobs page into CC Console and support it
for multi-tenant, the endpoints for the UI should work as expected.

This PR edits the `jobHelper` and `jobsHelper` helpers to be functions
instead of methods in `adminServer` which allows the implementation to
be shared between the two servers.

Release note: None

Release justification: low risk, high benefit addition to multi-tenant
@dhartunian dhartunian merged commit bc09df1 into cockroachdb:release-22.1 Oct 31, 2022
@dhartunian dhartunian deleted the backport22.1-84620 branch October 31, 2022 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants