rubyforgood / rubyforgood/Flaredown

Checkins: "x" to remove selection on current date prevents information from saving and greys out buttons

Open
#509 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Hacktoberfest type:bug
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:
  1. 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]

  2. 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]

  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.