Skip to content

feat: Add vm config parser, unify vm and helm type app deployment #503

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

Merged
merged 6 commits into from
Oct 31, 2018

Conversation

sunnywx
Copy link
Contributor

@sunnywx sunnywx commented Oct 18, 2018

Refactor app deployment

@sunnywx sunnywx requested a review from whDongRui October 18, 2018 04:20
@codecov
Copy link

codecov bot commented Oct 18, 2018

Codecov Report

Merging #503 into master will decrease coverage by 1.07%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #503      +/-   ##
==========================================
- Coverage    17.5%   16.43%   -1.08%     
==========================================
  Files          91       94       +3     
  Lines        1405     1497      +92     
  Branches      294      313      +19     
==========================================
  Hits          246      246              
- Misses       1103     1195      +92     
  Partials       56       56
Impacted Files Coverage Δ
src/components/Base/CodeMirror/index.jsx 14.28% <ø> (ø) ⬆️
src/components/Base/Button/index.jsx 50% <ø> (ø) ⬆️
src/components/Deploy/section.jsx 0% <0%> (ø)
src/components/Layout/CreateResource/index.jsx 0% <0%> (ø) ⬆️
src/components/Base/Select/select.jsx 0% <0%> (ø) ⬆️
src/components/Deploy/group.jsx 0% <0%> (ø)
src/components/Base/Radio/group.jsx 0% <0%> (ø) ⬆️
src/components/Deploy/index.js 0% <0%> (ø)
... and 1 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 87e2e36...d35f884. Read the comment docs.

{ title: 'Vxnet settings', items: this.parser.getVxnetSetting() }
);

console.log('render data: ', groups);
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove test code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

All right, this pr is working in progress, later will remove test code


handleSubmit = e => {
e.preventDefault();
console.log(getFormData(e.target));
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove test code.

@sunnywx sunnywx force-pushed the feat/add-qingcloud-config-parser branch from c86b422 to 1b88356 Compare October 30, 2018 01:57
@sunnywx sunnywx changed the title [WIP] feat: Add vm config parser [WIP] feat: Add vm config parser, unify vm and helm type deployment Oct 30, 2018
Deploy page updated when changed runtime, version
Fix test code
@sunnywx sunnywx changed the title [WIP] feat: Add vm config parser, unify vm and helm type deployment feat: Add vm config parser, unify vm and helm type app deployment Oct 30, 2018
@sunnywx sunnywx requested a review from liiil825 October 31, 2018 03:40
runtime_id: runtimeId,
limit: this.maxLimit
});
this.subnets = get(result, 'subnet_set', []);
this.subnetId = this.subnets[0] ? this.subnets[0].subnet_id : '';
Copy link
Contributor

Choose a reason for hiding this comment

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

No need remove this code. If selected subnet, then change selected runtime, the subnet will show previous value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, if changed runtime, newly subnets will be fetched, previous subnet won't be set.

Copy link
Contributor

Choose a reason for hiding this comment

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

Previous has a bug, after change runtime, query subnets no data, but the page subnet label show previous value.

} else {
this.yamlConfig = [];
this.errMsg = 'Invalid config file, failed to render page';
Copy link
Contributor

Choose a reason for hiding this comment

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

Add relatived translation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK

@sunnywx sunnywx merged commit aa84b64 into openpitrix:master Oct 31, 2018
@sunnywx sunnywx deleted the feat/add-qingcloud-config-parser branch October 31, 2018 07:38
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