Skip to content
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

[kata draft progress disappears silently upon saving] #3310

Open
scoraig52 opened this issue Nov 30, 2024 · 0 comments
Open

[kata draft progress disappears silently upon saving] #3310

scoraig52 opened this issue Nov 30, 2024 · 0 comments

Comments

@scoraig52
Copy link

Describe the bug
When creating a new kata in "Draft" status, pressing "Save" with empty "Initial Solution" and "Complete Solution" fields results in the loss of all progress in the "Example Test Cases" section. This occurs without any warning to the user, potentially causing significant data loss. While this might be intentional, it seems counterintuitive and could be considered a bug, as there's no apparent reason to discard progress on a draft kata.

To Reproduce

  1. Initiate the creation of a new kata
  2. Add a brief description in the "Description" field
  3. Begin inputting test cases in the "Example Test Cases" section
  4. Ensure "Initial Solution" and "Complete Solution" remain empty
  5. Verify the kata status is "Draft"
  6. Click "Save"

Actual behavior
Upon saving, the kata is stored with an entirely empty "Example Test Cases" section, resulting in complete loss of progress.

Expected behavior
Ideally, all progress across all tabs should be retained, given the kata's "Draft" status. Alternatively, the user should be prompted with a warning about potential data loss and the reason behind it, with an option to cancel the "Save" operation.

Browser
Chrome 109.0.5414.168 (64-bit)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant