Mailinglist Archive: opensuse-buildservice (339 mails)

< Previous Next >
Re: [opensuse-buildservice] request state names
  • From: Cornelius Schumacher <cschum@xxxxxxx>
  • Date: Thu, 6 Mar 2008 11:27:56 +0100
  • Message-id: <200803061127.56450.cschum@xxxxxxx>
On Thursday 06 March 2008 10:18, Dr. Peter Poeml wrote:

this is a snippet from a "request":
(see http://en.opensuse.org/Build_Service/Concepts/Requests)


<state name="foobar" who="poeml" when="2008-03-06T10:14:49" />
<history name="new" who="poeml" when="2008-03-04T23:46:37" />

Would it be more logical to change that to

<state name="foobar" who="poeml" when="2008-03-06T10:14:49" />
<statehistory name="new" who="poeml" when="2008-03-04T23:46:37" />

because for <history> it isn't very clear what it's about?

With <statehistory>, it is more obvious what "name" means.

As "history" (or "statehistory") has exactly the same attributes as "state" I
think it would even be desirable to use the same tag here. The current state
would be denoted by the highest "when" value. This could be made more
explicit by adding an "current=true" attribute or putting it into an extra
tag. E.g.:

<current>
<state name="foobar" who.../>
</current>
<history>
<state name="new" who.../>
<state name="old" who../>
</history>

--
Cornelius Schumacher <cschum@xxxxxxx>
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
References