Giter Site home page Giter Site logo

Comments (4)

teolemon avatar teolemon commented on July 26, 2024 1

I'd like to get feedback on the monday Product Opener call before we move on that one.
There are privacy implications, and there are functional implications (how we want to do it).

from smooth-app.

monsieurtanuki avatar monsieurtanuki commented on July 26, 2024

@teolemon Generally speaking, would that mean systematically setting the app user parameter each time we query the server?
I've just had a look at the code and it looks like we systematically add the user to product-read server queries, except for single product refreshes (which are the most common, e.g. the refresh after product change).
In product_refresh.dart:

      final ProductResultV3 result = await OpenFoodAPIClient.getProductV3(
        getBarcodeQueryConfiguration(
          barcode,
          language,
        ),
        uriHelper: ProductQuery.uriProductHelper,
        // just add this parameter, that already exists -> user: ProductQuery.getUser(),
      );

That wouldn't be a hidden option, that would just be "From now on Smoothie always sends you the user, do whatever you want on the server side with that additional info".

Would only take 5 minutes to PR.

from smooth-app.

teolemon avatar teolemon commented on July 26, 2024

I got feedback, it should be ok for all logged in users that have enabled the analytics collection

from smooth-app.

monsieurtanuki avatar monsieurtanuki commented on July 26, 2024

@teolemon Let me summarize the current status.
If the user is logged in, we ALWAYS send the user in our server queries (READ/WRITE) except in one case: single product refresh (that we use all the time) where no user is provided.

Obviously we need to add the user parameter to the last remaining case (single product refresh), in order to match the needs from OP.

On the other hand, if it is considered as "inappropriate tracking", we should NOT use the user param in any READ server query when the user specified that no analytics should be performed. Assuming that using it for WRITE is tacit common sense.

from smooth-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.