Allow to use additional_data in the confirmation dialog for queries

  1. My goal: Make useful confirmation dialog
  2. Issue: The additional_data of the query does not show as valid in the editor but are valid in that context
  3. Steps I've taken to troubleshoot: Tested it, and it works. Only the editor fails.
  4. Additional info: (Cloud or Self-hosted, Screenshots)

Hi @AlexisP,

Is iccid and product_id defined in your queries additional scope? If not, where are they coming from? Are they from a component?

Is the issue that the linter has them displayed with a red underline or that the values do not appear when the confirmation message appears?

Both are additional data coming from the query itself. They are successfully shown thus valid in that context, but the editor reports them missing.

Ah ok I see, thank you for the details.

That is a known 'quirk' with the linter where although it appears with the red underline, at the time of the query compiling and executing those values are properly read and used. It is a 'false negative' when using additional scope for queries.

As long as the query is running as intended, the red highlighting can be ignored :sweat_smile:

It there any chance to have it fixed?

Hi @AlexisP,

I don't see it likely that this will be fixed in the short term due to how additional scope functions with the query code at build time. This change has been requested by other users and I can definitely add a +1 to that ticket for you :+1:

1 Like