community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1812462 - in /comdev/helpwanted.apache.org/site/js: coffee/hw.coffee hw.js
Date Wed, 18 Oct 2017 07:41:06 GMT
Author: humbedooh
Date: Wed Oct 18 07:41:06 2017
New Revision: 1812462

URL: http://svn.apache.org/viewvc?rev=1812462&view=rev
Log:
add podlings

Modified:
    comdev/helpwanted.apache.org/site/js/coffee/hw.coffee
    comdev/helpwanted.apache.org/site/js/hw.js

Modified: comdev/helpwanted.apache.org/site/js/coffee/hw.coffee
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/js/coffee/hw.coffee?rev=1812462&r1=1812461&r2=1812462&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/js/coffee/hw.coffee (original)
+++ comdev/helpwanted.apache.org/site/js/coffee/hw.coffee Wed Oct 18 07:41:06 2017
@@ -75,7 +75,7 @@ diff_explanation = [
 ]
 
 # Languages (programming + spoken)
-langs = ['c', 'xml', 'c++', 'c-sharp', 'java', 'javascript', 'css', 'html', 'perl', 'ruby',
'lua', 'python', 'go', 'rust', 'erlang', 'swift', 'groovy', 'haskell', 'scala', 'php', 'pig',
'bash', 'tcl', 'jsp', 'svg']
+langs = ['c', 'xml', 'c++', 'c-sharp', 'objective-c', 'java', 'javascript', 'css', 'html',
'perl', 'ruby', 'lua', 'python', 'go', 'rust', 'erlang', 'swift', 'groovy', 'haskell', 'scala',
'php', 'pig', 'bash', 'tcl', 'jsp', 'svg']
 spoken_langs = ['english', 'french', 'german', 'spanish', 'russian', 'italian', 'japanese',
'chinese']
 website_langs = ['css','javascript','html']
 
@@ -277,10 +277,12 @@ reallyPopulate = (json, state) ->
     obj = get('project')
     
     # optgroup for spoken/written
-    optg = mk('optgroup', { label: (if state then 'Non-TLPs:' else 'Top Level Projects:')})
+    optg = mk('optgroup', { label: (if state then 'Podlings:' else 'Top Level Projects:')})
     app(obj, optg)
     
-    for group, data of (json.committees || json.groups)
+    for group, data of (json.committees || json.groups || json.podling)
+        if state == 'podlings' and data.status != "current"
+          continue
         pro.push(group)
         app(obj, mk('option', { value: group}, group ))
     if state
@@ -303,7 +305,7 @@ reallyPopulate = (json, state) ->
         app(obj, mk('option', {value: lang}, lang.replace(/^([a-z])/, (a) => a.toUpperCase())
))
         opt = document.createElement('option')
     if not state or state == 0
-        fetch('https://whimsy.apache.org/public/public_nonldap_groups.json', 'other', reallyPopulate)
+        fetch('https://whimsy.apache.org/public/public_podlings.json', 'podlings', reallyPopulate)
 
 populateAdminForm = () ->
     fetch('https://whimsy.apache.org/public/public_ldap_committees.json', false, reallyPopulate)
  

Modified: comdev/helpwanted.apache.org/site/js/hw.js
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/js/hw.js?rev=1812462&r1=1812461&r2=1812462&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/js/hw.js (original)
+++ comdev/helpwanted.apache.org/site/js/hw.js Wed Oct 18 07:41:06 2017
@@ -135,7 +135,7 @@ diff = ['Beginner', 'Journeyman', 'Inter
 
 diff_explanation = ['This is an easy task that anyone can get started on', 'This requires
a bit of knowledge of the project, but otherwise is an easy task', 'This requires a good knowledge
of the project', 'This requires a good knowledge of the project and good technical skills',
'This requires intimate knowledge of the project and excellent technical skills'];
 
-langs = ['c', 'xml', 'c++', 'c-sharp', 'objective-c', 'java', 'javascript', 'css', 'html',
'perl', 'ruby', 'lua', 'python', 'go', 'rust', 'erlang', 'swift', 'groovy', 'haskell', 'scala',
'php', 'pig','bash', 'tcl', 'jsp', 'svg'];
+langs = ['c', 'xml', 'c++', 'c-sharp', 'objective-c', 'java', 'javascript', 'css', 'html',
'perl', 'ruby', 'lua', 'python', 'go', 'rust', 'erlang', 'swift', 'groovy', 'haskell', 'scala',
'php', 'pig', 'bash', 'tcl', 'jsp', 'svg'];
 
 spoken_langs = ['english', 'french', 'german', 'spanish', 'russian', 'italian', 'japanese',
'chinese'];
 
@@ -440,12 +440,15 @@ reallyPopulate = function(json, state) {
   pro = [];
   obj = get('project');
   optg = mk('optgroup', {
-    label: (state ? 'Non-TLPs:' : 'Top Level Projects:')
+    label: (state ? 'Podlings:' : 'Top Level Projects:')
   });
   app(obj, optg);
-  ref = json.committees || json.groups;
+  ref = json.committees || json.groups || json.podling;
   for (group in ref) {
     data = ref[group];
+    if (state === 'podlings' && data.status !== "current") {
+      continue;
+    }
     pro.push(group);
     app(obj, mk('option', {
       value: group
@@ -482,7 +485,7 @@ reallyPopulate = function(json, state) {
     opt = document.createElement('option');
   }
   if (!state || state === 0) {
-    return fetch('https://whimsy.apache.org/public/public_nonldap_groups.json', 'other',
reallyPopulate);
+    return fetch('https://whimsy.apache.org/public/public_podlings.json', 'podlings', reallyPopulate);
   }
 };
 



Mime
View raw message