AAP-45875 Runtime Feature Flags#875
Merged
bhavenst merged 15 commits intoansible:develfrom Nov 24, 2025
fao89:phase2/feature-flags/poc
Merged
AAP-45875 Runtime Feature Flags#875bhavenst merged 15 commits intoansible:develfrom fao89:phase2/feature-flags/poc
bhavenst merged 15 commits intoansible:develfrom
fao89:phase2/feature-flags/poc
Conversation
This was referenced Oct 27, 2025
AlanCoding
reviewed
Oct 27, 2025
AlanCoding
reviewed
Oct 27, 2025
AlanCoding
reviewed
Oct 27, 2025
Member
I'm not sure if we're going to keep the dispatcher feature flag, as it was for a transition period. So it's likely better to never port it to the updated flags system. |
AlanCoding
reviewed
Oct 27, 2025
AlanCoding
reviewed
Oct 27, 2025
AlanCoding
reviewed
Oct 29, 2025
AlanCoding
reviewed
Oct 30, 2025
AlanCoding
reviewed
Oct 30, 2025
AlanCoding
reviewed
Oct 30, 2025
AlanCoding
reviewed
Oct 30, 2025
AlanCoding
reviewed
Oct 30, 2025
zkayyali812
reviewed
Nov 11, 2025
Contributor
zkayyali812
left a comment
There was a problem hiding this comment.
Approving, recommending addressing the latest comments too from others before merge.
zkayyali812
approved these changes
Nov 11, 2025
20 tasks
AlanCoding
approved these changes
Nov 13, 2025
AlanCoding
reviewed
Nov 13, 2025
fao89
commented
Nov 18, 2025
bhavenst
reviewed
Nov 18, 2025
fao89
commented
Nov 21, 2025
BrennanPaciorek
approved these changes
Nov 21, 2025
bhavenst
approved these changes
Nov 21, 2025
…ests - Add FEATURE_CASE_INSENSITIVE_AUTH_MAPS_ENABLED flag definition to feature_flags.yaml - Update claims.py to use the correct flag name with _ENABLED suffix - Fix test_claims.py to use proper django-flags API (enable_flag/disable_flag) - Remove deprecated settings manipulation in favor of feature flags API - All 237 authentication claims tests now pass Fixes failing tests that were expecting the missing feature flag for case-insensitive authentication mapping functionality. Signed-off-by: Fabricio Aguiar <fabricio.aguiar@gmail.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
This change resolves failing resource sync tests by ensuring the system user is properly excluded from orphan detection during resource synchronization. **Problem:** Resource sync tests were failing because the system user (_system) was being incorrectly identified as an "orphaned" resource and deleted during sync operations. The issue was an inconsistency between: 1. The manifest endpoint (views.py) which already excluded system users 2. The orphan detection logic (sync.py) which did not exclude system users This caused the system user to be absent from manifests but present in orphan detection, leading to unintended deletion. **Solution:** - Added system user exclusion to get_orphan_resources() function - Used get_system_user() utility for robust system user identification - Filter by object_id rather than username for more reliable exclusion - Maintains consistency with existing manifest endpoint behavior **Impact:** - Fixes 4 failing tests: test_resource_sync, test_delete_orphans, test_resource_sync_update_conflict, test_resource_sync_create_conflict - Protects system user from being deleted during resource sync operations - No impact on regular user resource synchronization behavior Signed-off-by: Fabricio Aguiar <fabricio.aguiar@gmail.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
|
DVCS PR Check Results: PR appears valid (JIRA key(s) found) |
|
fao89
added a commit
to ansible/galaxy_ng
that referenced
this pull request
Nov 24, 2025
requires: ansible/django-ansible-base#875 Signed-off-by: Fabricio Aguiar <fabricio.aguiar@gmail.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
hsong-rh
pushed a commit
to ansible/eda-server
that referenced
this pull request
Nov 25, 2025
Jira: https://issues.redhat.com/browse/AAP-45879 This PR moves the EDA feature flag source from Settings based feature flags, to platform database level feature flags. This also makes gateway the provider of this data for the platform. This is required to enable platform level feature flags. Gateway is the provider of the feature flag value updates, and is resource synced to EDA/other components. It can be validated and tested simply with AAP Dev, and requires the following DAB PR to be merged in beforehand - ansible/django-ansible-base#875 Once the DAB PR is merged, I will update this PR to point back to the upstream devel branch of DAB To test - 1. Clone AAP-Dev 2. make configure-sources 3. Select DAB, GW, and EDA for sources 4. make aap 5. Attempt to hit <GATEWAY_API>/feature_flags/X api endpoint and patch a flags value. 6. If Gateway Setting RUNTIME_FEATURE_FLAGS == True, the update succeeds and flag value is resource synced to EDA 7. If Gateway Setting RUNTIME_FEATURE_FLAGS == False, the update fails with error explaining why.
john-westcott-iv
pushed a commit
to john-westcott-iv/django-ansible-base
that referenced
this pull request
Jan 9, 2026
This change is the foundation for enabling runtime platform feature flags for AAP. This updates the django-ansible-base to be the central location where all platform flags are defined. Components can inherit the `ansible_base.feature_flags` application to inherit all platform feature flag definitions. --------- Co-authored-by: Zack Kayyali <zkayyali812@gmail.com> (cherry picked from commit 9db7237) Signed-off-by: Fabricio Aguiar <fabricio.aguiar@gmail.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
https://issues.redhat.com/browse/AAP-45875
This change is the foundation for enabling runtime platform feature flags for AAP. This updates the django-ansible-base to be the central location where all platform flags are defined. Components can inherit the
ansible_base.feature_flagsapplication to inherit all platform feature flag definitions.To enable runtime platform feature flags in AAP.
This change addresses the issue by defining a database flag source, which contains all the feature flags along with their associated metadata. These feature flags are installed into each components database at install-time and kept in sync via resource sync (Gateway is the provider)
Before this can be merged, the following should be done:
Type of Change
Self-Review Checklist
Testing Instructions
Prerequisites
Steps to Test
Recommend testing this through AAP Dev, but it can be tested directly via the test app as well.
make configure-sourcesExpected Results
AAP Deploys as expected with database feature flags.
Additional Context
Required Actions