[UX] - wrong graph in Integration menu
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.

sample code
- create new v3 function app using C#
- add EventHub Trigger as follows:
[FunctionName("Example")]
public async Task Run([EventHubTrigger("%EventHubName%", Connection = "EventHubsConnection")] EventData eventData, ILogger log)
{
}
- deploy to Azure using RunFromPackage
@refortie can you take a look? is this similar to #1510
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.
@fabiocav and @jeffhollan need your input here since this looks like a bug in VSCode the the templates being used there. @soninaren
CC: @fiveisprime
@jeffhollan we got another hit: see #1581
@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.
@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.
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
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
We have a design and are working through this to group bindings missing directions in the UX
CC: @refortie
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.