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

Fix wrong .historicState call in .changedSince #3348

Merged
merged 1 commit into from Feb 3, 2023

Conversation

J-N-K
Copy link
Member

@J-N-K J-N-K commented Feb 2, 2023

When calculating .changedSince the "then" state is queried via the .historicState method. Regardless of the serviceId used when calling .changedSince the historic state was always queried from the default persistence service.

Signed-off-by: Jan N. Klug github@klug.nrw

When calculating `.changedSince` the "then" state is queried via the `.historicState` method. Regardless of the `serviceId` used when calling `.changedSince` the historic state was always queried from the default persistence service.

Signed-off-by: Jan N. Klug <github@klug.nrw>
@J-N-K J-N-K added bug An unexpected problem or unintended behavior of the Core persistence labels Feb 2, 2023
@J-N-K J-N-K requested a review from a team as a code owner February 2, 2023 20:26
@J-N-K J-N-K changed the title Fix wrong .historicState call Fix wrong .historicState call in .changedSince Feb 2, 2023
@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/oh-3-4-history-changedsince-always-returns-true/143869/25

Copy link
Contributor

@cweitkamp cweitkamp left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@cweitkamp cweitkamp merged commit dd89d7b into openhab:main Feb 3, 2023
@jlaur
Copy link
Contributor

jlaur commented Feb 3, 2023

@openhab/core-maintainers, would this qualify to be cherry-picked into 3.4.x?

@J-N-K J-N-K deleted the bug-persistence branch February 3, 2023 20:13
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this pull request Jul 12, 2023
When calculating `.changedSince` the "then" state is queried via the `.historicState` method. Regardless of the `serviceId` used when calling `.changedSince` the historic state was always queried from the default persistence service.

Signed-off-by: Jan N. Klug <github@klug.nrw>
GitOrigin-RevId: dd89d7b
@wborn wborn added this to the 4.0 milestone Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of the Core persistence
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants