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

Blob Storage support for ParameterBindingData reference type #31757

Merged
merged 70 commits into from
Feb 2, 2023

Conversation

liliankasem
Copy link
Member

@liliankasem liliankasem commented Oct 12, 2022

The Azure Functions team is working on enabling SDK-type bindings for out-of-proc language workers. To enable this, we are introducing a reference type that contains all the information the worker would require to hydrate the SDK-type on the worker side, instead of passing the payload through the host. You can read internal design document here.

This PR adds rules and converters for ParameterBindingData which is the reference type mentioned above ^

  • You can read this PR description to learn more about how this is used in the Functions Dotnet-Isolated worker.
  • You can learn more about how this is used on the Functions host in this PR description

Related issue: Azure/azure-functions-dotnet-worker#1081

@surgupta-msft surgupta-msft self-requested a review January 13, 2023 18:07
@liliankasem
Copy link
Member Author

@amnguye @weshaggard Hello, we have just pushed the WebJobs SDK, and I removed the myget reference from the config file - we should be good to merge!

NuGet.Config Outdated Show resolved Hide resolved
@weshaggard weshaggard dismissed their stale review February 2, 2023 00:34

feed has been removed so dismissing my request.

@liliankasem liliankasem force-pushed the sdk-bindings/support-reference-type branch 2 times, most recently from 27af59b to 76503e1 Compare February 2, 2023 00:40
@liliankasem liliankasem force-pushed the sdk-bindings/support-reference-type branch from 76503e1 to 60bc0fc Compare February 2, 2023 00:43
@amnguye amnguye merged commit 7d11d86 into Azure:main Feb 2, 2023
ghost pushed a commit that referenced this pull request Feb 2, 2023
…ture (#33863)

Update change log to include new feature supporting ParameterBindingData in the blob storage webjobs ext

PR: #31757
richardcho-msft pushed a commit to richardcho-msft/azure-sdk-for-net that referenced this pull request Feb 6, 2023
…1757)

* Add converter rules for richbindingreferencetype

* add RichBindingReferenceType rules and converter

* add build script

* update BlobTriggerAttributeBindingProvider

* update ref dictionary

* update local version

* Update to connection name and checking null case

* Renaming to ParameterBindingData

* cleanup

* bind to new ParameterBindingData schema

* update script

* Try content as json string

* use ExpandoObject

* Update Constants file

* Fix input binding

* Use updated ParameterBindingData

* Address feedback

* Update usage of ParameterBindingData and cleanup

* Add azure_app_service_staging and script - both to undo before merge

* address feedback

* Add BlobTrigger_BindingToParameterBindingData test

* add input binding test

* Fix tests

* Validate connection name

* Added input converter for ParameterBindingData

* Removing unnecessary comment

* Updating connection string resolution logic

* Updating unused usings

* Removing duplicate code

* Added test for ParameterBindingData collection

* Removing blank line

* Removing unused constants

* Fixing test

* Adding storage constants

* Added env variable

* Updating blob trigger test

* Adding environment variables

* Add env variables

* Add env variables in tests

* Adding correct using

* Fixing failing test

* Fixing test

* Added createContainer method

* Fix build issue

* Removing comment

* Deleting unused build file

* Removing code duplication to resolve connection

* Resolving connection section

* Removing configuration

* Added nameResolver logic

* Assigning connectionSection.Key instead of value

* Updated test assert

* Updated test assert

* Added connection string in test

* Test fix

* Fixing failing tests

* Fixing failing tests

* Passing configuration in tests for storage setting

* Fix failing tests by sending config correctly

* Test comment

* Updated support for array type

* Updated collection support code

* Adding test for array

* Added test

* Added string array test

* reset NuGet.Config

---------

Co-authored-by: Surgupta <surgupta@microsoft.com>
richardcho-msft pushed a commit to richardcho-msft/azure-sdk-for-net that referenced this pull request Feb 6, 2023
…ture (Azure#33863)

Update change log to include new feature supporting ParameterBindingData in the blob storage webjobs ext

PR: Azure#31757
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants