Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [ACI-940, ACI-941] implement keypaths exclusion logic #159

Merged
merged 3 commits into from
Apr 25, 2024

Conversation

andrii-hantkovskyi
Copy link

No description provided.

@andrii-hantkovskyi andrii-hantkovskyi changed the title feat: [ACI-941, ACI-942] add keypaths exclusion logic feat: [ACI-940, ACI-941] add keypaths exclusion logic Apr 24, 2024
@andrii-hantkovskyi andrii-hantkovskyi force-pushed the hantkovskyi/aci-941/implement-hidden-keypaths branch from 12930da to ccdc59c Compare April 24, 2024 10:46
@andrii-hantkovskyi andrii-hantkovskyi changed the title feat: [ACI-940, ACI-941] add keypaths exclusion logic feat: [ACI-940, ACI-941] implement keypaths exclusion logic Apr 24, 2024
f"{field.name}.{keypath}"
for keypath in get_data_keypaths(field.type)
if f"{field.name}.{keypath}"
not in settings.BADGES_CONFIG["EXCLUDED_KEY_PATHS"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's treat EXCLUDED_KEY_PATHS as an optional config:

settings.BADGES_CONFIG.get("EXCLUDED_KEY_PATHS", [])

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also, tests are expected for the feature.

@wowkalucky wowkalucky merged commit de6a2f3 into aci.main Apr 25, 2024
1 of 2 checks passed
@wowkalucky wowkalucky deleted the hantkovskyi/aci-941/implement-hidden-keypaths branch April 25, 2024 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants