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

[ISSUE #12342]: Improve the retrieval of ConfigInfoState to facilitate the extension and implementation of databases like Oracle. #12343

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

Conversation

gongycn
Copy link
Contributor

@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
Contributor 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?

KomachiSion
KomachiSion previously approved these changes Jul 18, 2024
@gongycn
Copy link
Contributor Author

gongycn commented Jul 29, 2024

I see the CLA has no signed.

Can you sign the CLA?

CLA has been signed.

… using a unified appendWhereClause method to construct the WHERE clause. Modify appendWhereClause to be protected, allowing for customization based on different database types, such as adjustments according to column names.
@gongycn gongycn changed the title fix(#12342): Improve the retrieval of ConfigInfoState to facilitate the extension and implementation of databases like Oracle. [ISSUE #12342]: Improve the retrieval of ConfigInfoState to facilitate the extension and implementation of databases like Oracle. Aug 1, 2024
@gongycn
Copy link
Contributor Author

gongycn commented Aug 12, 2024

@KomachiSion Could this change be merged? Thank you.

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