Closed RachL closed 2 months ago
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 (https://github.com/openfoodfoundation/openfoodnetwork/issues/12549)
So, from a technical point of view:
affiliate_sales_data
, so I'm thinking class AffiliateSalesData < ConnectedApp
.ConnectedApp
for now, but we'll probably need to give it a name soon.connected_apps:
legend: "Connected apps"
connected_app:
title: "Discover Regenerative"
...
affiliate_sales_data:
title: "INRAE / UFC QUE CHOISIR Research"
...
ConnectedApp
and AffiliateSalesData
ConnectedAppsController
to accept the connected app type
, and optionally data
and save accordingly.
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?
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.
Funded feature code is #12543 [DFC] Anonymized orders endpoint
Description
- As a: enterprise user - On page:
/admin/enterprises/ENTERPRISE-NAME/edit#/connected_apps_panel
- I want to be able to do:I want to be able to see connected apps that are available and opt-in / out as I wish
Currently we only have on app per country, but if an instance choose to activate both, the page should then display both apps:
Acceptance Criteria & Tests