Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commands constants should not have menu prefixes #7556

@lkcampbell

Description

@lkcampbell

We have a bunch of constants in the Commands module that are prefixed with menu names. For example: Commands.FILE_NEW_FOLDER.

This is a maintenance hassle when moving commands from one menu to another.

Consider changing all Commands module constant names to have a prefix of CMD_ instead. For example: Commands.CMD_NEW_FOLDER.

See #7488 as a concrete example of this problem.

IMPORTANT NOTE: This solution has some serious backwards compatibility problems associated with it. Even if the core code is updated there may be many extensions that rely on these constant names. We need to come up with some sort of deprecation strategy to warn extension authors. Currently, we do not have a good way to deprecate data values.

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