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

easily to send HTTP request in task node #2308

Merged
merged 34 commits into from
Nov 24, 2021

Conversation

STRRL
Copy link
Member

@STRRL STRRL commented Sep 15, 2021

What problem does this PR solve?

Issue Number: It's a part of #2259

Problem Summary:

What is changed and how it works?

What's Changed:

Related changes

  • PR to update chaos-mesh/website/chaos-mesh/website-zh:
  • Need to update Chaos Dashboard component, related issue:
  • Need to cheery-pick to the release branch

Checklist

Tests

  • Unit test
  • E2E test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Breaking backward compatibility

Release note

Please add a release note.
If you don't think this PR needs a release note then fill it with None.

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Sep 15, 2021

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • g1eny0ung
  • iguoyr

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
@STRRL STRRL force-pushed the http-request-on-workflow-task branch from 8e61e13 to 4b8b16d Compare September 15, 2021 06:17
pkg/curl/render.go Outdated Show resolved Hide resolved
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
@STRRL STRRL changed the title easily to send HTTP reqeust in task node easily to send HTTP request in task node Nov 5, 2021
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
pkg/curl/parser.go Outdated Show resolved Hide resolved
Signed-off-by: STRRL <str_ruiling@outlook.com>
@STRRL STRRL added this to the Release 2.1 milestone Nov 12, 2021
Closes: chaos-mesh#2505
Signed-off-by: STRRL <str_ruiling@outlook.com>
Copy link
Member

@iguoyr iguoyr left a comment

Choose a reason for hiding this comment

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

LGTM

"deleteDesc": "This task will be deleted",
"submitAll": "Submit All"
},
"serialTitle": "Set serial",
"parallelTitle": "Set parallel",
"suspendTitle": "Set suspend",
"customTitle": "Set task",
"httpTitle": "Set HTTP Request",
Copy link
Member

Choose a reason for hiding this comment

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

Missed in zh.json.

Copy link
Member Author

Choose a reason for hiding this comment

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

done in 2ad163b

jsonContent: false,
})

const validateRequestForm = (newValue: RequestForm) => {
Copy link
Member

Choose a reason for hiding this comment

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

It looks like this validation is useless, I guess it can be removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

done in 8efaaa0

.then((response) => {
if (response.data) {
const parsedForm = response.data as RequestForm
setInitialValues({
Copy link
Member

Choose a reason for hiding this comment

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

{
  ...parsedForm,
  followLocation: parsedForm.followLocation || false,
  jsonContent: parsedForm.jsonContent || false,
}

I think this block can be written like above if the fields are exact.

Copy link
Member Author

Choose a reason for hiding this comment

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

done in c86efdd

Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
Signed-off-by: STRRL <str_ruiling@outlook.com>
@STRRL
Copy link
Member Author

STRRL commented Nov 23, 2021

Updated! PTAL @g1eny0ung

Copy link
Member

@g1eny0ung g1eny0ung left a comment

Choose a reason for hiding this comment

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

LGTM 🍺

@g1eny0ung
Copy link
Member

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: c86efdd

@STRRL
Copy link
Member Author

STRRL commented Nov 23, 2021

/run-e2e-tests

1 similar comment
@STRRL
Copy link
Member Author

STRRL commented Nov 24, 2021

/run-e2e-tests

@ti-chi-bot ti-chi-bot merged commit c43406e into chaos-mesh:master Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants