Skip to content

fix: mysql sample delete part #1081

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

Merged
merged 1 commit into from
Mar 24, 2022
Merged

fix: mysql sample delete part #1081

merged 1 commit into from
Mar 24, 2022

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented Mar 24, 2022

No description provided.

@csviri csviri self-assigned this Mar 24, 2022
@csviri csviri requested a review from metacosm March 24, 2022 08:51
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@csviri csviri linked an issue Mar 24, 2022 that may be closed by this pull request
@@ -32,9 +33,9 @@ public MySQLSchemaReconciler() {}
Secret secret = context.getSecondaryResource(Secret.class).orElseThrow();
SchemaDependentResource schemaDependentResource = context.managedDependentResourceContext()
.getDependentResource(SchemaDependentResource.class);
return schemaDependentResource.fetchResource(schema).map(s -> {
return schemaDependentResource.getResource(schema).map(s -> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why the change here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's unrelated to the problem. I think we should rather get the actual state from cache, and handle the details when to call the actual service to the dependent resource implementation.

Copy link
Collaborator

@metacosm metacosm left a comment

Choose a reason for hiding this comment

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

LGTM

@csviri csviri merged commit 94f0b75 into main Mar 24, 2022
@csviri csviri deleted the mysql-improvements branch March 24, 2022 09:40
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.

MySQLSchema Sample E2E test issues
2 participants