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

add PostgreSQL driver #307

Conversation

nitram509
Copy link
Collaborator

add PostgreSQL driver as a dependency, so it will be bundled into Docker image...
as proposed in #254

add postgres driver as dependency, so it will be bundled into Docker image
@saig0 saig0 self-requested a review October 10, 2021 07:20
@saig0
Copy link
Contributor

saig0 commented Oct 10, 2021

@nitram509 thank you for your contribution 🎉 I'll review your PR soon 👀

Copy link
Contributor

@saig0 saig0 left a comment

Choose a reason for hiding this comment

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

@nitram509 your PR looks good 👍

I've one suggestion regarding the test. Please have a look. Thanks 🍪

Comment on lines +13 to +19
@SpringBootTest
@ContextConfiguration(
classes = {TestContextJpaConfiguration.class},
loader = AnnotationConfigContextLoader.class)
@Transactional
@ActiveProfiles({"postgres-docker", "application-junittest.yaml"})
public class ZeebeApplicationPostgresTest {
Copy link
Contributor

Choose a reason for hiding this comment

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

🔧 We could remove this special test for Postgres with a generic configuration in the pom.xml.

Please have a look at the following commit: camunda-community-hub/zeeqs@b491e2b. With the configuration, it will run all existing tests with Postgres.

I'm sorry that I forgot to point this out earlier 😅

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@saig0 I did insert your recommended changes in the POM, but must admit, I don't see a tree in the forest ;)
I mean, when executing mvn test I can't verify postgres is profile is activated, nor used.
Any recommendations?

Copy link
Contributor

Choose a reason for hiding this comment

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

I see 🙈 There are so many log statements that it's impossible to observe anything 🌳 I found a configuration to reduce the logs.

But you're right. It doesn't run the tests with the PostgreSQL data source. The problem is that the test setup is slightly different from ZeeQS (i.e. one module vs. a separated module for data). I guess that the easiest way is to bring your initial test back 😅

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@saig0
Phillip,
nothing is simpler than that. I just did a revert but left it in history.
Feel free to squash them.

@nitram509 nitram509 requested a review from saig0 October 18, 2021 18:32
Copy link
Contributor

@saig0 saig0 left a comment

Choose a reason for hiding this comment

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

@nitram509 thanks for your fast reply 👍
I'll add my configuration for the log and merge your PR 🚀

@saig0 saig0 merged commit 38c3035 into camunda-community-hub:master Oct 19, 2021
@nitram509 nitram509 deleted the issue-254-bundle-postgres-driver-into-docker-image branch October 19, 2021 12:58
@danshapir
Copy link

@saig0 can you please release 2.1.1 (not just a snapshot)? 2.1.0 doesn't work with PSQL driver.

@saig0
Copy link
Contributor

saig0 commented Dec 6, 2021

@danshapir yes 😅 I'll build a release in the next few days 🏗️

@saig0
Copy link
Contributor

saig0 commented Dec 7, 2021

@danshapir a new version 2.2.0 is released 🎉

@ojgutierrez
Copy link

Hi, can you please add Mysql Support, driver not found since 2.1.0 version
Thanks

@saig0
Copy link
Contributor

saig0 commented Dec 13, 2021

Hi, can you please add Mysql Support, driver not found since 2.1.0 version

There is no MySQL support until now. Please create a new issue for it.
Feel free to contribute by submitting a PR similar to this one 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants