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

ISSUE-3740: Add tenant to user management functions #3760

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

BohuTANG
Copy link
Member

@BohuTANG BohuTANG commented Jan 4, 2022

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

Part of #3740
Make tenant not binding with the management api, so we can dynamically set the tenant(e.g from the api) to a session and do some meta operations with multi-tenant.

Changelog

  • Improvement

Related Issues

Part of #3740

Test Plan

Unit Tests

Stateless Tests

@databend-bot
Copy link
Member

Thanks for the contribution!
I have applied any labels matching special text in your PR Changelog.

Please review the labels and make any necessary changes.

@vercel
Copy link

vercel bot commented Jan 4, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/databend/databend/53di6U6svCWTG55khmJjNRA6HBGV
✅ Preview: Canceled

@codecov-commenter
Copy link

codecov-commenter commented Jan 4, 2022

Codecov Report

Merging #3760 (0c9a9b4) into main (a019084) will decrease coverage by 0%.
The diff coverage is 88%.

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #3760   +/-   ##
=====================================
- Coverage     59%     59%   -1%     
=====================================
  Files        707     707           
  Lines      38206   38230   +24     
=====================================
+ Hits       22808   22815    +7     
- Misses     15398   15415   +17     
Impacted Files Coverage Δ
query/src/api/rpc/flight_service.rs 52% <0%> (ø)
query/src/interpreters/interpreter_kill.rs 0% <0%> (ø)
query/src/interpreters/interpreter_show_grants.rs 0% <0%> (ø)
...src/interpreters/plan_schedulers/plan_scheduler.rs 32% <0%> (ø)
.../src/pipelines/transforms/transform_create_sets.rs 0% <0%> (ø)
query/src/storages/system/processes_table.rs 25% <0%> (+<1%) ⬆️
query/src/sql/statements/analyzer_expr.rs 68% <50%> (ø)
query/src/users/user_api.rs 68% <77%> (+16%) ⬆️
query/src/users/user_udf.rs 75% <83%> (ø)
query/src/storages/fuse/operations/optimize.rs 92% <85%> (+<1%) ⬆️
... and 34 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3a75eb5...0c9a9b4. Read the comment docs.

@databend-bot
Copy link
Member

Wait for another reviewer approval

@BohuTANG BohuTANG merged commit 840cdd1 into databendlabs:main Jan 4, 2022
@BohuTANG BohuTANG deleted the dev-context-tenant-3740 branch January 4, 2022 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants