Giter VIP home page Giter VIP logo

Comments (6)

davidmrdavid avatar davidmrdavid commented on July 4, 2024 1

@Goldziher: yes, this is a bit of a pain point, naturally Python programmers will create snake_case declarations and those tend to fail unexpectedly. This is one of those issues that seems easy to fix at a surface level, but requires coordination across several teams and their respective release cycles (the fix here is probably at the 'WebJobs' layer, which is really deep in the .NET piece of Azure Functions) and ultimately, due to there being a workaround, is hard to prioritize.

That said, @nytian - ideally we would throw an error if we detect an _ in the variable names passed in as strings to our decorators. That would be better than failing silently. If that validation doesn't exist today, we should add it.

from azure-functions-durable-python.

nytian avatar nytian commented on July 4, 2024

Hi, @Goldziher There is a restriction in binding pattern at Azure Function host which can be found here . In general, only alphanumeric character can be accepted by host. Thus, a binding name contains _ is not allowed. Thanks for bringing up this and I will open a PR later to update the parameter description for better understandings.

from azure-functions-durable-python.

Goldziher avatar Goldziher commented on July 4, 2024

Hi, @Goldziher There is a restriction in binding pattern at Azure Function host which can be found here . In general, only alphanumeric character can be accepted by host. Thus, a binding name contains _ is not allowed. Thanks for bringing up this and I will open a PR later to update the parameter description for better understandings.

Thanks, but can't it be worked around? I would imagine it's easy to convert camel case to snake case and vice versa

from azure-functions-durable-python.

nytian avatar nytian commented on July 4, 2024

@davidmrdavid David, can you help confirm if we can enable it? I guess the answer is no since we don't have our own(python-specific) bindings settings or check. Thanks!

from azure-functions-durable-python.

Goldziher avatar Goldziher commented on July 4, 2024

@Goldziher: yes, this is a bit of a pain point, naturally Python programmers will create snake_case declarations and those tend to fail unexpectedly. This is one of those issues that seems easy to fix at a surface level, but requires coordination across several teams and their respective release cycles (the fix here is probably at the 'WebJobs' layer, which is really deep in the .NET piece of Azure Functions) and ultimately, due to there being a workaround, is hard to prioritize.

That said, @nytian - ideally we would throw an error if we detect an _ in the variable names passed in as strings to our decorators. That would be better than failing silently. If that validation doesn't exist today, we should add it.

Well, I can't argue with your internal processes but this is rather annoying.

It might be to much effort for you guys, but you could simply remap snake case to camel case and record this on the decorator instance itself. It could be part of the logic of the abstract class and thus extensible.

from azure-functions-durable-python.

davidmrdavid avatar davidmrdavid commented on July 4, 2024

@Goldziher: possibly, I'd need to sync with the Azure Functions Python team as I'd want to remain consistent with their experience. @vrdmr: is this something y'all have considered?

from azure-functions-durable-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.