-
Notifications
You must be signed in to change notification settings - Fork 23
Added old spec support in splitfetcher #549
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
3ad6db9
Added old spec support in splitfetcher
chillaq 57777ab
Polish
chillaq 652ea96
polish
chillaq 56082ef
polish
chillaq 682ba45
Update client/src/main/java/io/split/client/HttpSplitChangeFetcher.java
chillaq fabf787
Update client/src/main/java/io/split/client/HttpSplitChangeFetcher.java
chillaq 0b14464
Update client/src/main/java/io/split/client/dtos/SplitChangesOldPaylo…
chillaq b86ac75
Update client/src/main/java/io/split/client/SplitClientConfig.java
chillaq 94ac3ed
removed spec_version global var
chillaq 9117c38
polish
chillaq 6e12ff2
Merge branch 'rbs-localhost' into rbs-oldspec-fetcher
chillaq 37a7f98
moved block
chillaq 6d5ccb2
fix tests
chillaq 06bf4b6
Merge branch 'rbs-oldspec-fetcher' of https://github.com/splitio/java…
chillaq 4a07bc6
fix build error
chillaq 8a6cdf1
Update client/src/main/java/io/split/client/HttpSplitChangeFetcher.java
chillaq 0669fa1
Update client/src/main/java/io/split/client/HttpSplitChangeFetcher.java
chillaq de79368
Update client/src/main/java/io/split/client/HttpSplitChangeFetcher.java
chillaq File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
client/src/main/java/io/split/client/dtos/SplitChangesOldPayloadDto.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| package io.split.client.dtos; | ||
|
|
||
| import com.google.gson.annotations.SerializedName; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| public class SplitChangesOldPayloadDto { | ||
| @SerializedName("since") | ||
| public long s; | ||
|
|
||
| @SerializedName("till") | ||
| public long t; | ||
|
|
||
| @SerializedName("splits") | ||
| public List<Split> d; | ||
|
|
||
| public SplitChange toSplitChange() { | ||
| SplitChange splitChange = new SplitChange(); | ||
| ChangeDto<Split> ff = new ChangeDto<>(); | ||
| ff.s = this.s; | ||
| ff.t = this.t; | ||
| ff.d = this.d; | ||
| ChangeDto<RuleBasedSegment> rbs = new ChangeDto<>(); | ||
| rbs.d = new ArrayList<>(); | ||
| rbs.t = -1; | ||
| rbs.s = -1; | ||
|
|
||
| splitChange.ff = ff; | ||
| splitChange.rbs = rbs; | ||
|
|
||
| return splitChange; | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.