Skip to content

Adding changes for Account type override via tagging.#157

Open
gravi21 wants to merge 1 commit into
developfrom
feature/account_tagging_override
Open

Adding changes for Account type override via tagging.#157
gravi21 wants to merge 1 commit into
developfrom
feature/account_tagging_override

Conversation

@gravi21
Copy link
Copy Markdown
Contributor

@gravi21 gravi21 commented May 3, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@mdolina mdolina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread dataapi/dataapi_common.go
for key, value := range featureTags {
if keyWithoutPrefix, ok := RemovePrefix(key, prefixList); ok {
if getPrefixData {
if Xc.EnableAccountTaggingOverride && strings.HasPrefix(keyWithoutPrefix, "accounttype:") {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't we avoid needing a code change for this by just adding the account type as a normal tag? Like "t_accountType" as the key and "business" or "residential" as the value. This will automatically be picked up as a tag with the HasPrefix method and will be added to the contextMap which will overwrite whatever value might already be there for "accountType".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants