-
Notifications
You must be signed in to change notification settings - Fork 7
feat(sync): RN-1545: Fix bugs #6492
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 all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
4cb810e
fix bugs
chris-bes 486c294
fixed
chris-bes 7b161c0
fix
chris-bes 2fa2bc4
fix
chris-bes f233006
fix more
chris-bes bdab5cf
fix yarn.lock
chris-bes c2fa961
fixed
chris-bes 1f01d5f
fixed type
chris-bes 4558f04
fixed test
chris-bes 22cb462
fix test
chris-bes fb13d03
fixed undefined import
chris-bes d862469
fix mocked `/getUesr` response
jaskfla ad87c49
fixed test
chris-bes 8cbd16e
Merge branch 'rn-1545-fix-bugs' of https://github.com/beyondessential…
chris-bes 66358a4
fixed test
chris-bes 450230a
pass models into assertCanSubmit and assertCanImport of SurveyResponse
chris-bes 69fb2f9
Merge branch 'rn-1545-entity-performance' into rn-1545-fix-bugs
chris-bes 3b82aea
removed unused
chris-bes a3c4ebf
Merge branch 'rn-1545-remove-user-id' into rn-1545-fix-bugs
chris-bes 48c5859
Merge branch 'rn-1545-remove-user-id' into rn-1545-fix-bugs
chris-bes 59f92b4
fixed missing import
chris-bes 8971226
fix permission test
chris-bes 34875ca
fixed undefined
chris-bes c3cf790
Merge branch 'rn-1545-allow-switching-project' into rn-1545-fix-bugs
chris-bes 872a75e
removed performance
chris-bes 6eac371
Merge branch 'rn-1545-allow-switching-project' into rn-1545-fix-bugs
chris-bes 46f4730
fixed more
chris-bes 503ed8e
fix more bugs
chris-bes 85b4bb3
Merge branch 'rn-1545-allow-switching-project' into rn-1545-fix-bugs
chris-bes 2615578
fixed test
chris-bes 806fd1c
Merge remote-tracking branch 'origin/rn-1545-allow-switching-project'…
jaskfla 73159a3
Merge remote-tracking branch 'origin/rn-1545-allow-switching-project'…
jaskfla 9d83e78
dedupe import
jaskfla 2f714d9
dedupe another import
jaskfla a3b392f
Merge remote-tracking branch 'origin/rn-1545-allow-switching-project'…
jaskfla c7dc6af
Merge branch 'rn-1545-allow-switching-project' into rn-1545-fix-bugs
jaskfla 1f6763a
Merge branch 'rn-1545-allow-switching-project' into rn-1545-fix-bugs
jaskfla 50c8e2c
Merge branch 'rn-1545-allow-switching-project' into rn-1545-fix-bugs
jaskfla 8648fbf
Merge branch 'rn-1545-allow-switching-project' into rn-1545-fix-bugs
jaskfla 3aa3cd0
Merge branch 'rn-1545-allow-switching-project' into rn-1545-fix-bugs
jaskfla d8601d4
Merge branch 'rn-1545-allow-switching-project' into rn-1545-fix-bugs
jaskfla e9c040f
Merge branch 'rn-1545-allow-switching-project' into rn-1545-fix-bugs
jaskfla 9f48e0d
Merge branch 'rn-1545-allow-switching-project' into rn-1545-fix-bugs
jaskfla 42f8597
Merge branch 'rn-1545-allow-switching-project' into rn-1545-fix-bugs
jaskfla 78aeadb
Merge branch 'rn-1545-allow-switching-project' into rn-1545-fix-bugs
jaskfla a7ac4c9
Merge branch 'rn-1545-allow-switching-project' into rn-1545-fix-bugs
jaskfla 759be74
addressed reviews
chris-bes 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
Some comments aren't visible on the classic Files Changed page.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,7 +40,7 @@ describe('Login', () => { | |
| renderPage('/login'); | ||
| expect(await screen.findByRole('heading', { level: 2 })).toHaveTextContent('Log in'); | ||
| await doLogin(); | ||
| server.use(mockUserRequest({ email: '[email protected]' })); | ||
| server.use(mockUserRequest({ email: '[email protected]', accessPolicy: [] })); | ||
|
|
||
| expect(await screen.findByRole('heading', { level: 1 })).toHaveTextContent(/Select project/i); | ||
| }); | ||
|
|
@@ -49,7 +49,7 @@ describe('Login', () => { | |
| renderPage('/login'); | ||
| expect(await screen.findByRole('heading', { level: 2 })).toHaveTextContent('Log in'); | ||
|
|
||
| server.use(mockUserRequest({ email: '[email protected]', projectId: 'foo' })); | ||
| server.use(mockUserRequest({ email: '[email protected]', projectId: 'foo', accessPolicy: [] })); | ||
| await doLogin(); | ||
|
|
||
| await screen.findByText(/Select survey/i); | ||
|
|
@@ -59,7 +59,7 @@ describe('Login', () => { | |
| renderPage('/survey'); | ||
| expect(await screen.findByRole('heading', { level: 2 })).toHaveTextContent('Log in'); | ||
|
|
||
| server.use(mockUserRequest({ email: '[email protected]', projectId: 'foo' })); | ||
| server.use(mockUserRequest({ email: '[email protected]', projectId: 'foo', accessPolicy: [] })); | ||
| await doLogin(); | ||
|
|
||
| expect(await screen.findByRole('heading', { level: 1 })).toHaveTextContent(/Select survey/i); | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -9,7 +9,14 @@ import { handlers } from '../mocks/handlers'; | |
| const server = setupServer( | ||
| ...handlers, | ||
| rest.get('*/v1/getUser', (_, res, ctx) => { | ||
| return res(ctx.status(200), ctx.json({ name: 'John Smith', email: '[email protected]' })); | ||
| return res( | ||
| ctx.status(200), | ||
| ctx.json({ | ||
| name: 'John Smith', | ||
| email: '[email protected]', | ||
| id: '0'.repeat(24), | ||
| }), | ||
| ); | ||
| }), | ||
| rest.get('*/v1/*', (_, res, ctx) => { | ||
| return res(ctx.status(200), ctx.json([])); | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -9,7 +9,10 @@ import { handlers } from '../../mocks/handlers'; | |
| const server = setupServer( | ||
| ...handlers, | ||
| rest.get('*/v1/getUser', (_, res, ctx) => { | ||
| return res(ctx.status(200), ctx.json({ name: 'John Smith', email: '[email protected]' })); | ||
| return res( | ||
| ctx.status(200), | ||
| ctx.json({ name: 'John Smith', email: '[email protected]', id: '0'.repeat(24) }), | ||
| ); | ||
| }), | ||
| ); | ||
|
|
||
|
|
||
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
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Method Naming Violates JavaScript Conventions
The getter method name
ExcludedFieldsFromSyncuses PascalCase instead of camelCase, which violates JavaScript naming conventions. Based on the PR discussion, this should beexcludedFieldsFromSync.