Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: add rawDataEditor #1601

Merged
merged 19 commits into from
Mar 22, 2021
Merged

feat: add rawDataEditor #1601

merged 19 commits into from
Mar 22, 2021

Conversation

LiteSun
Copy link
Member

@LiteSun LiteSun commented Mar 16, 2021

Please answer these questions before submitting a pull request


Bugfix

  • Description

  • How to fix?


New feature or improvement

  • Describe the details and related test reports.

Please add the corresponding test cases if necessary.


Backport patches

  • Why need to backport?

  • Source branch

  • Related commits and pull requests

  • Target branch

@codecov-io
Copy link

codecov-io commented Mar 16, 2021

Codecov Report

Merging #1601 (2f4bf52) into master (76f083a) will increase coverage by 1.38%.
The diff coverage is 73.91%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1601      +/-   ##
==========================================
+ Coverage   72.32%   73.70%   +1.38%     
==========================================
  Files         134       87      -47     
  Lines        5647     2620    -3027     
  Branches      651      665      +14     
==========================================
- Hits         4084     1931    -2153     
+ Misses       1319      689     -630     
+ Partials      244        0     -244     
Flag Coverage Δ
backend-e2e-test ?
backend-e2e-test-ginkgo ?
backend-unit-test ?
frontend-e2e-test 73.70% <73.91%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...pages/Route/components/Step1/MatchingRulesView.tsx 52.74% <ø> (ø)
web/src/components/RawDataEditor/RawDataEditor.tsx 37.73% <31.57%> (-15.21%) ⬇️
web/src/pages/Consumer/List.tsx 90.00% <94.44%> (+4.81%) ⬆️
web/src/pages/Route/List.tsx 84.51% <94.44%> (+1.41%) ⬆️
web/src/pages/Service/List.tsx 97.43% <94.44%> (+1.28%) ⬆️
web/src/pages/Upstream/List.tsx 90.00% <94.44%> (+4.81%) ⬆️
web/src/constants.ts 100.00% <100.00%> (ø)
web/src/pages/Route/service.ts 88.88% <100.00%> (+0.65%) ⬆️
web/src/helpers.tsx 77.04% <0.00%> (-3.28%) ⬇️
api/cmd/manager/main.go
... and 49 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 76f083a...2f4bf52. Read the comment docs.

@LiteSun LiteSun marked this pull request as ready for review March 18, 2021 01:05
@LiteSun LiteSun marked this pull request as draft March 18, 2021 09:11
@LiteSun LiteSun marked this pull request as ready for review March 19, 2021 02:55
@juzhiyuan
Copy link
Member

also cc @guoqqqi to review

@liuxiran
Copy link
Contributor

in my local env, there is a problem:
image

test steps:

  1. raw edit a route, change the code mirror mode to yaml, submit
  2. create with editor, cancel
  3. raw edit a route, you will see the problem.

it would be better to recover the code mirror mode to json when open the raw data editor.

@juzhiyuan
Copy link
Member

cc @LiteSun to check

@LiteSun
Copy link
Member Author

LiteSun commented Mar 21, 2021

in my local env, there is a problem:
image

test steps:

  1. raw edit a route, change the code mirror mode to yaml, submit
  2. create with editor, cancel
  3. raw edit a route, you will see the problem.

it would be better to recover the code mirror mode to json when open the raw data editor.

ok, many thanks. I will fix it.

const domSelector = this.domSelector;
menuList.forEach(function (item) {
cy.visit('/');
cy.contains(item).click();
Copy link
Member

Choose a reason for hiding this comment

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

get is faster than contain? @guoqqqi

Copy link
Member

Choose a reason for hiding this comment

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

No, after many tests I found that it is not.

Copy link
Member

Choose a reason for hiding this comment

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

why?

Copy link
Member

@juzhiyuan juzhiyuan left a comment

Choose a reason for hiding this comment

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

also cc @guoqqqi to review this PR (feature & test)

@LiteSun LiteSun requested review from nic-chen and starsz March 21, 2021 10:53
@liuxiran
Copy link
Contributor

for the be e2e errors, may need @nic-chen @starsz @Jaycean help

@Jaycean
Copy link
Member

Jaycean commented Mar 21, 2021

for the be e2e errors, may need @nic-chen @starsz @Jaycean help

This is APISIX delete consumer.id Error caused by field incompatibility, @nic-chen has been created PR #1638 repaired it, waiting for merge repair.

@nic-chen
Copy link
Member

for the be e2e errors, may need @nic-chen @starsz @Jaycean help

This is APISIX delete consumer.id Error caused by field incompatibility, @nic-chen has been created PR #1638 repaired it, waiting for merge repair.

yes, please help review PR #1638

@LiteSun LiteSun changed the title feat: add rawDataEditor in route feat: add rawDataEditor Mar 22, 2021
@LiteSun
Copy link
Member Author

LiteSun commented Mar 22, 2021

Just sync master branch code and all CI passed. Please review when you have time.😆 @nic-chen @starsz @bzp2010

@starsz
Copy link
Contributor

starsz commented Mar 22, 2021

Just sync master branch code and all CI passed. Please review when you have time.😆 @nic-chen @starsz @bzp2010

Sorry, I can't review the frontend PR.

@LiteSun LiteSun requested a review from Jaycean March 22, 2021 03:11
@LiteSun
Copy link
Member Author

LiteSun commented Mar 22, 2021

ping~ @Jaycean @bzp2010

@LiteSun LiteSun merged commit 548bbe3 into apache:master Mar 22, 2021
@LiteSun
Copy link
Member Author

LiteSun commented Mar 22, 2021

Thanks to all the reviewers ~

@LiteSun LiteSun deleted the feat-rawDataEditor branch March 22, 2021 04:06
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support to show raw data for Route, Upstream, Service and so on
9 participants