Azure-Functions icon indicating copy to clipboard operation
Azure-Functions copied to clipboard

[UX] - wrong graph in Integration menu

Open buchizo opened this issue 6 years ago • 10 comments

wrong graph in Integration menu

Description

Trigger and Output object of graph is wrong in Integration menu.

For example:

  • Using EventHubTrigger
    • EventHub doesn't displayed in trigger graph object.
    • But EventHub wrong displayed in output graph object.
  • Using HttpTrigger
    • Http (req) doesn't displayed in trigger graph object.

image

sample code

  1. create new v3 function app using C#
  2. add EventHub Trigger as follows:
[FunctionName("Example")]
public async Task Run([EventHubTrigger("%EventHubName%", Connection = "EventHubsConnection")] EventData eventData, ILogger log)
{
}
  1. deploy to Azure using RunFromPackage

buchizo avatar Mar 13 '20 19:03 buchizo

@refortie can you take a look? is this similar to #1510

btardif avatar Mar 13 '20 19:03 btardif

It looks to be exactly the same issue. I can repro it locally. The templates that VS code are using don't appear to have the direction in the bindings that it generates.

refortie avatar Mar 17 '20 18:03 refortie

@fabiocav and @jeffhollan need your input here since this looks like a bug in VSCode the the templates being used there. @soninaren

CC: @fiveisprime

btardif avatar Mar 18 '20 19:03 btardif

@jeffhollan we got another hit: see #1581

btardif avatar May 09 '20 21:05 btardif

@btardif it also affects Visual Studio Enterprise 2019 v16.5. So what ever means of creating the function.json (AzureFunctionsTools 3.x? or SDK 3.0.x?) has the bug which forgets to include 'direction'. However it could be argued that 'direction' is redundant for a trigger. I think only the doco and the new UI rely on direction, the code compiles and the runtime successfully executes without needing direction.

Camios avatar May 20 '20 22:05 Camios

@refortie can you provide an update on this WI based on ongoing conversations? I think we have a short term mitigation and a longer range plan. I think it would be good to share details here.

btardif avatar May 26 '20 20:05 btardif

We've identified that that SDK doesn't generate some of the information that the portal UI expects. We are putting in some better logic to handle triggers and clearer information stating that inputs and outputs won't be visible in the portal for the time being. We've implemented the fix, and the it will be coming with our next deployment

refortie avatar May 28 '20 17:05 refortie

Using TimerTrigger functions also causes this issue:

The following bindings are missing the required direction property and may have been placed incorrectly: generatorFunctionTimer. Please update the bindings in your functions.json file.Learn more

vllama avatar May 28 '20 20:05 vllama

We have a design and are working through this to group bindings missing directions in the UX

CC: @refortie

btardif avatar Jun 18 '20 20:06 btardif

For issues involving the SDK and misplaced bindings, we've deployed a fix. For bindings in general that are missing their direction we will be adding a new field to display them.

refortie avatar Jun 25 '20 18:06 refortie