AP2.2d: Sprint-Planung, Abschluss und Product-Fallback.
Deploy Development / deploy (push) Successful in 48s
Test Suite / pytest-backend (push) Successful in 2m56s
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 18s
Test Suite / playwright-smoke (push) Has been cancelled
Deploy Development / deploy (push) Successful in 48s
Test Suite / pytest-backend (push) Successful in 2m56s
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 18s
Test Suite / playwright-smoke (push) Has been cancelled
Backlog committet in gewaehlten Sprint, Sprint complete-Endpoint, continuous_product-Ansicht ohne aktiven Sprint. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
09826d146e
commit
f6aba94864
11 files changed
+422
-17
No files matched your search
@@ -76,6 +76,7 @@ import {
|
||||
getActiveWorkCycle,
|
||||
createWorkCycle,
|
||||
activateWorkCycle,
|
||||
completeWorkCycle,
|
||||
} from '../api/workCycles.js'
|
||||
import { useCapabilities } from '../hooks/useCapabilities.js'
|
||||
import { useActors } from '../hooks/useActors.js'
|
||||
@@ -420,10 +421,31 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
}
|
||||
}
|
||||
|
||||
async function handleConvertBacklog(itemId) {
|
||||
async function handleConvertBacklog(itemId, options = {}) {
|
||||
setFormBusy(true)
|
||||
try {
|
||||
await convertBacklogToAction(itemId, { assign_active_sprint: true })
|
||||
await convertBacklogToAction(itemId, {
|
||||
assign_active_sprint: options.work_cycle_id ? false : options.assign_active_sprint ?? true,
|
||||
work_cycle_id: options.work_cycle_id,
|
||||
})
|
||||
await load()
|
||||
} catch (err) {
|
||||
setError(err.message)
|
||||
} finally {
|
||||
setFormBusy(false)
|
||||
}
|
||||
}
|
||||
|
||||
async function handleBulkConvertBacklog(itemIds, options = {}) {
|
||||
if (!itemIds.length) return
|
||||
setFormBusy(true)
|
||||
try {
|
||||
for (const itemId of itemIds) {
|
||||
await convertBacklogToAction(itemId, {
|
||||
assign_active_sprint: options.work_cycle_id ? false : options.assign_active_sprint ?? true,
|
||||
work_cycle_id: options.work_cycle_id,
|
||||
})
|
||||
}
|
||||
await load()
|
||||
} catch (err) {
|
||||
setError(err.message)
|
||||
@@ -456,6 +478,18 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
}
|
||||
}
|
||||
|
||||
async function handleCompleteWorkCycle(workCycleId) {
|
||||
setFormBusy(true)
|
||||
try {
|
||||
await completeWorkCycle(id, workCycleId)
|
||||
await load()
|
||||
} catch (err) {
|
||||
setError(err.message)
|
||||
} finally {
|
||||
setFormBusy(false)
|
||||
}
|
||||
}
|
||||
|
||||
async function handleDeleteBacklog(itemId) {
|
||||
try {
|
||||
await deleteBacklogItem(itemId)
|
||||
@@ -821,8 +855,10 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
handleBacklogGate,
|
||||
handleBacklogStatus,
|
||||
handleConvertBacklog,
|
||||
handleBulkConvertBacklog,
|
||||
handleCreateWorkCycle,
|
||||
handleActivateWorkCycle,
|
||||
handleCompleteWorkCycle,
|
||||
handleDeleteBacklog,
|
||||
handleCreateRoadmapItem,
|
||||
handleRoadmapItemStatus,
|
||||
|
||||
Reference in new issue
Block a user