-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add 'Execute' tab to Digital Twins page preview #903
Add 'Execute' tab to Digital Twins page preview #903
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 6946 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 7108 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 7093 lines exceeds the maximum allowed for the inline comments feature.
@VanessaScherma suggestions to improve the PR:
Also replace text at the top of "Execute" Tab with the following "This page demonstrates integration of DTaaS with gitlab CI/CD workflows. The feature is experimental and requires certain gitlab setup in order for it to work." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 7103 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 7245 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 7817 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5149 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5072 lines exceeds the maximum allowed for the inline comments feature.
if (typeof log === 'string') { | ||
log | ||
.replace( | ||
// TODO: Fix ansi character stripping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO found
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@VanessaScherma please check the comments. Thanks for the updates.
client/package.json
Outdated
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "@into-cps-association/dtaas-web", | |||
"version": "0.4.0", | |||
"version": "0.4.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be 0.5.0
client/package.json
Outdated
@@ -71,6 +75,7 @@ | |||
"react-redux": "^8.1.3", | |||
"react-router-dom": "^6.20.0", | |||
"react-scripts": "^5.0.1", | |||
"react-syntax-highlighter": "^15.5.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not required in this PR
client/src/util/gitlabDigitalTwin.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move this file to preview/util/gitlabDigitalTwin.ts
. But we will do pair programming to move the gitlabDriver.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I move the gitlabDriver.ts
now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that will be helpful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please give better names to checkFirstPipelineStatus
and checkSecondPipelineStatus
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed into checkParentPipelineStatus
and checkChildPipelineStatus
.
digitalTwin.gitlabInstance.projectId, | ||
digitalTwin.pipelineId, | ||
); | ||
await digitalTwin.stop( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this being called twice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To stop both the parent pipeline and the child pipeline.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I guess the change of function names makes this point clear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please provide pipeline name instead of pipelineId. The names can be parent pipeline and child pipeline. Perhaps there can be a mapping from name to id?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@VanessaScherma api/
build/
config/
node_modules/
script/
coverage/
dist/
test-results/
playwright-report/
public/ |
Since the ....
"coveragePathIgnorePatterns": [
...
"src/preview/util/gitlabDriver.ts"
],
.... |
@VanessaScherma The following changes are required for {
...
"contributors": [
...
"Cesar Vela",
"Vanessa Scherma"
],
...
"scripts": {
"build": "npx react-scripts build",
"clean": "npx rimraf build/ dist/ node_modules/ coverage/ playwright-report/ test-results/ test.svg src.svg src/util/gitlab.json",
...
"develop": "npx react-scripts start",
...
"gitlab:compile": "npx tsc --project tsconfig.gitlab.json",
...
},
...
} Please double check the proposed changes by running all the yarn commands suggested in |
Code Climate has analyzed commit 9938e33 and detected 1 issue on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
I have applied the requested changes. The commands in |
865c74b
into
INTO-CPS-Association:feature/distributed-demo
It replaces PR #891. It completes the Execute tab present on the Digital twins page preview, which is accessible from the appropriate link within the Workbench. Only some unit tests are still incomplete due to the library import error.