You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
I'm not sure how I'd expose it in the UI, but it'd be nice if there were some way to query for songs by exact rating instead of just by minimum rating or unrated. Maximum rating might also be useful for finding potentially-misrated songs.
Behind the scenes, a minimum rating of 5 is already mapped to Rating = 5 and unrated is mapped to Rating = 0; it's just 1-4 that are inaccessible.
The server side of this is easy; I can just add a rating parameter to the /query endpoint and update the query package to add the appropriate equality filter.
If I want to add maxRating, that hopefully also wouldn't require a schema change:
0 is Rating = 0
1-3 are RatingAtLeast2 = false, RatingAtLeast3 = false, and RatingAtLeast4 = false
I'm not sure how I'd expose it in the UI, but it'd be nice if there were some way to query for songs by exact rating instead of just by minimum rating or unrated. Maximum rating might also be useful for finding potentially-misrated songs.
Behind the scenes, a minimum rating of 5 is already mapped to
Rating = 5
and unrated is mapped toRating = 0
; it's just 1-4 that are inaccessible.The server side of this is easy; I can just add a
rating
parameter to the/query
endpoint and update thequery
package to add the appropriate equality filter.If I want to add
maxRating
, that hopefully also wouldn't require a schema change:Rating = 0
RatingAtLeast2 = false
,RatingAtLeast3 = false
, andRatingAtLeast4 = false
Rating != 5
I'm not sure that I can use the
!=
operator; https://cloud.google.com/datastore/docs/concepts/queries#not-equal says that it's only available in Firestore for Datastore mode (but I think I got migrated).The text was updated successfully, but these errors were encountered: