-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(server): Allow negative rating (for rejected images) #15699
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will negative ratings already be extracted? Are they stored correctly? The frontend also needs to handle them
afda14d
to
4530e1b
Compare
I missed a few things. Pushed it now to include all parts for extraction and storing. I tested this locally and it worked for me. Sorry for pushing the barebone commit yesterday.
I would add this as a separate part if possible. I don't even think these should necessarily be reflected in the ratings/star UI. Since it doesn't make much sense to show a negative star rating - maybe they should be flagged as isHidden instead? For now it would just be good to have the metadata in the file be represented in the database so users (me) can build processes around that (in my case I'll mark -1 as hidden and 5 as a favorite via the REST API). |
4530e1b
to
6c89c0a
Compare
@chkuendig As long as you have checked that a rating of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for also writing tests!
I tested web and iOS which handled this just fine (showing as no rating). Don't have Android available to test unfortunately. |
Resolves (partially) #14454. ( edit: also, see relevant discord discussion)
XMP/Exif Metadata allows for negative ratings, with -1 meaning "rejected". See e.g. https://exiftool.org/TagNames/XMP.html#xmp: