Skip to content

Add website field to tenant management utils#147

Merged
Tianhao-Gu merged 5 commits intomainfrom
feature/tenant-website-field
Mar 26, 2026
Merged

Add website field to tenant management utils#147
Tianhao-Gu merged 5 commits intomainfrom
feature/tenant-website-field

Conversation

@Tianhao-Gu
Copy link
Copy Markdown
Contributor

@Tianhao-Gu Tianhao-Gu commented Mar 26, 2026

Summary

  • Add website parameter to update_tenant_metadata() and pass it through to the governance client
  • Display website in _print_tenant() output
  • Add test_updates_website test and update _make_detail fixture
  • Bump governance client to v0.0.17 (includes website field in tenant models)

Companion to BERDataLakehouse/minio_manager_service#52

Test plan

  • All 39 notebook_utils tenant management tests pass
  • Verify update_tenant_metadata("tenant", website="https://example.com") works end-to-end
  • Verify show_my_tenants() displays website field

Add website parameter to update_tenant_metadata(), display it in
_print_tenant(), and add test coverage. Bump governance client to
v0.0.17 which includes the website field.
Copilot AI review requested due to automatic review settings March 26, 2026 19:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the tenant management utilities to support a new website metadata field end-to-end (update + display), aligned with an updated governance client that includes website in the tenant models.

Changes:

  • Add website parameter to update_tenant_metadata() and pass it into the TenantMetadataUpdate request body.
  • Display website in _print_tenant() output (affecting show_my_tenants() rendering).
  • Update tests/fixtures to cover website updates and printing; bump minio-manager-service-client to v0.0.17.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
notebook_utils/berdl_notebook_utils/minio_governance/tenant_management.py Adds website support to metadata updates and prints website in tenant detail output.
notebook_utils/tests/minio_governance/test_tenant_management.py Adds a focused test for updating website, updates detail fixture, and asserts website appears in printed output.
notebook_utils/pyproject.toml Bumps governance client source revision to v0.0.17.
notebook_utils/uv.lock Updates the lockfile to match the v0.0.17 governance client revision/commit.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  notebook_utils/berdl_notebook_utils/minio_governance
  tenant_management.py
Project Total  

This report was generated by python-coverage-comment-action

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copilot AI review requested due to automatic review settings March 26, 2026 19:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Tianhao-Gu Tianhao-Gu merged commit 8f291b4 into main Mar 26, 2026
6 checks passed
@Tianhao-Gu Tianhao-Gu deleted the feature/tenant-website-field branch March 26, 2026 21:32
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.

2 participants