-
Notifications
You must be signed in to change notification settings - Fork 7
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
New Feature: Cafeteria Ratings #50
Comments
I am going to work on this issue in the following weeks. |
Hey Baris, |
@tobiasjungmann We can discuss and split into smaller pieces. I am actually new in the repository and it is a good opportunity for me to discuss the issue with you. |
@barisconur I wrote you a message on Zulip. |
@tobiasjungmann is this issue resolved, given that #70 is merged? (can I close this?) |
I am going to close this as I think this is resolved and we just forgot to close it in #70. |
Problem
The existing eat-api does not provide any information about the quality of the cafeterias and the individual dishes. Therefore, I suggest a new functionality of the API here in the campus backend.
Suggested Feature ✨
As well-known from other websites, a rating on a scale (e.g. 4 out of 5) for the quality of the food should be possible. In addition to a simple "star" rating, it should also be possible to include a small (text) comment (e.g "It was too crowded at around 1PM!").
In order to create the frame for such a rating system, the existing API must be extended and in order to persistently store the ratings and use them when needed, the database must be extended.
Accordingly, two primary API calls need to be added:
To store the data for ratings, two new tables need to be inserted: One for canteen ratings, one for dish ratings:
The average rating is calculated separately for each refectory/dish and can be added to the eat-api as additional information, just like the allergies.
The following three topics are still unresolved and I will specify them in more detail in the near future:
I will expand this issue over time, clarify the open issues and then implement it. As a second step, I plan to integrate this assessment option into the Campus App (Android). Further ideas, improvements or criticism are always welcome! :-)
The text was updated successfully, but these errors were encountered: