-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #818 from splitio/SDKS-8407_unify_endpoint
Large segments refactors: remove configs and unify endpoint
- Loading branch information
Showing
79 changed files
with
526 additions
and
854 deletions.
There are no files selected for viewing
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ import { SplitFactory } from '../../'; | |
import { settingsFactory } from '../../settings'; | ||
import splitChangesMock1 from '../mocks/splitchanges.since.-1.json'; | ||
import splitChangesMock2 from '../mocks/splitchanges.since.1457552620999.json'; | ||
import mySegmentsFacundo from '../mocks/mysegments[email protected]'; | ||
import membershipsFacundo from '../mocks/memberships[email protected]'; | ||
import { DEBUG } from '@splitsoftware/splitio-commons/src/utils/constants'; | ||
import { url } from '../testUtils'; | ||
|
||
|
@@ -23,7 +23,7 @@ export default function (fetchMock, assert) { | |
// Mocking this specific route to make sure we only get the items we want to test from the handlers. | ||
fetchMock.getOnce(url(settings, '/splitChanges?s=1.2&since=-1'), { status: 200, body: splitChangesMock1 }); | ||
fetchMock.get(url(settings, '/splitChanges?s=1.2&since=1457552620999'), { status: 200, body: splitChangesMock2 }); | ||
fetchMock.get(url(settings, '/mySegments/facundo%40split.io'), { status: 200, body: mySegmentsFacundo }); | ||
fetchMock.get(url(settings, '/memberships/facundo%40split.io'), { status: 200, body: membershipsFacundo }); | ||
|
||
const splitio = SplitFactory({ | ||
core: { | ||
|
This file contains 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ import { SplitFactory } from '../..'; | |
import { settingsFactory } from '../../settings/node'; | ||
import splitChangesMock1 from '../mocks/splitchanges.since.-1.json'; | ||
import splitChangesMock2 from '../mocks/splitchanges.since.1457552620999.json'; | ||
import mySegmentsFacundo from '../mocks/mysegments[email protected]'; | ||
import membershipsFacundo from '../mocks/memberships[email protected]'; | ||
import { NONE } from '@splitsoftware/splitio-commons/src/utils/constants'; | ||
import { truncateTimeFrame } from '@splitsoftware/splitio-commons/src/utils/time'; | ||
import { url } from '../testUtils'; | ||
|
@@ -43,8 +43,8 @@ export default async function (fetchMock, assert) { | |
// Mocking this specific route to make sure we only get the items we want to test from the handlers. | ||
fetchMock.getOnce(url(settings, '/splitChanges?s=1.2&since=-1'), { status: 200, body: splitChangesMock1 }); | ||
fetchMock.get(url(settings, '/splitChanges?s=1.2&since=1457552620999'), { status: 200, body: splitChangesMock2 }); | ||
fetchMock.get(url(settings, '/mySegments/facundo%40split.io'), { status: 200, body: mySegmentsFacundo }); | ||
fetchMock.get(url(settings, '/mySegments/emma%40split.io'), { status: 200, body: mySegmentsFacundo }); | ||
fetchMock.get(url(settings, '/memberships/facundo%40split.io'), { status: 200, body: membershipsFacundo }); | ||
fetchMock.get(url(settings, '/memberships/emma%40split.io'), { status: 200, body: membershipsFacundo }); | ||
|
||
const splitio = SplitFactory(config); | ||
const client = splitio.client(); | ||
|
This file contains 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ import { SplitFactory } from '../../'; | |
import { settingsFactory } from '../../settings'; | ||
import splitChangesMock1 from '../mocks/splitchanges.since.-1.json'; | ||
import splitChangesMock2 from '../mocks/splitchanges.since.1457552620999.json'; | ||
import mySegmentsFacundo from '../mocks/mysegments[email protected]'; | ||
import membershipsFacundo from '../mocks/memberships[email protected]'; | ||
import { OPTIMIZED } from '@splitsoftware/splitio-commons/src/utils/constants'; | ||
import { truncateTimeFrame } from '@splitsoftware/splitio-commons/src/utils/time'; | ||
import { url } from '../testUtils'; | ||
|
@@ -26,7 +26,7 @@ export default function (fetchMock, assert) { | |
// Mocking this specific route to make sure we only get the items we want to test from the handlers. | ||
fetchMock.getOnce(url(settings, '/splitChanges?s=1.2&since=-1'), { status: 200, body: splitChangesMock1 }); | ||
fetchMock.get(url(settings, '/splitChanges?s=1.2&since=1457552620999'), { status: 200, body: splitChangesMock2 }); | ||
fetchMock.get(url(settings, '/mySegments/facundo%40split.io'), { status: 200, body: mySegmentsFacundo }); | ||
fetchMock.get(url(settings, '/memberships/facundo%40split.io'), { status: 200, body: membershipsFacundo }); | ||
|
||
const splitio = SplitFactory({ | ||
core: { | ||
|
This file contains 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
Oops, something went wrong.