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-6586][Server]add some ds process definition demo when init #11759

Merged
merged 29 commits into from
Oct 31, 2022

Conversation

amaoisnb
Copy link
Contributor

@amaoisnb amaoisnb commented Sep 2, 2022

[Feature-6586][Server]add some ds process definition demo when init
1.add some ds process definition demo when init, to display what task type can run and make user easy to
use ds.
2.need configure the JVM parameters (-Ddemo=true) to turn on the StandaloneServer service
3.need modify the tenant information in it

1.add some ds process definition demo when init, to display what task type can run and make user easy to
use ds.
2.need configure the JVM parameters (-Ddemo=true) to turn on the StandaloneServer service
3.need modify the tenant information in it
@amaoisnb amaoisnb changed the title Feature 6586 [Feature-6586][Server]add some ds process definition demo when init Sep 2, 2022
@SbloodyS SbloodyS added the first time contributor First-time contributor label Sep 3, 2022
@SbloodyS SbloodyS added the feature new feature label Sep 3, 2022
@EricGao888
Copy link
Member

Hi @amaoisnb , you could add closes: #6586 in you PR description to automatically link this PR to the issue it solves.

@EricGao888
Copy link
Member

related: #6586

Copy link
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

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

Please resolve conflicts.

BTW. It's better to use english in the commit message.

amaoisnb and others added 3 commits September 4, 2022 14:02
resolve the conflict
# Conflicts:
#	dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/controller/ProcessDefinitionControllerTest.java
@kezhenxu94
Copy link
Member

I don’t think this is a good idea to couple the demo codes with the production code. At least, you should move the demo codes to the module dolphinscheduler-tools, and execute that tool after starting DS server. Mixing the demo codes and production code increases maintainability complexity

@SbloodyS
Copy link
Member

SbloodyS commented Sep 6, 2022

I don’t think this is a good idea to couple the demo codes with the production code. At least, you should move the demo codes to the module dolphinscheduler-tools, and execute that tool after starting DS server. Mixing the demo codes and production code increases maintainability complexity

+1

2 similar comments
@EricGao888
Copy link
Member

I don’t think this is a good idea to couple the demo codes with the production code. At least, you should move the demo codes to the module dolphinscheduler-tools, and execute that tool after starting DS server. Mixing the demo codes and production code increases maintainability complexity

+1

@ruanwenjun
Copy link
Member

I don’t think this is a good idea to couple the demo codes with the production code. At least, you should move the demo codes to the module dolphinscheduler-tools, and execute that tool after starting DS server. Mixing the demo codes and production code increases maintainability complexity

+1

create demo-tool
@codecov-commenter
Copy link

codecov-commenter commented Oct 30, 2022

Codecov Report

Merging #11759 (f8e5db3) into dev (77e29b5) will decrease coverage by 0.56%.
The diff coverage is 26.16%.

❗ Current head f8e5db3 differs from pull request most recent head 1c41397. Consider uploading reports for the commit 1c41397 to get more accurate results

@@             Coverage Diff              @@
##                dev   #11759      +/-   ##
============================================
- Coverage     39.61%   39.04%   -0.57%     
+ Complexity     4192     4183       -9     
============================================
  Files          1038     1043       +5     
  Lines         38843    39506     +663     
  Branches       4447     4544      +97     
============================================
+ Hits          15387    15426      +39     
- Misses        21712    22324     +612     
- Partials       1744     1756      +12     
Impacted Files Coverage Δ
...eduler/plugin/alert/script/ScriptAlertChannel.java 16.66% <0.00%> (ø)
...che/dolphinscheduler/alert/AlertSenderService.java 46.00% <0.00%> (ø)
...scheduler/api/controller/AlertGroupController.java 78.57% <ø> (ø)
...hinscheduler/api/controller/ClusterController.java 89.47% <ø> (ø)
...cheduler/api/controller/DataQualityController.java 64.70% <ø> (ø)
...cheduler/api/controller/EnvironmentController.java 90.47% <ø> (ø)
...inscheduler/api/controller/ExecutorController.java 19.73% <ø> (ø)
...hinscheduler/api/controller/FavTaskController.java 14.28% <0.00%> (ø)
...hinscheduler/api/controller/ProjectController.java 50.00% <0.00%> (-18.43%) ⬇️
...nscheduler/api/controller/TaskGroupController.java 83.33% <ø> (ø)
... and 98 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

CodeQL found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

kezhenxu94
kezhenxu94 previously approved these changes Oct 31, 2022
Copy link
Member

@kezhenxu94 kezhenxu94 left a comment

Choose a reason for hiding this comment

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

Previous comments are addressed, basically LGTM

docs/docs/zh/guide/demo.md Outdated Show resolved Hide resolved
dolphinscheduler-tools/src/main/bin/demo-start.sh Outdated Show resolved Hide resolved
requestBodyMap.put("executionType", executionType);

try {
responseBody = OkHttpUtils.demoPost(url, token, requestBodyMap);
Copy link
Member

Choose a reason for hiding this comment

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

Ideally, I would prefer we should use RestTemplate to perform http requests, but this looks OK to me if you want to refactor later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Then I'll look at it and try to make adjustments

some adjustments
some doc adjustments
@kezhenxu94
Copy link
Member

The comments are not addressed but you click resolve conversation, please fix or reply if you think it's wrong. Don't simply mark it as resolved.

@amaoisnb
Copy link
Contributor Author

The comments are not addressed but you click resolve conversation, please fix or reply if you think it's wrong. Don't simply mark it as resolved.

I'm sorry I didn't reply to this

make some adjustments
make some adjustments
make some adjustments
@sonarcloud
Copy link

sonarcloud bot commented Oct 31, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 98 Code Smells

0.0% 0.0% Coverage
39.4% 39.4% Duplication

Copy link
Contributor

@caishunfeng caishunfeng left a comment

Choose a reason for hiding this comment

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

LGTM if CI pass

@caishunfeng caishunfeng merged commit b71d498 into apache:dev Oct 31, 2022
hstdream pushed a commit to hstdream/dolphinscheduler that referenced this pull request Nov 2, 2022
…pache#11759)

* [Feature-6586][Server]add some ds process definition demo when init
1.add some ds process definition demo when init, to display what task type can run and make user easy to
use ds.
2.need configure the JVM parameters (-Ddemo=true) to turn on the StandaloneServer service
3.need modify the tenant information in it
hstdream pushed a commit to hstdream/dolphinscheduler that referenced this pull request Nov 2, 2022
@cqutwangyu
Copy link
Contributor

Is this demo still working?
What are the preconditions?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants