Author: dblevins
Date: Wed Jul 18 01:00:09 2012
New Revision: 1362733
URL: http://svn.apache.org/viewvc?rev=1362733&view=rev
Log:
new patches report
move jira reports into a jira directory
add titles
create an index
Added:
openejb/site/trunk/content/dev/jira/
openejb/site/trunk/content/dev/jira/index.html
- copied, changed from r1357790, openejb/site/trunk/content/dev/index.html
openejb/site/trunk/content/dev/jira/patches.swjira
openejb/site/trunk/content/dev/jira/todo.swjira
- copied, changed from r1362701, openejb/site/trunk/content/todo.swjira
Removed:
openejb/site/trunk/content/todo.swjira
Modified:
openejb/site/trunk/lib/path.pm
openejb/site/trunk/lib/view.pm
Copied: openejb/site/trunk/content/dev/jira/index.html (from r1357790,
openejb/site/trunk/content/dev/index.html)
URL:
http://svn.apache.org/viewvc/openejb/site/trunk/content/dev/jira/index.html?p2=openejb/site/trunk/content/dev/jira/index.html&p1=openejb/site/trunk/content/dev/index.html&r1=1357790&r2=1362733&rev=1362733&view=diff
==============================================================================
--- openejb/site/trunk/content/dev/index.html (original)
+++ openejb/site/trunk/content/dev/jira/index.html Wed Jul 18 01:00:09 2012
@@ -1,3 +1,3 @@
{% extends "basic.html" %}
-{% block title %}SiteMap{% endblock %}
+{% block title %}JIRA Reports{% endblock %}
{% block content %}{{ content|markdown }}{% endblock %}
Added: openejb/site/trunk/content/dev/jira/patches.swjira
URL:
http://svn.apache.org/viewvc/openejb/site/trunk/content/dev/jira/patches.swjira?rev=1362733&view=auto
==============================================================================
--- openejb/site/trunk/content/dev/jira/patches.swjira (added)
+++ openejb/site/trunk/content/dev/jira/patches.swjira Wed Jul 18 01:00:09 2012
@@ -0,0 +1,32 @@
+Title: Pending Patches
+#set( $url =
"https://issues.apache.org/jira/secure/IssueNavigator.jspa?view=rss&&pid=OPENEJB&pid=TOMEE&status=Open&tempMax=1000&reset=true&decorator=none"
)
+#set( $jirarss = $rss.fetch( $url ) )
+#set( $issues = $jirarss.fillAttachments() )
+#set( $void = $date.format("yyyy-MM-dd") )
+##
+#foreach( $issue in $issues )
+#set( $issue.attributes.totalAttachments = $issue.attachments.size() )
+#end
+#set( $issues = $issues.greater("@totalAttachments", 0) )
+#foreach( $issue in $issues )
+#set( $issue.attributes.firstPatch = $issue.attachments.min("created").created
)
+#end
+##
+
+**${issues.size()} patches in the queue**
+
+Generated $date.as("EEEE, MMMM d, yyyy")
+
+(sorted oldest to newest)
+
+#foreach( $issue in $issues.sort("@firstPatch") )
+[$issue.key]($issue.link) $issue.summary
+
+- $date.format($issue.created) **$issue.reporter** - _${issue.type}_
+#foreach ( $attachment in $issue.attachments.sort("created") )
+- $date.format($attachment.created) $attachment.author
[$attachment.fileName]($attachment.url)
+#end
+
+
+
+#end
Copied: openejb/site/trunk/content/dev/jira/todo.swjira (from r1362701,
openejb/site/trunk/content/todo.swjira)
URL:
http://svn.apache.org/viewvc/openejb/site/trunk/content/dev/jira/todo.swjira?p2=openejb/site/trunk/content/dev/jira/todo.swjira&p1=openejb/site/trunk/content/todo.swjira&r1=1362701&r2=1362733&rev=1362733&view=diff
==============================================================================
--- openejb/site/trunk/content/todo.swjira (original)
+++ openejb/site/trunk/content/dev/jira/todo.swjira Wed Jul 18 01:00:09 2012
@@ -1,9 +1,17 @@
+Title: Unassigned Items
#set ( $tomee =
$rss.fetch("https://issues.apache.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?assignee=Unassigned&&pid=TOMEE&status=Open&tempMax=100&reset=true&decorator=none")
)
#set ( $openejb =
$rss.fetch("https://issues.apache.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?assignee=Unassigned&pid=OPENEJB&status=Open&tempMax=100&reset=true&decorator=none")
)
-
#set( $issues = $tomee.issues.union( $openejb.issues ) )
#set( $priorities = $issues.collect("priority").unique("id").sort("id"))
+Looking for something to do?
+
+This page contains a list of JIRA issues that are open and not assigned to
anyone. Anything in this list is a great candidate for contribution.
+
+**Note "Major" and "Minor" refer to priority and not effort required to
complete a task.**
+
+When looking for a task for first-time contributors, we highly encourage
people to start small and find something simple and quick. See also
[Contribution Tips](../contribution-tips.html)
+
#foreach( $p in $priorities )
#$p
Modified: openejb/site/trunk/lib/path.pm
URL:
http://svn.apache.org/viewvc/openejb/site/trunk/lib/path.pm?rev=1362733&r1=1362732&r2=1362733&view=diff
==============================================================================
--- openejb/site/trunk/lib/path.pm (original)
+++ openejb/site/trunk/lib/path.pm Wed Jul 18 01:00:09 2012
@@ -28,6 +28,7 @@ our @patterns = (
[qr!sitemap\.html$!, sitemap => { headers => { title => "Sitemap" }} ],
[qr!dev/index\.html$!, sitemap => { headers => { title => "Project
Resources" }} ],
+ [qr!dev/jira/index\.html$!, sitemap => { headers => { title => "Project
Resources" }} ],
[qr!sitemap.xml$!, sitemapxml => { headers => { }} ],
Modified: openejb/site/trunk/lib/view.pm
URL:
http://svn.apache.org/viewvc/openejb/site/trunk/lib/view.pm?rev=1362733&r1=1362732&r2=1362733&view=diff
==============================================================================
--- openejb/site/trunk/lib/view.pm (original)
+++ openejb/site/trunk/lib/view.pm Wed Jul 18 01:00:09 2012
@@ -110,7 +110,11 @@ sub swizzle_jira {
my %args = @_;
my $filepath = "content$args{path}";
+ read_text_file($filepath, \%args);
+
$args{content} = `java -jar lib/swizzle-jirareport-1.6.2-SNAPSHOT-dep.jar
$filepath`;
+ print $args{content};
+ $args{content} =~ s,Title:.*\n,,;
$args{path} =~ s/\.mdtext$/\.html/;
$args{base} = _base($args{path});
@@ -202,7 +206,7 @@ sub sitemap {
opendir my $dh, $dir or die "Can't opendir $dir: $!\n";
my %data;
for (map "$dir/$_", grep $_ ne "." && $_ ne ".." && $_ ne ".svn", readdir
$dh) {
- if (-f and /\.mdtext$/) {
+ if (-f and /\.(mdtext|swjira)$/) {
my $file = $_;
$file =~ s/^content//;
no warnings 'once';
@@ -211,7 +215,7 @@ sub sitemap {
next unless $file =~ $re;
my $s = view->can($method) or die "Can't locate method:
$method\n";
my ($content, $ext, $vars) = $s->(path => $file, %$args);
- $file =~ s/\.mdtext$/.$ext/;
+ $file =~ s/\.(mdtext|swjira)$/.$ext/;
$data{$file} = $vars;
last;
}