-
Notifications
You must be signed in to change notification settings - Fork 37
[FSSDK-9984] fix: initialization and setUser errors #255
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
mikechu-optimizely
merged 37 commits into
master
from
mike/FSSDK-9984/fix-initialization-error
Apr 9, 2024
Merged
Changes from 29 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
566daaf
fix: remove successful fetch requirement for onReady
77c4f56
Revert "fix: remove successful fetch requirement for onReady"
0f190d6
fix: error with OnReadyResult being undefined
2fc9703
fix: setUser should use VUID if possible
6da3ae3
Merge branch 'master' into mike/FSSDK-9984/fix-initialization-error
682e8a7
revert: timeout of undefined
bbea7ca
docs: update copyright year
21348c1
revert: Provider.tsx copyright since no code change
cb15720
build: bump JS SDK version
fd5cfd1
refactor: `res` should never be `undefined`
ae88a38
docs: add clarifying comment
1c1c501
revert: retrieval & use of current user context
92f09fb
wip: partial solution; needs collab
6bc5c45
refactor: setUser logic updated
8e9c122
revert: move setUser back to Provider constructor
7d5adc6
style: remove commented code
39b45c0
fix: fetchQualifiedSegments under SSR/sync scenario
b541ff4
ci: VS Code jest settings to run via extension
41c51fa
test: use NotReadyReason enum
8164582
test: use NotReadyReason & add missing getUserId in mock user context
286838f
fix: add onInitStateChange for default ready result
425de33
fix: logic in Promise.all user & client readiness
81be217
refactor: isReady() to isReactClientReady()
2d6dd19
test: fixes for uses of getUserId() in setUser()
e8116eb
wip: fixing tests
12a5b78
wip: fixed more tests
08ef8de
revert: refactor of isReactClientReady()
bdb469c
docs: Update copyrights
8967c15
fix: later setUser not getting new usercontext (manual testing)
01e72c7
fix: PR review changes
569cf66
test: add initial OptimizelyProvider tests
b0503cf
fix: PR review changes
f5b9a14
docs: add clarification inline comments
d349a05
build: bump underlying JS SDK version to 5.3.0
24f0ae8
fix: add missing getProjectConfig() from JS SDK
0a9951c
refactor: omit getProjectConfig instead of implementing it
ac5075c
style: remove unused import
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"name": "vscode-jest-tests.v2.react-sdk", | ||
"request": "launch", | ||
"args": [ | ||
"--runInBand", | ||
"--watchAll=false", | ||
"--testNamePattern", | ||
"${jest.testNamePattern}", | ||
"--runTestsByPath", | ||
"${jest.testFile}" | ||
], | ||
"cwd": "${workspaceFolder}", | ||
"console": "integratedTerminal", | ||
"internalConsoleOptions": "neverOpen", | ||
"program": "${workspaceFolder}/node_modules/.bin/jest", | ||
"windows": { | ||
"program": "${workspaceFolder}/node_modules/jest/bin/jest" | ||
} | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"jest.autoRun": { | ||
"onStartup": ["all-tests"] | ||
} | ||
"jest.runMode": "on-demand", | ||
"jest.jestCommandLine": "~/.nvm/nvm-exec yarn test" | ||
} |
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
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
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.