Skip to content
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

Merged
merged 4 commits into from
Sep 23, 2022
Merged

Conversation

alexgarel
Copy link
Member

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: 

@alexgarel alexgarel requested a review from a team as a code owner September 21, 2022 10:18
@alexgarel alexgarel force-pushed the feat-robotoff-anonymous-questions branch from b48741b to d3e8d01 Compare September 21, 2022 10:20
@github-actions github-actions bot added 🐋 Docker https://docker-curriculum.com/ Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes. labels Sep 21, 2022
@@ -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) %]
Copy link
Member Author

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.

Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sonarcloud
Copy link

sonarcloud bot commented Sep 23, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@raphael0202 raphael0202 self-requested a review September 23, 2022 10:06
@alexgarel alexgarel merged commit 193ee6e into main Sep 23, 2022
@alexgarel alexgarel deleted the feat-robotoff-anonymous-questions branch September 23, 2022 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐋 Docker https://docker-curriculum.com/ Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants