mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2025-12-11 20:15:30 +01:00
1.1 KiB
1.1 KiB
id, title, status, assignee, parent, priority, tags, whitepaper
| id | title | status | assignee | parent | priority | tags | whitepaper | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| LOC-001 | Location Management Actions | Done | james | LOC-000 | High |
|
Section 4.3.3 |
Description
The core actions for managing library locations will be implemented. This includes adding a new directory to be indexed, removing it, and triggering a rescan.
Implementation Notes
- Add: The
LocationAddAction(src/operations/locations/add/action.rs) creates a location record and dispatches an initialIndexerJob. - Remove: The
LocationRemoveAction(src/operations/locations/remove/action.rs) removes the location and all its associated entries from the database. - Rescan: The
LocationRescanAction(src/operations/locations/rescan/action.rs) dispatches a newIndexerJobfor an existing location.
Acceptance Criteria
- A user can add a new local directory as a location.
- Adding a location automatically starts an indexing job.
- A user can remove a location, cleaning up its database entries.
- A user can trigger a manual rescan of an existing location.