akerr501 / akerr501/CS361-Ethical-Eating-Project

Public meals aren't immediately searchable

Offen
#47 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
0
Forks
2
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

When a user adds a meal to Ethical Eating they have the choice of making it a public meal, all public meals should be searchable or should show up in the browse page, but currently when a user adds a meal and sets it to public, it isn't included in the results. This can be replicated by signing in to a user account, adding a meal, selecting to make the meal public, and then searching for the meal or browsing for the meal. The issue is that the meal is being properly stored in the meal json file, but the server uses a variable copy of the json file to get search and browse results. The variable needs to be refreshed after adding a meal or each time the search/filter routes are called. If a user adds a meal and the server is reset, the added meal will be included in the search/filter results properly since the meal variable will have been reloaded when the server was restarted.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.