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

Support defining functions in code instead of function.json #569

Closed
ejizba opened this issue Apr 5, 2022 · 1 comment · Fixed by #619
Closed

Support defining functions in code instead of function.json #569

ejizba opened this issue Apr 5, 2022 · 1 comment · Fixed by #619
Assignees
Labels
feature P1 v4 model 🚀 Related to the new V4 programming model
Milestone

Comments

@ejizba
Copy link
Contributor

ejizba commented Apr 5, 2022

This work was unblocked in the host by Azure/azure-functions-host#7606. For now, it requires users to include EnableWorkerIndexing in the AzureWebJobsFeatureFlags app setting.

This specific issue is to track basic support in the core worker api for defining functions in code. I imagine this essentially just means users can copy/paste their current "function.json" content into a js/ts file. It should be a simple change to their codebase that will let them completely redefine their file structure. Anything fancier will be tracked by the new programming model package in #480

Prereqs:

@ejizba
Copy link
Contributor Author

ejizba commented Jun 10, 2022

I did a rough first commit on this branch that only works with "OptionA-Simple" in the prototype repo here. Keep in mind you have to add this to the local.settings.json in the app you're testing:
"AzureWebJobsFeatureFlags": "EnableWorkerIndexing"

Plan as discussed today was to have @hossam-nasr take it from here, which includes:

  1. Get the other prototype options to "work" - for the purposes of a user study and to validate the core api is on the right track
  2. Make the rough commit an actual PR for merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature P1 v4 model 🚀 Related to the new V4 programming model
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants