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

Send semantic id when connecting enterprise to app #11959

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

mkllnk
Copy link
Member

@mkllnk mkllnk commented Dec 21, 2023

What? Why?

Follow up from:

I realised that we can't test this functionality in staging while our Discover app is hardcoded to au-prod. We can open this up by providing the full URL to the enterprise data.

It allows us to list enterprises from any OFN server, not just ofn-au. The app could even accept any enterprise on any server providing its data in the DFC format.

What should we test?

  • Activate feature connected_apps for user, enterprise or instance.
  • Visit enterprise settings.
  • Select tab Connected apps
  • Click on Share data.
  • Maybe observe a loading message.
  • Then observe a notice to finish the setup.
  • Press on that button and see a form containing your enterprise details.

Release notes

Changelog Category (reviewers may add a label for the release notes):

  • User facing changes
  • API changes (V0, V1, DFC or Webhook)
  • Technical changes only
  • Feature toggled

The title of the pull request will be included in the release notes.

Dependencies

  • The n8n workflow needs updating.

Documentation updates

@mkllnk mkllnk added the api changes These pull requests change the API and can break integrations label Dec 21, 2023
@mkllnk mkllnk self-assigned this Dec 21, 2023
It allows us to list enterprises from any OFN server, not just ofn-au.
The app could even accept any enterprise on any server providing its
data in the DFC format.
@mkllnk mkllnk marked this pull request as ready for review December 21, 2023 04:57
@mkllnk mkllnk added no-staging-FR A tag which does not trigger deployments, indicating a server is being used no-staging-AU A tag which does not trigger deployments, indicating a server is being used and removed no-staging-FR A tag which does not trigger deployments, indicating a server is being used labels Dec 22, 2023
Copy link
Collaborator

@rioug rioug left a comment

Choose a reason for hiding this comment

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

Nice one !

subject.perform_now

expect(app.data).to eq({ "link" => "https://example.net/edit" })
request = a_request(:post, url).with(
Copy link
Collaborator

Choose a reason for hiding this comment

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

TIL about a_request

@mkllnk mkllnk removed the no-staging-AU A tag which does not trigger deployments, indicating a server is being used label Dec 22, 2023
@mkllnk
Copy link
Member Author

mkllnk commented Jan 3, 2024

Hm, David didn't review this one and is back on holiday. We want to test this in production soon. So I'll merge this for the next release.

@mkllnk mkllnk merged commit b9f117e into openfoodfoundation:master Jan 3, 2024
54 checks passed
@mkllnk mkllnk deleted the connect-app-id branch January 3, 2024 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api changes These pull requests change the API and can break integrations
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants