Bug 704777 - Add a "role" attribute to each topic's root <section> element based on topic lifecycle
Summary: Add a "role" attribute to each topic's root <section> element based on topic ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: Web-UI
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Matthew Casperson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 704776
TreeView+ depends on / blocked
 
Reported: 2011-05-14 20:55 UTC by Joshua Wulf
Modified: 2014-10-19 22:58 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-01 10:38:06 UTC


Attachments (Terms of Use)

Description Joshua Wulf 2011-05-14 20:55:53 UTC
When building Skynet's Docbook output, write a role="[topiclifecyle]" attribute into the root <section> element of each topic. 

This will be used to visually communicate the topic lifecycle in html output during development.

Comment 1 Matthew Casperson 2011-05-16 05:31:14 UTC
Fixed in 20110516-1416

Roles are the name of the topic lifecycle tag without spaces. Tags with higher sort orders take precedence.

Comment 2 Joshua Wulf 2011-05-17 22:49:51 UTC
Not happening in Skynet version 20110518-0722:

The code fragment below is from Tasks.xml. Observe the section element, it has no role attribute.


<section id="PlaceholderXRef276">
	<title>Start a new Infinispan CacheManager from a Configuration file</title>
	<note>
		<title>NOTE - TOPIC NOT WRITTEN - TOPIC ID: 2445 </title>
		<para>This topic has not yet been written. The content below is from the topic description.</para>
	</note>
   <para>
		To start a new CacheManager from a configuration file (optional parameter): hibernate.search.infinispan.configuration_resourcename = [infinispan configuration filename]
   </para>
	<para>
		<ulink url="https://bugzilla.redhat.com/enter_bug.cgi?product=Topic+Tool&amp;component=web-Topic_Index&amp;comment=Leave%20this%20line%20in%20the%20report.%20Topic%20ID:2445%20Build:%2020110518-0722">Report a bug: 2445</ulink>
	</para>
	<para>
		<ulink url="http://jboss-eap.bne.redhat.com:8080/TopicIndex/CustomSearchTopicList.seam?topicId=2445">View in Skynet</ulink>
	</para>
	<para>
		<ulink url="http://jboss-eap.bne.redhat.com:8080/TopicIndex/CustomSearchTopics.seam?tag56=1">Built with Skynet version 20110518-0722</ulink>
	</para>
</section>

Comment 3 Matthew Casperson 2011-05-18 03:00:36 UTC
Fixed in 20110518-1257

Comment 4 Matthew Casperson 2011-05-18 03:01:04 UTC
Note that tasks that fail validation will not have a role applied to them, because their tags are not in a consistent state.

Comment 5 Joshua Wulf 2011-05-23 04:02:53 UTC
Verified.

Comment 6 Joshua Wulf 2011-05-23 04:14:53 UTC
Can you put a list of the roles in here, please? This will function as the basis for the documentation for this feature.

I see that "IAProposed" is used for IA_Proposed. 

How are these assigned? What will happen if we spin up another instance of Skynet - how will the topic lifecycle roles be assigned / set up in there?

Comment 7 Matthew Casperson 2011-05-23 22:36:38 UTC
Roles are assigned based on the highest priority tag in the topic lifecycle category. The names of the roles are the names of the tags, with the spaces removed, so there is no "list" of roles as such.

Comment 8 Joshua Wulf 2011-06-01 10:38:06 UTC
Verified.


Note You need to log in before you can comment on or make changes to this bug.