#SCB2989 (In progress) teaching Scarab the meaning of state values.
Hussayn Dabbous <[email protected]> Mon, 20 Jul 2009 22:42:00 +0200 (CEST)
| Newsgroups | gmane.comp.java.scarab.issues |
|---|---|
| Message-ID | <[email protected]> |
*SCB2989 [Enhancement] - teaching Scarab the meaning of state values.* ------------------------------------------------------------------------------- *Reasons for the changes* ------------------------------------------------------------------------------- - Added a first preparatory work (API already working as designed) A bunch of logic is still missing (behavioural model of a statefull Scarab-issue). patch is in svn 10816 ------------------------------------------------------------------------------- *Attribute changes* ------------------------------------------------------------------------------- - Status: Unconfirmed --> In progress *Comment Hussayn Dabbous* I have introduced the "sealed" state some days before. Now i added the "onHold" state. My final goal is to "teach" Scarab about states. That means, Scarabs default behaviour should keep as it is (stateless). I added api functions to get issuestate isSealed() isOnHold() plus the necessary support methods And i added some system properties: scarab.common.status.id=status scarab.common.status.sealed=closed scarab.common.status.onhold=onhold scarab.common.status.onhold.dateProperty=reactivationDate This information is needed by the Issue.isSealed() and Issue.isOnHold() methods to find out the "state" of the issue. As this is only preparatory work for now, nothing is actually seen on the frontend side and nothing happens on the backend side. However the new API methods can be used to modify the velocity templates through extension functions (as i do right now for my project). I still intend to add a better integration maybe customizable on module/or issueType scope and eventually allow colorized issuelists etc. But there is still a lot to do before that works in a feasible and meaningfull way. ------------------------------------------------------------------------------- Activity generated by Hussayn Dabbous ([email protected]) at 07/20/2009 22:33 [Scarab]: http://www.solitone.org/scarab/issues/id/SCB2989 ------------------------------------------------------ http://scarab.tigris.org/ds/viewMessage.do?dsForumId=458&dsMessageId=2372723 To unsubscribe from this discussion, e-mail: [[email protected]].