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

重构 resources.client 模块,引入 ContextedModel 类型、新的 CompClient 组织与 Mock 方式 #828

Merged
merged 6 commits into from Mar 17, 2021

Conversation

piglei
Copy link
Collaborator

@piglei piglei commented Mar 10, 2021

  • 重构 resources.client 模块,部分逻辑沉入 components 里新增的 bcs_api 模块
  • 引入 ContextedModel 类型(Project, Cluster),压缩 (access_token, project_id, cluster_id) 参数
  • 重构 components 里的 paas_cc 与 bcs_api Client 模块,并引入新的 Mock 机制

相关 Issues:#819 #820

bcs-app/backend/components/bcs_api.py Outdated Show resolved Hide resolved
bcs-app/backend/components/bcs_api.py Outdated Show resolved Hide resolved
bcs-app/backend/components/base.py Outdated Show resolved Hide resolved
bcs-app/backend/components/bcs_api.py Show resolved Hide resolved
bcs-app/backend/resources/cluster/models.py Show resolved Hide resolved
bcs-app/backend/resources/client.py Show resolved Hide resolved
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.

None yet

3 participants