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

Nutrition Tracker Feature #36

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open

Nutrition Tracker Feature #36

wants to merge 21 commits into from

Conversation

abdelhamidm
Copy link
Contributor

After more than 30 hours of work on this feature, I am still not able to get it to work within the team's internal deadline. The backend and frontend functionality of this feature has been implemented, but there are still some errors that require resolving:

  • The Material UI toggle switch does not maintain its state when the page is refreshed. This causes a DB Integrity Error because after the user clicks the switch for the first time, the recipe is added to the consumed recipes DB table. However, when the page is refreshed, the switch reverts back to its initial state (un checked). When the user then presses the switch again, the application tries to add the recipe to the table, but it was previously added, which causes an Integrity Error.

  • When the "delete consumed recipe" endpoint is called, an error occurs, and the recipe is not removed from the table. The cause of this error is still unknown at this time.

  • The consumed recipes that are already stored in the consumed recipes DB table are not displayed in the Nutrition Tracker page. The Javascript frontend sees the returned response as empty, and displays the message "No recipes were consumed". The cause of this error is still unknown at this time.

Mohamed Abdelhamid added 21 commits November 11, 2020 10:25
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

Successfully merging this pull request may close these issues.

None yet

1 participant