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

wip: Alternative Storage Target support #190

Merged
merged 39 commits into from
May 24, 2023
Merged

wip: Alternative Storage Target support #190

merged 39 commits into from
May 24, 2023

Conversation

timyates
Copy link
Contributor

No description provided.

@timyates timyates changed the title wip: S3 bucket support [skip ci] wip: Alternative Storage Target support May 19, 2023
@timyates
Copy link
Contributor Author

timyates commented May 19, 2023

Currently wrong and needs some refactoring... We cannot have PG and S3 being subclasses of EmbeddedStorageConfigurationProvider

Extracted a base interface

Copy link
Contributor

@sdelamo sdelamo left a comment

Choose a reason for hiding this comment

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

We miss test-suite/src/test/java/io/micronaut/microstream/docs/PostgresPersistentCacheTest.java and test-suite/src/test/java/io/micronaut/microstream/docs/PostgresCustomerControllerTest.java for S3

@timyates timyates marked this pull request as ready for review May 23, 2023 14:27
@timyates timyates self-assigned this May 23, 2023
@timyates
Copy link
Contributor Author

@sdelamo I believe this is ready for review 🤞

src/main/docs/guide/storageTargets/s3.adoc Outdated Show resolved Hide resolved
@Bean
@Singleton
@Named(OTHER_CLIENT_NAME)
S3Client buildClient() {
Copy link
Contributor

Choose a reason for hiding this comment

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

It is more correct to pass to the factory method the bean dependency instead of to the factory constructor because it clearly defines the bean hierarchy.

Suggested change
S3Client buildClient() {
S3Client buildClient(S3Config s3Config) {

Copy link
Contributor

Choose a reason for hiding this comment

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

I have changed it here: 350e6d5

src/main/docs/guide/storageTargets/postgres.adoc Outdated Show resolved Hide resolved
@sdelamo
Copy link
Contributor

sdelamo commented May 24, 2023

@timyates I have flagged the tests which require docker and extract some test utils

@sonarcloud
Copy link

sonarcloud bot commented May 24, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

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

0.0% 0.0% Coverage
4.6% 4.6% Duplication

@sdelamo sdelamo merged commit 44a4054 into master May 24, 2023
@sdelamo sdelamo deleted the s3 branch May 24, 2023 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants