Conversation
|
Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot. |
2 similar comments
|
Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot. |
|
Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "ui change" label to the PR for updating the snapshot. |
|
One more interesting topic to be brought up, looks like we are adding this to avoid flaky tests(which is working pretty well), and now we might need some other way to work this out |
We can't, but at least it leaves you the flexibility to do this, and our meeting composite needs this gap not to fetch the data when chat adapter is created |
* Fix race condition of "not in chat" * Add comments about fetchInitialData
What
https://skype.visualstudio.com/SPOOL/_queries/query/8f724fc4-2b1b-4030-9471-9a64e1c8a7d0/
We are pulling the initial data when we are creating the chat adapter, which should not be part of adapter(adapter itself doesn't control when to call functions, someone external should do it)
remove the fetchInitialData() function call in creation of chat adapter, and we will highly depend on ChatScreen or external caller to do this (what we are currently doing already)
The above error is happening because:
This scenario means we should not make any request when we are creating adapter(we should not assume we have all the permission), we should depend on external caller to make the final request
How Tested
Process & policy checklist
Is this a breaking change?