Skip to content

[mongodb] Upgrade dependencies - #20725

Merged
lsiepel merged 1 commit into
openhab:mainfrom
holgerfriedrich:pr-mongodb
May 16, 2026
Merged

[mongodb] Upgrade dependencies#20725
lsiepel merged 1 commit into
openhab:mainfrom
holgerfriedrich:pr-mongodb

Conversation

@holgerfriedrich

Copy link
Copy Markdown
Member
  • Upgrade mongodb-client from 4.11.1 to 5.4.
  • Upgrade test dependencies and helper libraries.

Not that this upgrade lifts the minmum database version to 4.0.
An update alert will be added if this PR is going to be accepted.

* Upgrade mongodb-client from 4.11.1 to 5.4.
* Upgrade test dependencies and helper libraries.

Not that this upgrade lifts the minmum database version to 4.0.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
@holgerfriedrich
holgerfriedrich requested a review from a team as a code owner May 14, 2026 12:07
@lsiepel

lsiepel commented May 14, 2026

Copy link
Copy Markdown
Contributor

We would probably need some links to migration documentation for users to migrate to 4.0+
Or upgradetool? i'm not that familiair with mongodb

@holgerfriedrich

Copy link
Copy Markdown
Member Author

@lsiepel I don't think this is necessary. MongoDB 3 seems to be EOL since 2021; the community edition also released the last patch in 2021.
I would have even upgraded to 4.2 (minimum req. of the current db driver), but as the tests relay on a library which does not provide the matching interface, I just did this intermediate step. We could also drop this, as it is only used as a fallback if Docker is not available.

I don't use this DB, there seems to be no commits besides maintenance since 2021.... So not sure who could answer questions or test the DB.

This PR was created because I think we should keep the shared infrastructure up to date, i.e. persistence, transformations, and all bindings installed per default by the setup-wizard.

@lsiepel lsiepel added the enhancement An enhancement or new feature for an existing add-on label May 16, 2026

@lsiepel lsiepel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, LGTM

Distro upgrade notice about minimum db version is needed.

@lsiepel
lsiepel merged commit 8beefd5 into openhab:main May 16, 2026
3 checks passed
@lsiepel lsiepel added this to the 5.2 milestone May 16, 2026
@holgerfriedrich

Copy link
Copy Markdown
Member Author

@lsiepel done, openhab/openhab-distro#1911, thanks

@holgerfriedrich
holgerfriedrich deleted the pr-mongodb branch May 16, 2026 10:40
kaikreuzer pushed a commit to openhab/openhab-distro that referenced this pull request May 17, 2026
Refs: openhab/openhab-addons#20725

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
markus7017 pushed a commit to markus7017/openhab-addons that referenced this pull request May 19, 2026
* Upgrade mongodb-client from 4.11.1 to 5.4.
* Upgrade test dependencies and helper libraries.

Not that this upgrade lifts the minmum database version to 4.0.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
markus7017 pushed a commit to markus7017/openhab-addons that referenced this pull request Jun 13, 2026
* Upgrade mongodb-client from 4.11.1 to 5.4.
* Upgrade test dependencies and helper libraries.

Not that this upgrade lifts the minmum database version to 4.0.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
darkscout pushed a commit to darkscout/openhab-addons that referenced this pull request Jul 5, 2026
* Upgrade mongodb-client from 4.11.1 to 5.4.
* Upgrade test dependencies and helper libraries.

Not that this upgrade lifts the minmum database version to 4.0.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
olemr pushed a commit to olemr/openhab2-addons that referenced this pull request Aug 8, 2026
* Upgrade mongodb-client from 4.11.1 to 5.4.
* Upgrade test dependencies and helper libraries.

Not that this upgrade lifts the minmum database version to 4.0.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Signed-off-by: olemr <olemr@olemr.com>
cipianpascu pushed a commit to cipianpascu/openhab-addons that referenced this pull request Aug 16, 2026
* Upgrade mongodb-client from 4.11.1 to 5.4.
* Upgrade test dependencies and helper libraries.

Not that this upgrade lifts the minmum database version to 4.0.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An enhancement or new feature for an existing add-on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants