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

feat: set serverUrlMap with env, update cypress, update stylelint #2583

Merged
merged 64 commits into from
Aug 23, 2022

Conversation

SkyeYoung
Copy link
Member

@SkyeYoung SkyeYoung commented Aug 11, 2022

Please answer these questions before submitting a pull request, or your PR will get closed.

Why submit this pull request?

  • Bugfix
  • New feature provided
  • Improve performance
  • Backport patches

What changes will this PR take into?

  • set serverUrlMap using environment variables
  • update Cypress to v10
  • migrate frontend e2e tests
  • update stylint

Related issues

fix/resolve #

Checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@codecov-commenter
Copy link

codecov-commenter commented Aug 11, 2022

Codecov Report

Attention: Patch coverage is 63.88889% with 39 lines in your changes missing coverage. Please review.

Project coverage is 60.20%. Comparing base (a15fe35) to head (cca085a).
Report is 54 commits behind head on master.

Files with missing lines Patch % Lines
web/src/components/LabelsfDrawer/LabelsDrawer.tsx 0.00% 18 Missing ⚠️
web/src/pages/Route/components/Step1/MetaView.tsx 86.56% 9 Missing ⚠️
web/config/defaultSettings.ts 53.33% 7 Missing ⚠️
web/src/pages/Route/List.tsx 37.50% 5 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (a15fe35) and HEAD (cca085a). Click for more details.

HEAD has 2 uploads less than BASE
Flag BASE (a15fe35) HEAD (cca085a)
frontend-e2e-test 4 2
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #2583       +/-   ##
===========================================
- Coverage   76.08%   60.20%   -15.89%     
===========================================
  Files         136      134        -2     
  Lines        3601     3553       -48     
  Branches      868      867        -1     
===========================================
- Hits         2740     2139      -601     
- Misses        861     1414      +553     
Flag Coverage Δ
frontend-e2e-test 60.20% <63.88%> (-15.89%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

};

if (REACT_APP_ENV === 'test' && !test) {
throwPromptError`SERVER_URL_TEST`;
Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM, but should we use the most generic function call syntax? like throwPromptError("SERVER_URL_TEST");, although it still works, it may be confusing for those unfamiliar with it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Although we don't seem to have used it much in this project yet, it is actually relatively common, for example in emotion, styled components, graphql...

@bzp2010
Copy link
Contributor

bzp2010 commented Aug 11, 2022

BTW, the frontend e2e CI was crashed, if you have no other changes, please let me rewrite it to run it. @

@SkyeYoung SkyeYoung changed the title feat: set serverUrlMap using environment variables feat: set serverUrlMap with env, update cypress, update stylelint Aug 19, 2022
@juzhiyuan juzhiyuan merged commit 0458664 into apache:master Aug 23, 2022
hongbinhsu pushed a commit to fitphp/apix-dashboard that referenced this pull request Sep 10, 2022
* upstream/master: (23 commits)
  feat: Add config struct of OpenID-Connect Login (apache#2597)
  feat: set serverUrlMap with env, update cypress, update stylelint (apache#2583)
  chore: fix function name typo (apache#2599)
  fix: page refresh causes deletion exception (apache#2593)
  feat: support show all enable plugin list tab (apache#2585)
  fix: drawer components delete plugin not working (apache#2573)
  feat: add batch delete function for route (apache#2502)
  test: reduce fe ci time (apache#2557)
  doc(csp): add correct csp rule (apache#2548)
  doc: add a notice about the compatibility of Ingress and Dashboard (apache#2552)
  fix: add judgement for last_report_time (apache#2551)
  fix: cli test invalid etcd (apache#2544)
  feat: fix actions version to root version (apache#2521)
  fix: duplicate ID (apache#2501)
  fix: block arbitrary file index (apache#2497)
  docs: update deploy-with-docker.md (apache#2472)
  feat: translating Turkish for new features (apache#2487)
  docs: add new import and export docs to sidebar (apache#2485)
  docs: add data loader and new OpenAPI 3 loader (apache#2484)
  feat: support data loader in frontend (apache#2480)
  ...

# Conflicts:
#	api/internal/route.go
#	web/config/defaultSettings.ts
#	web/yarn.lock
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.

6 participants