Skip to content

fix: add use_scope_descriptions_for_consent to allowedTenantFlags#1428

Open
harshithRai wants to merge 3 commits into
masterfrom
ghIssue1426
Open

fix: add use_scope_descriptions_for_consent to allowedTenantFlags#1428
harshithRai wants to merge 3 commits into
masterfrom
ghIssue1426

Conversation

@harshithRai

@harshithRai harshithRai commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

🔧 Changes

Adds use_scope_descriptions_for_consent to allowedTenantFlags in the tenant handler. This flag was being silently stripped from the import payload despite being publicly documented in the Auth0 API and returned by GET /api/v2/tenants/settings on export — causing a broken export→import roundtrip.

📚 References

🔬 Testing

Unit tests

Existing unit tests cover this. mockAllowedFlags is built dynamically from allowedTenantFlags, so the new flag is automatically exercised by the #removeUnallowedTenantFlags test suite.

Manual testing

Tested against a real tenant:

  1. Added use_scope_descriptions_for_consent: true to tenant.yaml
  2. Ran a0deploy import - flag is now included in the PATCH /api/v2/tenants/settings payload with no "deemed incompatible" warning
  3. Ran a0deploy export - exported tenant.yaml confirms use_scope_descriptions_for_consent: true is set on the tenant

E2E Tests

E2E tests rerun and recordings updated.

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@harshithRai
harshithRai marked this pull request as ready for review July 17, 2026 06:26
@harshithRai
harshithRai requested a review from a team as a code owner July 17, 2026 06:26
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.23%. Comparing base (a7ee348) to head (058fda7).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1428   +/-   ##
=======================================
  Coverage   80.23%   80.23%           
=======================================
  Files         163      163           
  Lines        7533     7533           
  Branches     1663     1663           
=======================================
  Hits         6044     6044           
  Misses        800      800           
  Partials      689      689           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

use_scope_descriptions_for_consent tenant flag is silently stripped on import — missing from allowedTenantFlags despite being publicly documented

2 participants