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

Feature remote import #114

Conversation

homholueng
Copy link
Contributor

@homholueng homholueng commented Apr 11, 2019

  • 新功能
    • 远程插件加载 APP

close #113
close #112
close #111
close #110
close #126

self.update_or_create(
name=config['name'],
from_config=True,
defaults=defaults)
Copy link
Contributor

Choose a reason for hiding this comment

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

name是唯一键,如果存在 from_config=False 的数据,这句话会报错,建议把 from_config=True 放到 defaults 中

Copy link
Contributor Author

Choose a reason for hiding this comment

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

再处理

@codecov-io
Copy link

codecov-io commented Apr 11, 2019

Codecov Report

Merging #114 into feature_remote_component_load will increase coverage by 0.8%.
The diff coverage is 91.69%.

Impacted file tree graph

@@                       Coverage Diff                        @@
##           feature_remote_component_load     #114     +/-   ##
================================================================
+ Coverage                          61.85%   62.65%   +0.8%     
================================================================
  Files                                306      320     +14     
  Lines                              12641    12990    +349     
================================================================
+ Hits                                7819     8139    +320     
- Misses                              4822     4851     +29
Impacted Files Coverage Δ
pipeline/contrib/external_plugins/models/fields.py 100% <100%> (ø)
...ipeline/contrib/external_plugins/utils/__init__.py 100% <100%> (ø)
...ine/contrib/external_plugins/utils/importer/git.py 100% <100%> (ø)
...peline/contrib/external_plugins/models/__init__.py 100% <100%> (ø)
...ontrib/external_plugins/utils/importer/__init__.py 100% <100%> (ø)
...e/contrib/external_plugins/utils/importer/utils.py 100% <100%> (ø)
pipeline/contrib/external_plugins/exceptions.py 100% <100%> (ø)
pipeline/contrib/external_plugins/__init__.py 100% <100%> (ø)
pipeline/contrib/external_plugins/admin.py 100% <100%> (ø)
pipeline/contrib/external_plugins/apps.py 66.66% <66.66%> (ø)
... and 18 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 26f3330...ae54720. Read the comment docs.

@pagezz-canway pagezz-canway merged commit f34ce41 into TencentBlueKing:feature_remote_component_load Apr 15, 2019
pagezz-canway pushed a commit to pagezz-canway/bk-sops that referenced this pull request Dec 27, 2019
* feature: 添加非标准存储代码导入器及 git 仓库代码导入器


* feature: 添加远程包源模型

* feature: 添加加载远程模块相关逻辑代码

* minor: 添加加载远程插件 APP

* feature: pipeline.utils.importer 添加导入器上下文

* minors: 完善 external_plugins app 的单元测试

* feature: GitRepoImporter 添加强制 HTTPS 开关

* minor: 添加远程包源配置获取语句

* minor: 单元测试完善,Importer Logger 配置修改,GitImporter 支持配置代理
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