bujjibabukatta opened a new pull request, #8922:
URL: https://github.com/apache/devlake/pull/8922
## Summary
Closes #8896
This PR implements two related feature requests to improve scope config
management for users maintaining multiple projects/connections in a single
DevLake instance.
## Changes
### Feature 1 — Multi-select data scopes with bulk scope config apply
**File:** `config-ui/src/routes/blueprint/connection-detail/table.tsx`
- Added checkbox row selection to the data scope table
- Added a bulk action toolbar that appears when rows are selected, showing:
- Selected count badge
- "Apply Scope Config to Selected" button
- "Clear Selection" button
- Clicking the button opens a scope config picker modal
- The chosen scope config is applied to all selected data scopes in parallel
via existing `PATCH
/plugins/{plugin}/connections/{connectionId}/scopes/{scopeId}`
### Feature 2 — Share scope configs across connections
**File:** `config-ui/src/plugins/components/scope-config-select/index.tsx`
**File:** `config-ui/src/api/scope-config/index.ts`
- Added `listAll` API function to fetch scope configs across all connections
for a plugin
- Added "This Connection Only / Showing: All Connections" toggle button in
the scope config picker
- Users can now reuse an existing scope config from any connection instead
of recreating it each time
## How to Test
1. Go to a Project → Blueprint → Connection detail page
2. Select multiple data scopes using the checkboxes
3. Click "Apply Scope Config to Selected" and pick a config → all selected
scopes should be updated
4. Click "Associate Scope Config" on any single scope → toggle
"This Connection Only" to "Showing: All Connections" → configs from
all connections should appear in the list
## No Backend Changes Required
The existing `ListScopeConfigs` backend handler already returns all scope
configs without filtering by `connection_id`. The frontend now exposes
this via the toggle.
--
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]