Skip to content

Commit 712f0cc

Browse files
shivamvworohitesh-wingify
authored andcommitted
fix: polling not detecting settings changes
1 parent 9aa2f75 commit 712f0cc

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [1.21.0] - 2025-04-01
8+
## [1.21.1] - 2026-05-20
9+
10+
### Fixed
11+
12+
- Fixed polling not detecting settings changes from the server when `poll_interval` is set.
13+
14+
## [1.21.0] - 2026-04-01
915

1016
### Added
1117

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def run(self):
121121

122122
setup(
123123
name="vwo-fme-python-sdk",
124-
version="1.21.0",
124+
version="1.21.1",
125125
description="VWO Feature Management and Experimentation SDK for Python",
126126
long_description=long_description,
127127
long_description_content_type="text/markdown",

vwo/constants/Constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Constants:
1717
# TODO: read from setup.py
1818
sdk_meta = {
1919
"name": "vwo-fme-python-sdk",
20-
"version": "1.21.0"
20+
"version": "1.21.1"
2121
}
2222

2323
# Constants

vwo/vwo_builder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,11 @@ def update_poll_interval_and_check_and_poll(
248248
def check_and_poll(self):
249249
def poll():
250250
try:
251+
previous_settings = self.original_settings
251252
latest_settings = self.get_settings()
252253
if latest_settings and json.dumps(
253254
latest_settings, sort_keys=True
254-
) != json.dumps(self.original_settings, sort_keys=True):
255+
) != json.dumps(previous_settings, sort_keys=True):
255256
self.original_settings = latest_settings
256257
LogManager.get_instance().info(
257258
info_messages.get("POLLING_SET_SETTINGS")

0 commit comments

Comments
 (0)