Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added new grpc call for getting mensa ratings * added new grpc call for managing cafeteria ratings * added tag rating to dishreply * implemented feedback, added stubs to get meal/cafeteria Tags * added tags to individual ratings. * removed unnecessary part in get request * implemented endpoints for available tags * added inserting new ratings, added cronjob to update mensa db, prepared getmensen endpoint * added dish rating + dish downloader * renmaing to meals/cafeteria, added test client, error detection in mealNameDownload.go * added cronjob to compute average ratings * added structure to query an arbitrary amount of meal ratings * store tag options in db * verify tags in new ratings and parse to ids * insert each cafeteria/meal tag only once for a rating * stored name tags in database * added meal name tags including mapping, Fixed type error in database * update tag tables without deleting old values * initialising tag tables extracted to reduce code duplicates * added updating functionality for meal name tags * extended structure for automatically adding mealnameratings * split new ratings in multiple smaller methods * extracted storeRating tags to one method, renamed models to a uniform scheme * replaced cafeterianames, tagnames and mealnames by ids in database * replaced cafeterianames, tagnames implemented get cafeteria(meal) name/id * fixed input sanitization * fixed update mechanism for downloading cafeterias * fixed update fixed quries for mealnames * joining tables for tag average intermediate progress * change table names dish-> meal; mensa->cafeteria * successfully read foreign keys * compute average for cafeteria Rating tags * added structure to store cafeteria tag rating results * adapted remianing average computation to foreign keys * added computeAverageForMealsInCafeteriasTags * added improved input sanitization for new ratings * fixed updating excluded/included name tags * added mealname tag average computation * changed to meal updating & meal querying * fixed name tags table, fixed querying meal ids * extracted cafeteria RPC logic into an individual file * querying for tagratings limited to meal/cafeteria * updated to the new .proto file version * added getCafeterias Endpoint * fixed bugs from new proto file conversion * first iteration to query cafeteria Ratings * debugged cafeteria rating query, only tagnames missing * imporved error messages for invalid tags, fixed cafeteria rating join query * debugged basic structure for meal ratings * added precomputation for nametag mapping * pulled latest version from the main branch * added tag ratings to each rating in a query * added name tag query, simplified tag queries in general * fixed creating name tags * added timestamps and correct sorting for queries * added querying in time intervals * move the tag initializer logic to an individual file * correct intervals for cronjobs * computed standardeviation for result values, fixed crontab initializer query * stored std in db, reduced number of queries for cafeteriaID, added comments * store images as paths in db * query and store images as jpeg * fixed problem with file name collisions * split client in local and global version * change proto file, added limit input sanitation * adapted cafeteria Service to the new proto file version * added first version of migration, improved db naming, rating -> points * adapted files to new table names * fixed further migration/renaming errors * used actual foreign keys in model, fixed naming conflicts * meal -> dish for consistency with eat-api * changed use of limit parameter * added feedback for db initializer, moved models in combined package * added missing error checks for all queries * Apply suggestions from code review Co-authored-by: Joscha Henningsen <[email protected]> * removed log-fatals, improved warnings * changed visibility of types to unexported * added gorm annotations * batch create & decoder * fixed resizing and naming of images * pulled main branch * adapted to new rpc messages * fixed local client & migration issue * debugged/ simplified get Tags/mensen request * simplified average rating computation, simplified store tags * debugged inserting/averageComputation * debugged querying ratings * fixed tag query, added logrus to client * linted new files * added missing error "handling" in client * added get dishes of the day rpc stub * added endpoitn getDishTagNames * updated dependencies, fixed get dishes * fixed bug in image naming, changed image storage to same path as news * annotated local client * improved quality converter to match 0.5mb as max size * fixed linting errors (switch and comment name) Co-authored-by: Joscha Henningsen <[email protected]>
- Loading branch information