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

feat: paas-service plan 支持多租户 #211

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SheepSheepChen
Copy link
Collaborator

No description provided.

@@ -214,6 +215,8 @@ def render_instance_data(request: HttpRequest, instance: ServiceInstance) -> Dic

class Plan(UuidAuditedModel):
name = models.CharField(verbose_name='方案名称', max_length=64)
display_name = models.CharField("方案展示名称", max_length=64, default="")
Copy link
Collaborator

Choose a reason for hiding this comment

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

display_name 需要国际化

@@ -214,6 +215,8 @@ def render_instance_data(request: HttpRequest, instance: ServiceInstance) -> Dic

class Plan(UuidAuditedModel):
name = models.CharField(verbose_name='方案名称', max_length=64)
display_name = models.CharField("方案展示名称", max_length=64, default="")
tenant_id = models.CharField(help_text="所属租户", max_length=128, default=DEFAULT_TENANT_ID)
Copy link
Collaborator

Choose a reason for hiding this comment

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

可以添加一个索引

db_index=True,

@@ -28,3 +28,5 @@ class Category(int, Enum):

# Login 服务的重定向链接字段名
REDIRECT_FIELD_NAME = "c_url"

DEFAULT_TENANT_ID = "default"
Copy link
Collaborator

Choose a reason for hiding this comment

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

增加说明

@@ -31,7 +31,7 @@
setup(
long_description=readme,
name='paas_service',
version='2.0.0',
version='2.0.2',
python_requires='<3.12,>=3.8',
author='blueking',
author_email='[email protected]',
Copy link
Collaborator

Choose a reason for hiding this comment

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

更新相关的单测代码?

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