Commit 529fa36
prepare 5.0.0 release (#168)
* fix apc/apcu calls
* fix comment
* fix deprecated caching store classes
* better caching abstraction
* typo
* linter
* fix namespaces
* fix tests
* doc fixes
* move a bunch more stuff
* misc cleanup
* add test for not having any flags
* restore documentation for deprecated properties
* version 3.5.0
* revert accidental commit
* add experimentation event overrides for rules and fallthrough
* linter
* misc fixes
* misc test fixes
* Hr/ch34492/waitonconsul (#39)
* add step to wait on Consul
* coerce user attributes to strings when necessary, don't send events without valid users
* explanatory comments
* add release script (version update only)
* use newer readme footer format
* support metric value in track()
* linter
* update method description
* add param to skip db tests, update docs for new repo name
* wrong method name
* add tests for rollout calculations, + misc test cleanup
* misc doc fixes
* misc doc fixes
* update package name (#45)
* add test for cached get all
* typo
* revert bugfix to test the test
* reinstate bugfix
* mix fixes, rename file
* fix filename
* misc cleanup
* linter
* misc fixes
* test state cleanup
* linter + fix filename in instructions
* misc CI fixes, don't try to install phpredis in 5.6
* don't let user fall outside of last bucket in rollout
* PHP 5.5 requires even null properties to be defined
* minor cleanup
* more accurate changelog text regarding phpredis
* Add circle jobs for newer PHP versions.
* Revert "Add circle jobs for newer PHP versions."
This reverts commit 8939cb2.
* implement doc generation with phpDocumentor 3 (prerelease), clean up doc tags (#50)
* Add CI jobs for PHP 7.3 + 7.4 (#51)
* ensure events aren't sent if send_events is false
* clarify test with comment
* make prefix concatenation in DynamoDB consistent with other SDKs
* fix test
* fix PHP 5.5 CI build by pinning Composer version (#54)
* Updating warning log in Identify to not say Track was called (#56)
* Removed the guides link
* add alias functionality and some related tests
* Revert "add alias functionality and some related tests"
This reverts commit 2bf1cba.
* add alias events support (#57)
* add alias function to LDClient
* add `contextKind` to events that require the new field
* add tests for alias and contextKind
* merge exp-alloc
* drop support for EOL php versions and update deps (#60)
* fix test class
* remove database integrations from SDK (#63)
* add type hints to FeatureRequesterBase methods
* fix PHPRedis logic for prefix & custom client, add unit tests (#64)
* add psalm lints and php hints (#62)
* remove deprecated members (#65)
* change default base URL to sdk.launchdarkly.com
* move non-public classes into Impl namespace (#66)
* add CI job for PHP 8.0 (#69)
* use phpDocumentor 3 + misc doc comment cleanup (#68)
* Updates docs URLs
* pin Psalm to 4.9.2 to prevent a spurious linting error (#71)
* use Releaser v2 config + add badge links in readme (#72)
* use Releaser v2 config + add badge links in readme
* fix badge URL
* use Releaser PHP project template (#73)
* use Releaser PHP project template
* exclude implementation classes from docs
* remove obsolete line that's no longer used because $seed is computed elsewhere
* remove obsolete VERSION file
* Fix test confirming send_events = false is honored (#78)
* Minor cleanup and consistency changes (#79)
* Add integration test for curl event publisher (#77)
* Curl honor connect_timeout (#81)
* Set required connect_timeout option in test (#82)
* Add Windows support for "Curl" publisher (#80)
* Add cs-check to build process (#83)
* Don't treat numeric strings as numbers (#84)
* Decrease psalm error level (#85)
* added TestData, FlagBuilder; added TestDataTest; started implementing FlagBuilder methods
* made props protected, made basic build method, made variations method with tests
* continued implementing test data and tests for test data
* implemented varationForAllUsers, valueForAllUsers, and variationForUsers along with corresponding tests
* reorganized functions, added needed classes and functions, left some bodys blank to complete later, implemeted others, organized tests, added missing assertions
* broken - transitioning build to return a FeatureFlag, finished implementing some methods
* reverted build to return array, implemented getFeature and getAllFeatures methods in FeatureRequester interface for TestData
* fixed build, implemented FeatureRequester, added simple test case
* Event attribute filtering is overly aggressively (#86)
If you try to create a custom attribute with a value of 0, our event
serialization code would filter that out because `0 != null` is false.
However, it is reasonable to expect that a user might want to provide
the value of 0 as a custom value.
The code has been updated to only exclude explicitly null values.
* Account for traffic allocation on all flags (#87)
* finished FlagRuleBuilder implementation; fixed psalm errors; improved comment blocks to adhere better to phpdoc; fixed formatting errors in both TestData and TestDataTest
* fixed php-cs-fixer warnings in TestDataTest.php
* Apply suggestions from code review
Co-authored-by: Matthew M. Keeler <keelerm84@gmail.com>
* replace use of array_push with append operator; standardized capitalization of booleans including in code blogs; other formatting adjustments
* remove array_splice() implementation of existing user key removal due to breakage in unit tests
* converted variationForUser to use array_splice but fixed issue caused by pass by reference instead of pass by value
* fixed missing indexes required to decode FlagBuilder into a FeatureFlag using the decode() method
* split off TestData\FlagBuilder and TestData\FlagRuleBuilder from TestData; add test coverage for TestData class
* additional cleanup; added missing type hint; minor refactoring
* remove special handling of singleton arrays in FlagBuilder::variations()
* run php-cs-fixer on TestData-related files
* started writing repetitive tests using the phpunit @dataProvider feature
* swapped positions of expected and actual in dataProvider-driven test
* fix typos in code in comment blocks
* Apply whitespace fixes from code review
Co-authored-by: Matthew M. Keeler <keelerm84@gmail.com>
* split unwieldy tests in TestDataTest into separate tests; address TODO item
* added annotations to dataProvider-driven tests
* changed _isBooleanFlag() implementation to use strict equality
* Add unit test to verify `in` operator in TestData (#89)
* Add support for psr/log 2 and 3 (#91)
* Adds link to Relay Proxy docs
* master -> main
* Add support for Guzzle 6.3 (#93)
* Use setVersion on update of a changed flag (#161)
- in TestData::update when flag is being copied from previous version - use setVersion rather than ['version'] to avoid generated error
- associated unit test to update an initial flag, change the flag and update it again
- unit-tested using docker for php 7.3, 7.4, 8.0, 8.1
Co-authored-by: Colin Henwood <colin.henwood@xero.com>
* Add support for monolog 3.0 (#94)
* fix base URI concatenation so path isn't lost
* fix JSON output for empty allFlagsState result
* lint
* also fix base URIs for events
* fix JSON output for empty allFlagsState result (#97)
* fix base URI concatenation so path isn't lost (#96)
* fix base URI concatenation so path isn't lost
* also fix base URIs for events
* disallow non-strings in semver comparisons (#98)
* implement contract test service (#95)
* (5.0) fix date parsing to disallow invalid types and formats (#99)
* fix date parsing to disallow invalid types and formats
* lint
* change test service to not require Docker, enable tests in CI (#100)
* remove alias events (#101)
* (U2C #1) implement context type (without attribute references) (#102)
* (U2C #2) basic changes to use contexts in evaluations instead of users (#103)
* (U2C #3) update CI, release configuration, and dev dependencies for min PHP version of 8.0 (#104)
* update CI, release configuration, and dev dependencies for min PHP version of 8.0-
* require more recent php-cs-fixer
* (U2C #4) use PHP 8 type declarations and strict mode (#105)
* (U2C #5) misc syntax cleanup to take advantage of modern language features (#106)
* (U2C 6) factor evaluation logic out of model classes (#107)
* (U2C #7) support contextKind in clauses (#108)
* (U2C #8) support contextTargets (#109)
* (U2C #9) support contextKind in rollouts/experiments (#110)
* (U2C #10) support includedContexts/excludedContexts in segment (#111)
* support attribute reference lookups in evaluations
* misc fixes
* move AttributeReference class and create instances of it
* lint
* improve error handling/logging in evaluations
* misc fixes
* fix exception string conversion
* (U2C #11) support attribute reference lookups in evaluations (#112)
* support attribute reference lookups in evaluations
* misc fixes
* move AttributeReference class and create instances of it
* lint
* comment
* revert unnecessary change
* update all event logic for U2C
* (U2C #12) improve error handling/logging in evaluations (#113)
* coalesce operator makes Elvis operator redundant
* more coalesce
* (U2C #13) update all event logic for U2C (#114)
* remove LDUser and LDUserBuilder (#115)
* (U2C #15) implement prerequisite cycle detection (#120)
* (U2C #16) implement segment recursion and segment cycle detection (#117)
* remove LDUser and LDUserBuilder
* implement prerequisite cycle detection
* lint
* rm unused
* rm debugging
* implement segment recursion and segment cycle detection
* (U2C #17) make AttributeReference public in new Types namespace (#118)
* (U2C #18) move EventPublisher & FeatureRequester out of main namespace (#119)
* (U2C #19) remove deprecated things, clean up tests (#121)
* re-add LDUser, allow SDK to accept it interchangeably with LDContext
* doc comment improvements
* fix custom attribute validation for old users
* fix user conversion
* update TestData API to use context kinds (#123)
Co-authored-by: Eli Bishop <eli@launchdarkly.com>
Co-authored-by: hroederld <46500128+hroederld@users.noreply.github.com>
Co-authored-by: LaunchDarklyCI <dev@launchdarkly.com>
Co-authored-by: Ben Woskow <48036130+bwoskow-ld@users.noreply.github.com>
Co-authored-by: Ben Woskow <bwoskow@launchdarkly.com>
Co-authored-by: Gavin Whelan <gwhelan@launchdarkly.com>
Co-authored-by: elliot <elliot@debian.elliot>
Co-authored-by: Elliot Haisley <35050275+Apache-HB@users.noreply.github.com>
Co-authored-by: Harpo Roeder <hroeder@launchdarkly.com>
Co-authored-by: LaunchDarklyReleaseBot <launchdarklyreleasebot@launchdarkly.com>
Co-authored-by: Ember Stevens <ember.stevens@launchdarkly.com>
Co-authored-by: ember-stevens <79482775+ember-stevens@users.noreply.github.com>
Co-authored-by: Matthew M. Keeler <keelerm84@gmail.com>
Co-authored-by: charukiewicz <charukiewicz@protonmail.com>
Co-authored-by: Joey Malinowski <joemalin95@gmail.com>
Co-authored-by: Christian Charukiewicz <christian@foxhound.systems>
Co-authored-by: Matthew M. Keeler <mkeeler@launchdarkly.com>
Co-authored-by: Colin Henwood <aretenz@users.noreply.github.com>
Co-authored-by: Colin Henwood <colin.henwood@xero.com>1 parent b98ef21 commit 529fa36
File tree
97 files changed
+6352
-3413
lines changed- .circleci
- .ldrelease
- src/LaunchDarkly
- Impl
- Evaluation
- Events
- Integrations
- Model
- Integrations
- TestData
- Subsystems
- Types
- test-service
- tests
- Impl
- Evaluation
- Events
- Integrations
- Model
- Integrations
- Types
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
97 files changed
+6352
-3413
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | 80 | | |
92 | 81 | | |
93 | | - | |
94 | | - | |
95 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
96 | 86 | | |
97 | 87 | | |
98 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
2 | 10 | | |
3 | 11 | | |
4 | 12 | | |
5 | 13 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | | - | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
20 | 17 | | |
21 | 18 | | |
22 | 19 | | |
23 | | - | |
| 20 | + | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | | - | |
| 24 | + | |
28 | 25 | | |
29 | 26 | | |
30 | 27 | | |
31 | 28 | | |
32 | 29 | | |
33 | 30 | | |
34 | 31 | | |
35 | | - | |
| 32 | + | |
| 33 | + | |
36 | 34 | | |
37 | | - | |
| 35 | + | |
38 | 36 | | |
39 | | - | |
| 37 | + | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
45 | | - | |
46 | | - | |
| 43 | + | |
| 44 | + | |
47 | 45 | | |
48 | | - | |
| 46 | + | |
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
101 | 92 | | |
102 | 93 | | |
103 | 94 | | |
| |||
228 | 219 | | |
229 | 220 | | |
230 | 221 | | |
231 | | - | |
| 222 | + | |
232 | 223 | | |
233 | 224 | | |
234 | 225 | | |
| |||
242 | 233 | | |
243 | 234 | | |
244 | 235 | | |
245 | | - | |
| 236 | + | |
246 | 237 | | |
247 | | - | |
| 238 | + | |
248 | 239 | | |
249 | | - | |
| 240 | + | |
250 | 241 | | |
251 | 242 | | |
252 | 243 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
| |||
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
| 44 | + | |
47 | 45 | | |
48 | 46 | | |
49 | 47 | | |
50 | | - | |
51 | | - | |
52 | 48 | | |
53 | 49 | | |
54 | 50 | | |
55 | | - | |
56 | | - | |
| 51 | + | |
| 52 | + | |
57 | 53 | | |
58 | 54 | | |
59 | 55 | | |
| |||
100 | 96 | | |
101 | 97 | | |
102 | 98 | | |
103 | | - | |
| 99 | + | |
104 | 100 | | |
105 | | - | |
| 101 | + | |
106 | 102 | | |
107 | 103 | | |
108 | 104 | | |
| |||
115 | 111 | | |
116 | 112 | | |
117 | 113 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
| 114 | + | |
123 | 115 | | |
124 | 116 | | |
125 | 117 | | |
| |||
155 | 147 | | |
156 | 148 | | |
157 | 149 | | |
158 | | - | |
| 150 | + | |
159 | 151 | | |
160 | 152 | | |
161 | 153 | | |
| |||
0 commit comments