Skip to content

Allow Switcher Key attribute name to be different from Domain settings or Snapshot #368

@petruki

Description

@petruki

Is your feature request related to a problem? Please describe.
Currently, Switcher Keys are required to match name and value from your Switcher Management or local snapshot file. e.g.

	@SwitcherKey
	public static final String FEATURE_FLAG = "FEATURE_FLAG";

Developers may want to give a more descriptive attribute name to make code self-documented and easy to read.
Feature Switchers within Management and Snapshots may follow a different standard, which could not be as descriptive when within the code-base context.

Describe the solution you'd like
Change Switcher register to read Switchers from value only. That way, developers will have freedom to name feature constant more appropriately.

For example,
Say the team uses a standard within Switcher Management to create feature based on PROJECTID_FEATURENAME, e.g. PJ404_NEW_WEB_PORTAL

Instead of creating this attribute in code, we could create something more descriptive, e.g.

	@SwitcherKey
	public static final String redirectToNewPortal = "PJ404_NEW_WEB_PORTAL";

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions