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

Summer ospp#12017 merge to 3.0 develop #12822

Merged

Conversation

KomachiSion
Copy link
Collaborator

@KomachiSion KomachiSion commented Nov 5, 2024

Please do not create a Pull Request without creating an issue first.

What is the purpose of the change

For #12017

Brief changelog

XX

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.

RickonZhang0929 and others added 18 commits August 21, 2024 13:53
…baba#12420)

* 提交测试

* [ISSUE alibaba#12017] Add console backend configuration handling with proxy and handler layers

* Add ConfigHandler interface for defining configuration operations

* Add ConfigInnerHandler to handle internal configuration logic

* Add ConfigProxy to delegate configuration tasks based on deployment type

* Add ConfigController to utilize ConfigProxy for configuration operations

* Update ConsoleConfig to get development type

* [ISSUE alibaba#12017] Fix checkstyle format

* Fix checkstyle format

* Add configuration file fields

* [ISSUE alibaba#12017] Update ConsoleConfigController route

* Update ConsoleConfigController route

* [ISSUE alibaba#12017] Fix CI PMD violation

* Delete unnecessary comments

* [ISSUE alibaba#12017] Update ConsoleConfigController return format

* Update ConsoleConfigController return format

* [ISSUE alibaba#12017] Update ConsoleConfigController publishConfig

* Update ConsoleConfigController publishConfig

* [ISSUE alibaba#12017] Updated the backend of the console's config section

* Added parameter validation and return value encapsulation to the Controller section

* Put business operations into the handler layer

* A total of 9 APIs are involved in the config section.

* [ISSUE alibaba#12017] Updating the config section backend methods

* Updating the config section backend methods

* [ISSUE alibaba#12017] Add unit tests for the config section

* Add unit tests for the config section

* Update uri of query method

* [ISSUE alibaba#12017] Delete redundant error codes

* Delete redundant error codes

---------

Co-authored-by: rickonzhang <2239164929@qq.com>
* [ISSUE alibaba#12017] Git Test

* Git Test

* [ISSUE alibaba#12017] Fix Git Test

* Fix Git Test

* [ISSUE alibaba#12017] Splitting server and console authentication

* Add ApiType annotations

* Update configuration file to add fields

* Update console authentication status fetch

* Update `application.properties` - Reuse `nacos.core.auth.enabled` and add `nacos.core.auth.console.enabled`

* Update `AuthConfigs` - Modify `isAuthEnabled()` to manage plugin initialization

* Update `AbstractProtocolAuthService` - Implement `isAuthEnabled()` method for `Secured` annotation and configuration-based authentication

* Update `RemoteRequestAuthFilter` - Use `authConfigs.isAuthEnabled()` for initialization and `protocolAuthService.authEnabled(secured)` for authentication checks

* [ISSUE alibaba#12017] Update the location of the authentication judgment

* Update the location of the authentication judgment
…ibaba#12553)

* [ISSUE alibaba#12017] Add the console backend API for config section

* Add history handling module

* [ISSUE alibaba#12017] Add the console backend API for naming section

* Add service handling module

* Add instance handling module

* [ISSUE alibaba#12017] Add the console backend API for auth section

* Add user handling module

* Add role handling module

* Add permission handling module

* [ISSUE alibaba#12017] Add the console backend API for core section

* Add cluster handling module

* [ISSUE alibaba#12017] Fix the error by adding ApiType

* Fix the error by adding ApiType

* Revert "[ISSUE alibaba#12017] Add the console backend API for auth section"

This reverts commit 052112a.

* [ISSUE alibaba#12017] Updated ControllerV3 for auth section

* Updated ControllerV3 for auth section

* [ISSUE alibaba#12017] Fix errors

* Add ApiType annotation

* Transfer the updateCluster method

* Fix Compilation Errors
…oller (alibaba#12591)

* Refactor the old version of the console's controller
…ibaba#12622)

* [ISSUE alibaba#12017] Add the console backend API for config section

* Add history handling module

* [ISSUE alibaba#12017] Add the console backend API for naming section

* Add service handling module

* Add instance handling module

* [ISSUE alibaba#12017] Add the console backend API for auth section

* Add user handling module

* Add role handling module

* Add permission handling module

* [ISSUE alibaba#12017] Add the console backend API for core section

* Add cluster handling module

* [ISSUE alibaba#12017] Fix the error by adding ApiType

* Fix the error by adding ApiType

* [ISSUE alibaba#12017] Refactor the old version of the console's controller

* Refactor the old version of the console's controller

* Revert "[ISSUE alibaba#12017] Add the console backend API for auth section"

This reverts commit 052112a.

* [ISSUE alibaba#12017] Updated ControllerV3 for auth section

* Updated ControllerV3 for auth section

* [ISSUE alibaba#12017] Fix errors

* Add ApiType annotation

* Transfer the updateCluster method

* Fix Compilation Errors

* [ISSUE alibaba#12017] Add unit tests for all sections

* Add unit tests for all sections

* [ISSUE alibaba#12017] Fix bugs

* Add getAllSubClientConfigByIp method in config section

* Fix bugs in AuthFilter and RemoteRequestAuthFilter

* Fix bugs in ServiceProxy

* [ISSUE alibaba#12017] Add language validate

* Add language validate

* [ISSUE alibaba#12017] Add validation operations

* Add validation operations

* [ISSUE alibaba#12017] Fix namespace update method

* Fix namespace update method

* [ISSUE alibaba#12017] Add config error codes

* Add config error codes

* [ISSUE alibaba#12017] Optimize API

* ApiType checking and adding

* Add groupName to Service's API.

* Modify the status code specified by HTTP

* [ISSUE alibaba#12017] Fix Result failure method

* Fix Result failure method

* Fix server state unit test
…libaba#12687)

* [ISSUE alibaba#12017] Update the frontend of the console by using the Console API for config section

* Update the request path

* Update the request parameters

* Update the return values

* [ISSUE alibaba#12017] Update the frontend of the console by using the Console API for other section

* Update the request path

* Update the request parameters

* Update the return values

* [ISSUE alibaba#12017] Fix bug

* Fix response code

* Fix login
…017-ui-fix

# Conflicts:
#	console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js
#	console-ui/src/reducers/authority.js
…12795)

* [ISSUE alibaba#12017] Fix backend bugs

* Modified the namespace update method

* Added two beta-related API in the config section

* Modified relevant unit tests

* [ISSUE alibaba#12017] Fix frontend bugs

* Merged the develop branch

* Fixed bugs in configuration, service, and namespace
* [ISSUE alibaba#12017] Fix backend bugs

* Modified the namespace update method

* Added two beta-related API in the config section

* Modified relevant unit tests

* [ISSUE alibaba#12017] Fix frontend bugs

* Merged the develop branch

* Fixed bugs in configuration, service, and namespace

* [ISSUE alibaba#12017] Fix console bugs

* Fix config clone bug

* Fix cluster leave message

* Fix admin request switch

* Fix admin init bug
* Fix config clone bug

* Fix state version bug
* Fix config clone test unit bugs

* Fix server state test unit bugs
* Refactor v3 console controller parameter unified to form object.

* Add NacosApi annotation to v3 naming controller.

* remove useless method.

* add NacosApi annotation for v3 console controller and refactor by form parameters.

* add NacosApi for v3 console config controller and fix parameter extractor.

* Refactor v3 control API by form data.
# Conflicts:
#	console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js
@KomachiSion KomachiSion added this to the 3.0.0 milestone Nov 5, 2024
Copy link

github-actions bot commented Nov 5, 2024

Thanks for your this PR. 🙏
Please check again for your PR changes whether contains any usage/api/configuration change such as Add new API , Add new configuration, Change default value of configuration.
If so, please add or update documents(markdown type) in docs/next/ for repository nacos-group/nacos-group.github.io


感谢您提交的PR。 🙏
请再次查看您的PR内容,确认是否包含任何使用方式/API/配置参数的变更,如:新增API新增配置参数修改默认配置等操作。
如果是,请确保在提交之前,在仓库nacos-group/nacos-group.github.io中的docs/next/目录下添加或更新文档(markdown格式)。

@KomachiSion KomachiSion merged commit c4097d3 into alibaba:v3.0-develop Nov 5, 2024
2 checks passed
@KomachiSion KomachiSion deleted the summer-ospp#12017-sync-3.0 branch November 5, 2024 07:01
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.

2 participants