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

fix(#12342): Improve the retrieval of ConfigInfoState to facilitate the extension and implementation of databases like Oracle. #12343

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

gongycn
Copy link

@gongycn gongycn commented Jul 12, 2024

What is the purpose of the change

fixes #12342
Improve the retrieval of ConfigInfoState to facilitate the extension and implementation of databases like Oracle.

Brief changelog

Generate the SQL required by ExternalConfigInfoPersistServiceImpl#findConfigInfoState using the select method from MapperManager.

Verifying this change

We have already used this method in the production environment, adapting the configuration management for both Oracle and MySQL databases.

…and implementation of databases like Oracle.
Copy link

@mhdifarahani mhdifarahani left a comment

Choose a reason for hiding this comment

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

yeah

@KomachiSion
Copy link
Collaborator

Can you add unit test for this?

…foPersistServiceImpl#findConfigInfoState` method.
@gongycn
Copy link
Author

gongycn commented Jul 17, 2024

Can you add unit test for this?

The SQL construction logic of the ExternalConfigInfoPersistServiceImpl#findConfigInfoState method has been modified. Therefore, a testBuildFindConfigInfoStateSql method was added to the ExternalConfigInfoPersistServiceImplTest to handle unit testing for the SQL construction part.

@KomachiSion
Copy link
Collaborator

I see the CLA has no signed.

Can you sign the CLA?

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.

The implementation of findConfigInfoState is not wrapped through MapperManager
3 participants