From 51e53cbe7c6d1f4c9d6aa5fc12ca32b3320437e2 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Mon, 29 Sep 2014 19:11:55 +1000 Subject: [PATCH] Replace inline display of community tickets with a JIRA search The inline display has been broken for a while since a JIRA upgrade. While I'm not an expert in Javascript, I believe that we can't get this working until https://jira.atlassian.com/browse/JRA-30371 is fixed. Well, we could with a server that proxied the JIRA REST API and manipulated headers, but that's too much work for this page. Instead, I've linked to JIRA searches to show open and fixed community tickets, and added some explanatory comments for would-be contributors. Fixes #209 --- contribute/community-tickets.md | 12 ++- resources/js/main.js | 140 -------------------------------- 2 files changed, 8 insertions(+), 144 deletions(-) diff --git a/contribute/community-tickets.md b/contribute/community-tickets.md index e458d3b6f..0d02e442b 100644 --- a/contribute/community-tickets.md +++ b/contribute/community-tickets.md @@ -3,8 +3,12 @@ layout: page-full-width title: Community tickets --- -Below is a selection of tickets from -[Scala's bug tracker](https://issues.scala-lang.org/) -that we think are a good starting point for you, as the community. +Tickets in the Scala bug tracker [marked with "community" label](https://issues.scala-lang.org/issues/?jql=labels%20%3D%20%22community%22%20and%20status%20%3D%20open%20ORDER%20BY%20createdDate%20desc) +are ripe for the picking! Thanks to everyone who has [pitched in already](https://issues.scala-lang.org/issues/?jql=labels%20%3D%20%22community%22%20and%20resolution%20%3D%20fixed%20ORDER%20BY%20createdDate%20desc). -
+Don't feel limited or compelled in your selection by this label, it is just intended as a starting +point. All tickets are fair game! + +As outlined in the [contributing guide](./guide.html), it is prudent to share your plans to work +on tickets with us on [scala-internals](https://groups.google.com/forum/#!forum/scala-internals), +especially for non-trivial changes. That way you can get advice about how to attack the problem. diff --git a/resources/js/main.js b/resources/js/main.js index 105f075d0..d64285c2a 100755 --- a/resources/js/main.js +++ b/resources/js/main.js @@ -487,146 +487,6 @@ $(document).ready(function(){ }); -/************************** - * Community tickets feed * - **************************/ - -$(document).ready(function(){ - var $communityTicketsDiv = $('#communitytickets'); - - // Stop early if the element does not exist - if ($communityTicketsDiv.length == 0) - return; - - var MAX_TICKETS_PER_PAGE = 20; - - function escapeHTML(text) { - return text - .replace(/&/g, "&") - .replace(//g, ">") - .replace(/"/g, """) - .replace(/'/g, "'"); - } - - function truncateWords(text, words) { - return text.split(" ").splice(0, words).join(" "); - } - - function doPopulateTicketsPane(data) { - var pageCount = Math.ceil(data.total / data.maxResults); - var currentPage = Math.floor(data.startAt / data.maxResults) + 1; - - $("#communitytickets").empty(); - - var pagerList = $('