Skip to content

Allow User to Custom the Naming convention "{app_name}-{stage}-{func_name}" #1926

@MacHu-GWU

Description

@MacHu-GWU

I found there are many "%s-%s-%s" % (app_name, stage, func_name) in the code base. In my organization they force to use {stage}-{app_name}-{func_name}. Is it possible to create a package level CONSTANT variable in chalice/app.py like NAMING_CONVENTION = "{app_name}-{stage}-{func_name}" that allow user to monkey patch this using their own naming convention?

I found five occurrence of this code snippet, I think the refact is as easy as adding at most five variable and fix the import. If the community believe it is a good idea to allow user to change the naming convention, I can issue an PR. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions