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: support APISIX_PROFILE for env-specific configuration #2293

Merged
merged 9 commits into from
Feb 6, 2022

Conversation

bzp2010
Copy link
Contributor

@bzp2010 bzp2010 commented Jan 24, 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?

This is a follow up to this PR by @kevinw66.
The original PR was not updated for a long time, and also after trying, I could not directly create the commit to finish it, so I created a new PR which directly used the results of @kevinw66 and tagged the author.

I added some additional startup logs to it and also added test cases.

Related issues

continue: #2238

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

@bzp2010 bzp2010 self-assigned this Jan 24, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jan 24, 2022

Codecov Report

Merging #2293 (8e6fbf0) into master (ae1001d) will increase coverage by 4.79%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2293      +/-   ##
==========================================
+ Coverage   65.08%   69.87%   +4.79%     
==========================================
  Files         184      184              
  Lines        7274     7280       +6     
  Branches      829      830       +1     
==========================================
+ Hits         4734     5087     +353     
+ Misses       2256     1898     -358     
- Partials      284      295      +11     
Flag Coverage Δ
backend-e2e-test 37.09% <50.00%> (-3.80%) ⬇️
backend-e2e-test-ginkgo 59.57% <50.00%> (?)
backend-unit-test 49.22% <ø> (+0.06%) ⬆️
frontend-e2e-test 68.10% <ø> (+0.04%) ⬆️

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

Impacted Files Coverage Δ
api/internal/conf/conf.go 59.22% <40.00%> (+0.97%) ⬆️
api/internal/core/server/server.go 62.50% <100.00%> (+0.79%) ⬆️
web/src/pages/Route/List.tsx 82.84% <0.00%> (ø)
api/internal/core/server/http.go 56.52% <0.00%> (ø)
web/src/pages/Route/transform.ts 77.77% <0.00%> (ø)
web/src/pages/Route/components/Step1/MetaView.tsx 100.00% <0.00%> (ø)
web/src/components/Plugin/PluginDetail.tsx 70.52% <0.00%> (+0.17%) ⬆️
api/internal/core/entity/format.go 67.30% <0.00%> (+1.30%) ⬆️
api/internal/core/storage/etcd.go 51.18% <0.00%> (+3.93%) ⬆️
... and 23 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 ae1001d...8e6fbf0. Read the comment docs.

@bzp2010 bzp2010 marked this pull request as ready for review January 29, 2022 12:08
@juzhiyuan
Copy link
Member

cc @zaunist @Baoyuantop to have a review

@hanf2x
Copy link
Contributor

hanf2x commented Jan 31, 2022

cc @Baoyuantop please help review this, Thanks.

Copy link
Contributor

@zaunist zaunist left a comment

Choose a reason for hiding this comment

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

/LGTM

@juzhiyuan juzhiyuan merged commit 88dadc2 into apache:master Feb 6, 2022
hongbinhsu pushed a commit to fitphp/apix-dashboard that referenced this pull request Feb 7, 2022
* master:
  feat: support APISIX_PROFILE for env-specific configuration (apache#2293)
  style: remove extra margin value (apache#2300)
hongbinhsu pushed a commit to fitphp/apix-dashboard that referenced this pull request Feb 23, 2022
* upstream:
  feat: support APISIX_PROFILE for env-specific configuration (apache#2293)
hongbinhsu pushed a commit to fitphp/apix-dashboard that referenced this pull request Feb 23, 2022
* upstream:
  feat: support APISIX_PROFILE for env-specific configuration (apache#2293)
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