Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

FF-1677 Python SDK UFC update #28

Merged
merged 40 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
72d1ee5
wip
schmit Mar 5, 2024
35b6151
add todo on timestamps
schmit Mar 5, 2024
a3a4833
fix linting errors
schmit Mar 5, 2024
aed5425
wip
schmit Mar 5, 2024
8ba3330
wip
schmit Mar 5, 2024
26006ec
wip
schmit Mar 5, 2024
36a3e18
address comments
schmit Mar 6, 2024
0df2809
wip
schmit Mar 14, 2024
571c2c7
update tests
schmit Mar 14, 2024
c698818
update tests and json
schmit Mar 15, 2024
209bfea
update tests
schmit Mar 15, 2024
bdcbb61
move value type to flag
schmit Mar 15, 2024
7cae3d5
fixes
schmit Mar 15, 2024
a95e0d8
update makefile to point to ufc tests
schmit Mar 15, 2024
4252e78
update version
schmit Mar 15, 2024
9f8f7f7
flake8 + mypy fixes
schmit Mar 15, 2024
6d38056
inject id into subject attributes
schmit Mar 15, 2024
17f09b5
Address Giorgio's comments
schmit Mar 19, 2024
a517779
fix check_type_match
schmit Mar 19, 2024
b231589
eval always returns a FlagEvaluation
schmit Mar 20, 2024
502f8f3
add type signatures
schmit Mar 20, 2024
2ba14c1
more typing
schmit Mar 21, 2024
6a0f3d3
use numeric instead of float
schmit Mar 21, 2024
6ec21dd
more typing
schmit Mar 21, 2024
e55e88f
more careful about rules and tests
schmit Mar 21, 2024
5cb9830
Address Giorgio's comments
schmit Mar 21, 2024
7897a67
fix typing error in none_result
schmit Mar 22, 2024
0506aaa
add NOT_MATCHES operator
schmit Mar 22, 2024
de969b0
get_integer_assignment should return an integer
schmit Mar 23, 2024
dcbe36e
update types in client.py
schmit Mar 25, 2024
b0ad9c1
use numeric instead of float
schmit Mar 28, 2024
8248353
Fix UFC tests, force default value
schmit Apr 3, 2024
9fda450
add metadata logging and is_initialized
schmit Apr 4, 2024
2c0b6cf
update endpoint
schmit Apr 12, 2024
1b830d8
Python UFC SDK updates (#29)
schmit Apr 12, 2024
3931550
Update function signatures
schmit Apr 18, 2024
6f35c5a
added semver tests
schmit Apr 22, 2024
82bfa59
return noneresult more often
schmit Apr 22, 2024
4864085
add sharders test
schmit Apr 22, 2024
67c439f
:broom:
schmit Apr 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ test-data:
rm -rf $(testDataDir)
mkdir -p $(tempDir)
git clone -b ${branchName} --depth 1 --single-branch ${githubRepoLink} ${gitDataDir}
cp ${gitDataDir}rac-experiments-v3.json ${testDataDir}
cp -r ${gitDataDir}assignment-v2 ${testDataDir}
cp -r ${gitDataDir}ufc ${testDataDir}
rm -rf ${tempDir}

.PHONY: test
Expand Down
6 changes: 3 additions & 3 deletions eppo_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
from eppo_client.client import EppoClient
from eppo_client.config import Config
from eppo_client.configuration_requestor import (
ExperimentConfigurationDto,
ExperimentConfigurationRequestor,
)
from eppo_client.configuration_store import ConfigurationStore
from eppo_client.constants import MAX_CACHE_ENTRIES
from eppo_client.http_client import HttpClient, SdkParams
from eppo_client.models import Flag
from eppo_client.read_write_lock import ReadWriteLock
from eppo_client.version import __version__

__version__ = "1.3.1"
schmit marked this conversation as resolved.
Show resolved Hide resolved

__client: Optional[EppoClient] = None
__lock = ReadWriteLock()
Expand All @@ -31,7 +31,7 @@ def init(config: Config) -> EppoClient:
apiKey=config.api_key, sdkName="python", sdkVersion=__version__
)
http_client = HttpClient(base_url=config.base_url, sdk_params=sdk_params)
config_store: ConfigurationStore[ExperimentConfigurationDto] = ConfigurationStore(
config_store: ConfigurationStore[Flag] = ConfigurationStore(
max_size=MAX_CACHE_ENTRIES
)
config_requestor = ExperimentConfigurationRequestor(
Expand Down
Loading
Loading