MichielProost / Perfect-Plate

This Android application allows cheffs around the world to create, review and discover new recipes. Users can gain experience and level up in this app by completing challenges like creating a certain amount of recipes.
1 stars 2 forks source link

Sort by Timestamp or Rating in SearchRecipes (and Feed?) #15

Open MichielProost opened 3 years ago

MichielProost commented 3 years ago

The method searchRecipes in RecipeService allows the user to store recipes by their timestamp or rating. Yet, I think we forget to implement this in the search UI.

I don't know if we should implement this for feed? It would be nice to, for example, view the newest recipes (sort by timestamp).

Nuytemans-Dieter commented 3 years ago

I left that out intentionally. If needed, it can perhaps be considered as a v2 feature?

MichielProost commented 3 years ago

Why did you leave it out? Stop me if I'm wrong, but I think this was included in the specifications. Perhaps miscommunication. Since our exams are getting closer, I'm going to let you decide whether to include this in v1. If not, I think we should include this in one of the future updates.

Ps. We can sort recipes based on weightedRating, rating and timestamp. We don't use rating at the moment. I will keep it in for future updates (although it causes us to have a lot of indexes)

Nuytemans-Dieter commented 3 years ago

Why did you leave it out? Stop me if I'm wrong, but I think this was included in the specifications. Perhaps miscommunication. Since our exams are getting closer, I'm going to let you decide whether to include this in v1. If not, I think we should include this in one of the future updates.

Ps. We can sort recipes based on weightedRating, rating and timestamp. We don't use rating at the moment. I will keep it in for future updates (although it causes us to have a lot of indexes)

I feel like it is only a small addition for the cost of another field in the UI. Any added field results in more clutter and a harder to understand form. This seems like a better choice for a later release, if decided to implement it.

MichielProost commented 3 years ago

Let's discuss this issue a bit more.. Down below is a list of questions:

My answer to the second and third question:

Nuytemans-Dieter commented 3 years ago

The only problem I see is the search field (search screen). It is becoming too bulky in my opinion so we'll have to figure something out there.

MichielProost commented 3 years ago

The search field is definitely the most complicated to keep clean. I'm right here if you need a listening ear!