EnxDev opened a new pull request, #40443:
URL: https://github.com/apache/superset/pull/40443

   ### SUMMARY
   
   Adds the backend for extension settings: two new DB models, a migration, a 
race-safe upsert layer, and REST endpoints with admin-only write access.
   
   **Stack:**
   1. [Contribution point](https://github.com/apache/superset/pull/40439)
   2. [Frontend API entry point](https://github.com/apache/superset/pull/40440)
   3. [Eager loading](https://github.com/apache/superset/pull/40441)
   4. [Admin UI](https://github.com/apache/superset/pull/40442) ← merged first
   5. **This PR** — backend settings & permissions
   6. Context sharing namespaces
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   
   N/A — backend only.
   
   ### TESTING INSTRUCTIONS
   
   1. `flask db upgrade` — verify `extension_settings` and `extension_enabled` 
tables are created
   2. `GET /api/v1/extensions/settings` — returns `{ active_chatbot_id: null, 
enabled: {} }` on first call
   3. `PUT /api/v1/extensions/settings` with `{ "enabled": { "my-ext": true } 
}` — persists and returns updated state
   4. Attempt PUT as a non-admin user — expect 403 Forbidden
   5. Run migration downgrade — verify tables are dropped cleanly
   
   ### ADDITIONAL INFORMATION
   
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [x] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [x] Migration is atomic, supports rollback & is backwards-compatible
     - [x] Confirm DB migration upgrade and downgrade tested
     - [x] Runtime estimates and downtime expectations provided
   - [x] Introduces new feature or API
   - [ ] Removes existing feature or API


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to