rubyforgood / rubyforgood/Flaredown
Checkins: "x" to remove selection on current date prevents information from saving and greys out buttons
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 50
- Forks
- 21
- Avg merge
- 6d 12h
- Merged PRs (30d)
- 16
Description
How it works now
- When trying to remove a Condition, Symptom, or Treatment, clicking the "x" next to a selection on the current date prevents information from saving (the selection removal and toggling a selection on/off) and greys out the "Add a ____", "Back", and "Next" buttons
- This gives three console errors:
-
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://flaredown-api.herokuapp.com/api/trackings/955694. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). [Learn More]
-
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://flaredown-api.herokuapp.com/api/trackings/955694. (Reason: CORS request did not succeed). [Learn More]
-
The adapter operation was aborted
- Trying to remove a Condition, Symptom, or Treatment on a prior day does not cause the same errors
How it should work
Users should be able to remove a Condition, Symptom, or Treatment, with no issues.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing removal on the current date and inspect the request to /api/trackings/955694 alongside the reported CORS and aborted-operation errors; compare it with removal on a prior day. Done means current-date selections can be removed or toggled without errors, and the Add, Back, and Next buttons remain usable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rails
- Domain
- api, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100