Giter VIP home page Giter VIP logo

Comments (3)

dacook avatar dacook commented on August 16, 2024

As far as I understand it, this issue includes everything required for an enterprise user to enable the new DFC anonymized orders data endpoint (which is hardcoded for a specified user for now).
It will always appear while the connected_app feature toggle is enabled (eg in Australia), but disabled by default. Hiding it will be done in (#12549)

So, from a technical point of view:

Build Plan

  1. Create new type of connected app.
    • The WIP endpoint appears to be called affiliate_sales_data, so I'm thinking class AffiliateSalesData < ConnectedApp.
    • I think the existing "Discover Regen" app will continue to be a ConnectedApp for now, but we'll probably need to give it a name soon.
  2. Arrange the translations so these can exist side by side. IE:
    connected_apps:
       legend: "Connected apps"
       connected_app:
         title: "Discover Regenerative"
         ...
       affiliate_sales_data:
         title:  "INRAE / UFC QUE CHOISIR Research"
         ...
  3. Hardcode the Enterprise Settings view to include ConnectedApp and AffiliateSalesData
  4. Update ConnectedAppsController to accept the connected app type, and optionally data and save accordingly.
    • I think we can add a simple boolean value to the data to signify it is opted in/out.
  5. update the endpoint to respect this setting.

from openfoodnetwork.

RachL avatar RachL commented on August 16, 2024

As far as I understand it, this issue includes everything required for an enterprise user to enable the new DFC anonymized orders data endpoint (which is hardcoded for a specified user for now).

@dacook it enables an enterprise to opt-out from the new DC anonymized orders data end point. This endpoint being "hardcoded" to a specified user. I use "hardcoded" as I understand we would use flipper in this case, but maybe I've missunderstood and I should give the user ID in a new issue?

from openfoodnetwork.

dacook avatar dacook commented on August 16, 2024

This endpoint being "hardcoded" to a specified user. I use "hardcoded" as I understand we would use flipper in this case, but maybe I've missunderstood and I should give the user ID in a new issue?

Sorry, never mind, I didn't need to refer to the user accessing the endpoint. As you say, that is handled in the other issue, and this issue is about which enterprises will be included in the data from the endpoint.

from openfoodnetwork.

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.