-
-
Notifications
You must be signed in to change notification settings - Fork 384
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
feat: robotoff anonymous questions #7379
Conversation
b48741b
to
d3e8d01
Compare
@@ -47,7 +47,7 @@ | |||
<p>→ <a href="[% public_product_url %]">[% lang("product_page_on_the_public_database") %]</a></p> | |||
[% END %] | |||
|
|||
[% IF (user_id.defined) && (robotoff_url.defined) && (robotoff_url.length > 0) %] | |||
[% IF (robotoff_url.defined) && (robotoff_url.length > 0) %] |
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.
yes it's that easy, because robotoff takes care of computing device_id using url.
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.
so for a non logged in OFF website user, how is the device_id computed? is it a hash of the user ip address or something?
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.
yes it's the sha1 of user ip, see https://github.com/openfoodfacts/robotoff/blob/e46942f0055b54183ef5570b7c39215ed312309c/robotoff/app/api.py#L235
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
What
feat: Make it possible for anonymous users to see and answer robotoff questions
build: some changes to be compatible with a local robotoff instance
fixes: