You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a bug in the handling of deletions while doing some testing that I think is causing download failures.
Steps to reproduce:
Connect to network with slow/spotty internet. Or, simulate spotty internet access using Chrome DevTools's Network tab.
Attempt to disclose a round with an open source document. Press add round. Notice that sometimes the round doesn't immediately go through.
Press add round again before the first addition succeeds and redirects you to the team page (as a confused user might do thinking that the first addition failed).
After you're redirected to the team page with both attempts having gone through, notice that the same round is disclosed twice.
Delete one of the two disclosures to avoid duplication of the round on the team page.
Attempt to download the open source doc on the remaining disclosure. Notice that it errors out.
Potential solutions:
Disable the add round button immediately after it's clicked (and display a loading icon), preventing accidental duplication of rounds.
Check to make sure there's no round with identical round details server-side when a new disclosure is posted. If there is, fail the disclosure.
Generate a unique ID for each round's open source doc so deleting one doesn't cause the other one to also get deleted.
If you want me to PR one of these solutions, please let me know.
The text was updated successfully, but these errors were encountered:
I found a bug in the handling of deletions while doing some testing that I think is causing download failures.
Steps to reproduce:
Potential solutions:
If you want me to PR one of these solutions, please let me know.
The text was updated successfully, but these errors were encountered: