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

Populere applicationMetadata med externalApiIds #736

Open
cammiida opened this issue Aug 26, 2024 · 1 comment
Open

Populere applicationMetadata med externalApiIds #736

cammiida opened this issue Aug 26, 2024 · 1 comment
Assignees

Comments

@cammiida
Copy link
Contributor

cammiida commented Aug 26, 2024

Uttrykksmotoren må ha hentet all dataen den potensielt trenger på forhånd slik som det er satt opp i dag. For å støtte externalApi i uttrykk må den derfor vite alle id-ene til de eksterne API-ene på forhånd. Dette kan støttes gjennom å legge det til på applicationMetadata fra backend fram til vi eventuelt endrer på uttrykksmotoren.

@HauklandJ
Copy link
Contributor

Does not behave as I think was the goal.
Reproducable:

Apis:

  • ExternalApi : IExternalApiClient { Id = "testId" ...}
  • AnotherExternalApi : IExternalApiClient { Id = "anotherId" ...}

Layout:

{
  "id": "Tekst-Fra-Eksternt-Api",
  "type": "Text",
  "textResourceBindings": {
    "title": "Eksternt api"
  },
  "value": [
    "externalApi",
    "testId",
    "details[0].id"
  ],
  "direction": "vertical",
  "grid": {
    "xs": 6
  }
},

applicationMetadata:

  • nothing

Network calls:

http://local.altinn.cloud/ttd/component-library/instances/510003/be051523-b136-4a72-8b38-7c289738fae1/api/external/testId

Note that only the externalApi with the id as in the layout was fetched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🧪 Test
Development

No branches or pull requests

2 participants