clckwrks-plugin-bugs-0.6.3: bug tracking plugin for clckwrks

Safe HaskellNone

Clckwrks.Bugs.Acid

Synopsis

Documentation

genBugId :: Update BugsState BugIdSource

get the next unused BugsId

putBug :: Bug -> Update BugsState ()Source

store Bugs in the state. Will overwrite an existing entry with the same BugId

newMilestone :: Update BugsState MilestoneIdSource

add a new, empty Milestone to the database and return the MilestoneId

setMilestones :: [Milestone] -> Update BugsState ()Source

get the milestones sorted by target date

bugsForMilestones :: [MilestoneId] -> Query BugsState (IxSet Bug)Source

get all the Bugs with one of the target MilestoneIds

milestoneCompletion :: MilestoneId -> Query BugsState (Maybe Rational)Source

return the percentage completion of a MilestoneId

Will return Nothing if no bugs were found for the MilestoneId