CATcher-org / CATcher-org/CATcher

Saving the header and description edits in quick succession causes changes to revert

Open
#1,028 4 comments 0 reactions 0 assignees View on GitHub
category.Bug
Dominant language
TypeScript
Stars
92
Forks
85
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Saving the edit for the bug report description, followed by the edit for the bug report header and type, results in the description edit to revert back to the original unedited version.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to any bug report
2. Click on 'Edit' in the top right corner, above the severity level.
3. Click on 'Edit' in the top right corner of the description box.
4. Make changes to the bug report header and bug report description.
5. Click on 'Save' in the bottom right corner of the description box.
6. Quickly click on 'Save' in the top right corner of the bug report, above the severity level.
7. The edited result of the bug report header is reflected, but the changes to the bug report description revert back to the original unedited version.

**Expected behavior**
I would expect both the header and the bug report description to be saved with their edited versions.

**Desktop:**

- OS: [Windows 11]
- Browser [Google Chrome]
- Version [107.0.5304.87 (Official Build) (64-bit)]

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue in the bug report editor using the listed sequence, saving the description and then quickly saving the header and type. Trace the two save handlers and their shared state, then verify that both edits remain after the second save in Chrome.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.