Author: sebb
Date: Sat Oct 26 09:22:41 2024
New Revision: 1921561

URL: http://svn.apache.org/viewvc?rev=1921561&view=rev
Log:
Prevent new tasks from being created

Modified:
    comdev/helpwanted.apache.org/site/admin/index.html
    comdev/helpwanted.apache.org/site/admin/newtask.lua

Modified: comdev/helpwanted.apache.org/site/admin/index.html
URL: 
http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/admin/index.html?rev=1921561&r1=1921560&r2=1921561&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/admin/index.html (original)
+++ comdev/helpwanted.apache.org/site/admin/index.html Sat Oct 26 09:22:41 2024
@@ -16,6 +16,8 @@
 </div>
 
 <div id="pickerparent">
+    <h1 align="center">Sorry, cannot create new tasks</h1>
+<!--
     <form action="newtask.lua" method="post">
         <h3>Create a new task:</h3>
         <b>Project:</b>
@@ -53,10 +55,13 @@
         <b>Collaborative?: </b> <input type="checkbox" name="collaboration" 
value="yes"/><br/>
         <h4>Tags:</h4>
         <b style='color: #37B;'>No tags: </b> <input type="radio" name="tag" 
value=""/>Select this for no specific tags<br/>
+    -->
         <!--<b style='color: #37B;'>GSoC 2018?: </b> <input type="radio" 
name="tag" value="gsoc"/>Check this box for GSoC tasks<br/><br/><br/>-->
+    <!--
         <input type="submit" value="Save task"/>
     </form>
-</div>
+    -->
+    </div>
 
 <div id="hwitems" class="hwitems">
     

Modified: comdev/helpwanted.apache.org/site/admin/newtask.lua
URL: 
http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/admin/newtask.lua?rev=1921561&r1=1921560&r2=1921561&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/admin/newtask.lua (original)
+++ comdev/helpwanted.apache.org/site/admin/newtask.lua Sat Oct 26 09:22:41 2024
@@ -35,27 +35,28 @@ function handle(r)
     local collab = (post.collaboration and post.collaboration == 'yes') and 
true or false
     local tag = r:escape_html(post.tag or "")
     
-    if project and #project > 2 and typ and title and lingos and difficulty 
and desc then
-        elastic.index(r, nil, 'item', JSON.encode{
-            project = project,
-            ['type'] = typ,
-            languages = lingos,
-            title = title,
-            difficulty = difficulty,
-            description = desc,
-            url = url,
-            curl = curl,
-            tag = tag,
-            collaboration = collab,
-            created = os.time(),
-            author = r.user or "unknown",
-            estimate = 0,
-            timeout = 0,
-        }
-            )
-        r:puts("Task saved!")
-    else
-        r:puts("Something was missing, go back!")
-    end
+    -- if project and #project > 2 and typ and title and lingos and difficulty 
and desc then
+    --     elastic.index(r, nil, 'item', JSON.encode{
+    --         project = project,
+    --         ['type'] = typ,
+    --         languages = lingos,
+    --         title = title,
+    --         difficulty = difficulty,
+    --         description = desc,
+    --         url = url,
+    --         curl = curl,
+    --         tag = tag,
+    --         collaboration = collab,
+    --         created = os.time(),
+    --         author = r.user or "unknown",
+    --         estimate = 0,
+    --         timeout = 0,
+    --     }
+    --         )
+    --     r:puts("Task saved!")
+    -- else
+    --     r:puts("Something was missing, go back!")
+    -- end
+    r:puts("Sorry, new tasks can no longer be created")
     return apache2.OK
 end


Reply via email to