ironjan / MensaUPB

Oldest (and probably: most unmaintained) mensa app for the university of Paderborn.
http://ironjan.de/category/all/projects/mensaupb/
Apache License 2.0
4 stars 2 forks source link

Split badges and Allergens into flags #64

Closed ironjan closed 9 years ago

ironjan commented 9 years ago

For easier filtering of menus, the badges and allergens should be moved from a single collection field to either another table or single boolean fields. Best method has to be investigated.

ironjan commented 9 years ago

Idea: Save allergens as a bitmask, "1001..." means that the menu contains "A1,A4". Selecting displayed menus can then be done via bit mask and wildcards, i.e. "I don't want to eat A4" is encoded as "<> _1...".

ironjan commented 9 years ago

AllergenArrays are now persisted as a string following the following patterns: