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

feat!: Upgrade to support Gun 2.x #99

Merged
merged 149 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from 148 commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
bf9d979
[ch65671] Mass rename from eld to ldclient (#49)
zurab-darkly Feb 18, 2020
eaa10e3
Alpha => beta (#50)
bwoskow-ld Feb 19, 2020
6efb9bc
Changed package name and description (#51)
torchhound Feb 20, 2020
8ae4adb
Merge branch 'master' of https://github.com/launchdarkly/erlang-serve…
torchhound Feb 20, 2020
3266428
Added event_format to ldclient_user, formatted all events, and added …
torchhound Mar 11, 2020
5584715
[ch76955] Fix dates in tests to be rfc3339 compliant (#53)
zurab-darkly May 17, 2020
f1bbed1
[ch76953] Add Erlang/OTP 23 to circle tests (#54)
zurab-darkly May 17, 2020
375f308
[ch76961] Fix dialyzer warning for missing offline key in options typ…
zurab-darkly May 18, 2020
7f8e8a4
[ch77043] Workaround for fixing shotgun SSE parsing bug (#56)
zurab-darkly May 18, 2020
d915026
Merge branch 'public-master'
zurab-darkly May 19, 2020
e5d4072
Merge branch 'public-master'
zurab-darkly May 19, 2020
0673ef1
[ch82755] Add SSE tests and fix for network timeout on initial connec…
zurab-darkly Jul 21, 2020
1f8a9cf
[ch83275] Handle socket closing in handle_cast (#58)
torchhound Jul 22, 2020
64d513f
[ch85404] Initialize updaters asynchronously, restart updates after c…
zurab-darkly Aug 7, 2020
94bc7b6
[ch85404] Fix updater initialization state bugs (#61)
zurab-darkly Aug 10, 2020
8343f68
[ch68359] Undo quick fix for shotgun SSE event parsing (#63)
zurab-darkly Aug 25, 2020
b0b82bd
Upgraded shotgun to 0.5.0, updated CHANGELOG for 1.0.0-beta4 (#62)
torchhound Aug 25, 2020
a70f0fe
Update version to beta4
torchhound Aug 27, 2020
4abc325
Merge branch 'master' of https://github.com/launchdarkly/erlang-serve…
torchhound Aug 27, 2020
002e600
[ch89280] Ignore path in streaming put events (#64)
zurab-darkly Sep 15, 2020
8095b5f
[ch89932] Fix the events URL path from /api/events/bulk to /bulk (#65)
zurab-darkly Sep 18, 2020
7185327
Clean up generated documentation (#67)
torchhound Nov 20, 2020
7554549
[ch30413] Reload flag data when storage server fails (#68)
torchhound Dec 10, 2020
5947126
[ch55223] Fully parse flags and segments before storing them (#69)
torchhound Jan 8, 2021
c1ea00d
Fixed patch flag and segment parsing, updated unit tests (#70)
torchhound Jan 19, 2021
1c04ce4
Changed app.launchdarkly to sdk.launchdarkly, changed initial stream …
torchhound Jan 20, 2021
f8e1b6c
Cleaned up patch parsing code, segments now pass integration tests (#71)
torchhound Jan 20, 2021
ffb473e
Added unit test for specifying custom user values as custom map inste…
torchhound Jan 22, 2021
3529a3b
Added LDD Mode (#76)
torchhound Jan 22, 2021
b6d6000
[ch59635] Feature Store: Redis (#74)
torchhound Jan 28, 2021
bb3c3e2
Redis Cache (#73)
torchhound Jan 29, 2021
c7a592d
[ch99672] Add new deleted flag if it doesn't already exist (#77)
torchhound Jan 29, 2021
91f4068
Changed list to all in eval (#78)
torchhound Feb 2, 2021
9204090
[ch99670] Add Redis storage check to SDK initialization check (#79)
torchhound Feb 2, 2021
c355c88
Removed the guides link
bwoskow-ld Feb 3, 2021
65bf4c8
Fixed Redis Parsing (#80)
torchhound Feb 16, 2021
a767616
Rename track_with_metric to track_metric (#81)
torchhound Feb 18, 2021
3a2a827
Removing the beta banner (#82)
bwoskow-ld Feb 18, 2021
8ece209
merge from public after release
LaunchDarklyCI Feb 23, 2021
f9316f4
Make internal storage files private from generated doc (#83)
torchhound Feb 23, 2021
25bf264
merge from public after release
LaunchDarklyCI Feb 24, 2021
72807af
typechecking errors
Apr 27, 2021
0ed8885
make dialyzer happy
Apr 29, 2021
59e6c8b
add missing handling for adding alias events
Apr 30, 2021
ee17a5f
add tests for alias events
Apr 30, 2021
3272356
add second alias method
May 3, 2021
036d912
remove unused imports and simplify alias function
May 4, 2021
aa22277
Merge pull request #84 from launchdarkly/ehaisley/ch99748/alias
apache-hb May 4, 2021
761ffba
merge from public after release
LaunchDarklyCI May 6, 2021
9c3f73a
add otp 24 to circleci test coverage (#86)
apache-hb Jun 25, 2021
c6c103c
Merge branch 'master' of github.com:launchdarkly/erlang-server-sdk
bwoskow-ld Jun 25, 2021
13e435b
update dependencies to newer versions (#87)
apache-hb Jun 30, 2021
5f16adb
merge from public after release
Aug 6, 2021
62de79d
Merge branch 'public-master'
zurab-darkly Aug 17, 2021
fb34b26
[ch121494] Send header keys as binary for HTTP2 client compatibility …
zurab-darkly Sep 3, 2021
fe6c893
[ch122091] Force HTTP1 mode (#89)
zurab-darkly Sep 10, 2021
1771713
[ch122248] Add try/catch expressions during evaluation and SSE (#90)
zurab-darkly Sep 13, 2021
16a0aa8
merge from public after release
Sep 14, 2021
451cba8
Updating from the deprecated elixir circleci image to a newer one (#91)
bwoskow-ld Sep 17, 2021
df8a9b5
ch123363 Update to not add a default variation of 0 to rules. Pass ma…
kinyoklion Sep 24, 2021
ba962ac
merge from public after release
Sep 27, 2021
eedcc16
ch64830 Updates to improve the release process for erlang. (#93)
kinyoklion Sep 30, 2021
909237c
ch108414 Implement support for experiment traffic allocation v2. (#95)
kinyoklion Oct 18, 2021
c617981
ch99138 Add ability to use flags from files. (#94)
kinyoklion Oct 18, 2021
28ad232
merge from public after release
Oct 18, 2021
b3c871e
Merge branch 'master' of github.com:launchdarkly/erlang-server-sdk
kinyoklion Oct 29, 2021
90fecbc
sc-120173 Add support for http options. (#96)
kinyoklion Nov 3, 2021
d697b0f
Remove backticks from comments.
kinyoklion Nov 3, 2021
835e970
merge from public after release
Nov 3, 2021
99bc4cd
sc-130423 Fix option typings and update dialyzer to allow analyzing t…
kinyoklion Nov 9, 2021
93db5a6
merge from public after release
Nov 9, 2021
e66fb33
Local filesystem monitor fix (#52)
matt-glover Dec 29, 2021
9d67f83
Merge branch 'contrib' of github.com:launchdarkly/erlang-server-sdk
kinyoklion Dec 29, 2021
7efdbd5
merge from public after release
Dec 30, 2021
b32e780
add single instance note
mmrj Feb 11, 2022
dfb6b6e
Merge pull request #103 from launchdarkly/mollyjones2723/sc-138438/up…
mmrj Feb 14, 2022
507bb5e
#1 Initial implementation of the test service. (#99)
kinyoklion Mar 4, 2022
f508888
Test data source (#104)
belevy Apr 18, 2022
c4a2ed3
Handle null items in configuartion and commands. (#105)
kinyoklion Apr 20, 2022
ba06f61
merge from public after release
Apr 20, 2022
5b3d0a6
Pin hex plugin version. (#107)
kinyoklion Apr 20, 2022
29940c9
Rename master to main. (#108)
kinyoklion May 5, 2022
c7498ba
[sc-157515] [sc-123638] Fix for use with OTP-25. Update shotgun to re…
kinyoklion Jun 22, 2022
d1fce48
merge from public after release
Jun 23, 2022
7bc08c5
Update parameter name. (#110)
kinyoklion Nov 1, 2022
d8902b3
[sc-175162] Correctly handle deleted flags and segments. (#111)
kinyoklion Nov 2, 2022
993e1d5
Implement backoff/jitter and temporary/permanent failure for streams.…
kinyoklion Nov 4, 2022
20fbf10
Implement support for server time. (#113)
kinyoklion Nov 8, 2022
be84e2b
[sc-175575] Remove inlining users and alias events. (#114)
kinyoklion Nov 9, 2022
c372435
[sc-175574] Implement attribute reference support. (#115)
kinyoklion Nov 10, 2022
81f8657
[sc-176205] Rename user_keys_capacity -> context_keys_capacity. (#117)
kinyoklion Nov 10, 2022
56239c1
Account for bookishspork sometimes producing correct dates. (#116)
kinyoklion Nov 10, 2022
e2731da
Merge branch 'main' into u2c
kinyoklion Nov 10, 2022
aa6ca5d
Implement basic context support. (#118)
kinyoklion Nov 30, 2022
a923057
Allow null for track data. (#121)
kinyoklion Dec 5, 2022
c636f5b
Merge branch 'main' into u2c
kinyoklion Dec 5, 2022
1a06b05
[sc-177158] implement context serialization and redaction redaction. …
kinyoklion Dec 9, 2022
c0bdc72
[sc-177164] Implement support for creating an ldclient_context:contex…
kinyoklion Dec 9, 2022
59951e7
[sc-177167] Add support for getting the context canonical key. (#120)
kinyoklion Dec 9, 2022
5a32070
Fix spacing from merge.
kinyoklion Dec 9, 2022
8211c31
[sc-180192] Remove secondary support. (#123)
kinyoklion Dec 9, 2022
aab2453
Add support for getting context keys, as required for events. (#124)
kinyoklion Dec 9, 2022
125bba3
[sc-181588] Add the ability to create a context from the JSON represe…
kinyoklion Dec 22, 2022
cce95dc
[sc-176202] [sc-179455] Basic context flowing through everything. (#125)
kinyoklion Jan 9, 2023
7995391
[sc-181658] Add support for targeting kind. (#127)
kinyoklion Jan 9, 2023
84c39a5
Report malformed_flag for clauses with invalid attribute references (…
kinyoklion Jan 9, 2023
ecc826e
Update contract tests to support V2. (#129)
kinyoklion Jan 19, 2023
8bcf04e
feat: Add support for application id and application version configur…
kinyoklion Jan 27, 2023
956721d
chore: Add support for the polling capability. (#131)
kinyoklion Jan 28, 2023
34ddac7
build(deps): Bump lru version to 2.4.0 (#132)
kinyoklion Jan 30, 2023
ff69be1
Merge branch 'main' into u2c
kinyoklion Jan 30, 2023
e18370b
Fix docs for 1.6 release. Add docs to CI. (#133)
kinyoklion Jan 30, 2023
0ff0c68
merge from public after release
Jan 30, 2023
1060efd
Merge branch 'main' into u2c
kinyoklion Jan 31, 2023
5d0df3c
fix: Do not attempt to access attribute references into non-map field…
kinyoklion Jan 31, 2023
2cc63df
feat: Add support for context targets in segments. (#135)
kinyoklion Feb 1, 2023
1dec7f3
feat: Add support for contextKind in rollouts. (#137)
kinyoklion Feb 6, 2023
8e65700
feat: Support contextTargets for flags. (#139)
kinyoklion Feb 6, 2023
3dbe75f
feat: Experimental rollouts always bucket using key. (#138)
kinyoklion Feb 6, 2023
7f39980
fix: Correct handling of name attribute, default anonymous to false. …
kinyoklion Feb 6, 2023
1eec128
feat: Add support for nested segments. (#141)
kinyoklion Feb 6, 2023
6825889
fix: Fix issues with events for U2C. (#142)
kinyoklion Feb 8, 2023
9baa5b1
[sc-187818] fix: Handle circular references in flag prereqs. (#143)
kinyoklion Feb 8, 2023
c85c34d
feat: Update flagbuilder and testdata to support contexts. (#144)
kinyoklion Feb 21, 2023
6b10468
fix: Implement additional clause testing. Fix exception for invalid r…
kinyoklion Feb 21, 2023
ad57620
chore: Update releaser config for maintenance branches. (#146)
kinyoklion Feb 21, 2023
2c0f2a7
feat: Support rule building against context kinds. (#147)
kinyoklion Feb 21, 2023
ee57bad
feat: Add user-type capability. (#148)
kinyoklion Feb 22, 2023
85f3ef7
Merge public to private for 2.0.0 release.
kinyoklion Feb 22, 2023
d6ba098
Merge branch 'main' of github.com:launchdarkly/erlang-server-sdk
louis-launchdarkly Mar 23, 2023
208a9c4
fix: Do not attempt to send events for an invalid context. (#149)
kinyoklion May 4, 2023
eef5d20
merge from public after release
May 4, 2023
c63d3cc
fix: Allow for evaluation from initialized redis store. (#150)
kinyoklion May 26, 2023
67e99c4
merge from public after release
May 26, 2023
3dd1a39
fix: Add boolean typing to context type. (#151)
kinyoklion May 30, 2023
8590f02
merge from public after release
May 30, 2023
1831757
fix: Remove debugging message. (#152)
kinyoklion Jun 5, 2023
b223766
merge from public after release
Jun 5, 2023
343477e
Updates feature flag number
ember-stevens Jun 6, 2023
e1cb3ee
[sc-205159] Update README with current number of flags served (#153)
ember-stevens Jun 8, 2023
7e27fba
build(deps): Upgrade yamerl to 0.10.0. (#154)
kinyoklion Jun 12, 2023
807fb9d
merge from public after release
Jun 12, 2023
e427df9
Add file CODEOWNERS
ld-repository-standards[bot] Jun 26, 2023
2b8558a
Add file CODEOWNERS (#155)
kparkinson-ld Jun 26, 2023
0161514
feat: Update to gun 2.x.
kinyoklion Jul 18, 2023
643cdb5
Change http options parsing. Remove extended validation test because …
kinyoklion Jul 18, 2023
909ca47
Fix unit tests for gun update.
kinyoklion Jul 18, 2023
610c923
Use published version.
kinyoklion Sep 7, 2023
beede66
Merge branch 'main' into rlamb/upgrade-to-shotgun-stable
kinyoklion Sep 7, 2023
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
2 changes: 2 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Repository Maintainers
* @launchdarkly/team-sdk
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{erl_opts, [debug_info]}.
{deps, [
{shotgun, "0.5.3"},
{shotgun, "1.0.1"},
{jsx, "3.1.0"},
{verl, "1.0.1"},
{lru, "2.4.0"},
Expand Down
2 changes: 1 addition & 1 deletion src/ldclient_http_options.erl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ gun_parse_http_options(HttpOptions, GunOptions) ->
gun_parse_tls_options(#{tls_options := undefined}, GunOptions) -> GunOptions;
gun_parse_tls_options(#{tls_options := TlsOptions}, GunOptions) ->
GunOptions#{
transport_opts => TlsOptions
tls_opts => TlsOptions
}.

-spec gun_append_custom_headers(Headers :: map(), ConfigOptions :: ldclient_config:http_options()) -> map().
Expand Down
1 change: 0 additions & 1 deletion test-tls/ldclient_tls_options_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ check_secure_default_httpc_valid(_) ->
{ok, _} = httpc:request(get, {"https://rsa2048.badssl.com/", []}, Options, []),
{ok, _} = httpc:request(get, {"https://ecc256.badssl.com/", []}, Options, []),
{ok, _} = httpc:request(get, {"https://ecc384.badssl.com/", []}, Options, []),
{ok, _} = httpc:request(get, {"https://extended-validation.badssl.com/", []}, Options, []),
Copy link
Member Author

Choose a reason for hiding this comment

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

This part of badssl.com is broken.

{ok, _} = httpc:request(get, {"https://mozilla-modern.badssl.com/", []}, Options, []).

check_secure_default_httpc_invalid(_) ->
Expand Down
2 changes: 1 addition & 1 deletion test/ldclient_http_options_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ gun_parse_http_options_with_tls_options(_) ->
protocols := [http],
retry := 0,
connect_timeout := 2000,
transport_opts := [{verify, verify_peer}]
tls_opts := [{verify, verify_peer}]
} = ldclient_http_options:gun_parse_http_options(maps:get(http_options, Settings, undefined)).

gun_append_custom_headers(_) ->
Expand Down