Skip to content

Grouped, normalized ordering with externals#3

Open
jorenverspeurt wants to merge 8 commits intoxaop:masterfrom
jorenverspeurt:master
Open

Grouped, normalized ordering with externals#3
jorenverspeurt wants to merge 8 commits intoxaop:masterfrom
jorenverspeurt:master

Conversation

@jorenverspeurt
Copy link

This pull request includes changes made by Joeri as part of his pull request and thus makes that PR obsolete. That, for reference, fixed a bug that could cause accounting problems and did some refactoring.
This set of commits adds a matching algorithm that matches what the user typed after "pizza me" to a pizza in the Pazza menu. It is still possible to order special pizzas (without an ingredient, for example) by typing "pizza me special" and then the entire rest of that message is taken to be a pizza name. The pizzas are shown in a grouped way, for example:
rochus: 3
4formaggi: 1
bruschetta without rucola: 1
It is also possible to order for externals by typing "hubby pizza for ". This works the same as with regular ordering (including "special") but it adds an entry where the "orderer" of a pizza is " for ", so for example if I order a pizza for Jean-Ralphio that would show up as "joren for Jean-Ralphio" in the list. If a user adds a pizza for an external, then that user is the only user that can cancel that order.

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.

2 participants