You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: make warehouseId optional in ServiceContext when no plugin requires it (#91)
* fix: make warehouseId optional when no plugin requires it
Adds a `static requires` mechanism to the Plugin class so plugins can
declare which shared resources they need (e.g. warehouseId). At startup,
createApp() collects requirements from all plugins and passes them to
ServiceContext.initialize(), which only resolves warehouseId when a
plugin declared it. Apps using only server() no longer need
DATABRICKS_WAREHOUSE_ID set.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Pedro Figueiredo <klisarkk@gmail.com>
* fix: warehouseID should be optional
* fix: rename
* refactor: better error handling
* fix: error message
* fix: branch conflicts
* feat: use existing logic
* fix: dont commit useless changes
* test: add some test scenarios
* fix: addres PR comments
---------
Signed-off-by: Pedro Figueiredo <klisarkk@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments