-
Notifications
You must be signed in to change notification settings - Fork 85
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
Deleting general channel does't work consistently #1523
Comments
Pull request(draft) with a detailed list of subtasks: |
@Kacper-RF some questions:
|
@holmesworcester channel-create-validate.mp4
Also short update, what has been achieved today: And I started working on fixing RTL tests, so tomorrow i will be focus on these and later switch to mobile local app testing and fixing detox tests. After I will complete whole fixing process and app will be working without issues on desktop and mobile i will start process of changing |
Okay. So it will still be possible to create channels with duplicate names, because two clients can make changes that the other isn't aware of. What will happen in this case? We should have tests to make sure it works as expected. |
It's not clear for me what was the previous behavior of this, probably backend would throw exception, we never tested that and it never happened. this is super super edge case very very unlikely to happen. atm it will probably not throw exception but it will create two separate databases for the same channel and messages from both of those will be aggregated into one channel on frontend. We have that case in mind ofc, but this is way less important and complicated than adding backward compatibility for channels after refactoring address to id |
We tested the previous behavior, as I remember. What would happen is that the newly created channel would simply be the same channel. It was weird but acceptable. Let's write a test for this case to make sure nothing bad happens and it behaves as we expect. For example:
It's okay if there are two channels with the same name. Or if both channels get merged into one. As long as everything behaves well, e.g. the three above criteria are met. |
On desktop it's working ok, but on mobile we are still having issues. They will be handled in separate issue: #1550 |
I'm still seeing multiple general channels on mobile in 1.3.0 |
1.3.1 - fixed |
Desktop: Version: 1.2.1-alpha.3
Mobile: [email protected]
System: ios and android
I didn't encounter it on desktop but @vinkabuki did. It also happen to me only for general but potentially it may happen for any channel.
What happens:
It doesn't happen every time as after several attempts I've deleted messages from general on mobile.
The text was updated successfully, but these errors were encountered: