You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2021/07/30 13:50:44 UTC

[whimsy] branch master updated: Attic issues don't apply to non-PMC

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new a75728a  Attic issues don't apply to non-PMC
a75728a is described below

commit a75728ac79b2ce7681bb0db6e8b629a257e442f3
Author: Sebb <se...@apache.org>
AuthorDate: Fri Jul 30 14:50:36 2021 +0100

    Attic issues don't apply to non-PMC
---
 www/roster/views/nonpmc/main.js.rb | 19 +------------------
 1 file changed, 1 insertion(+), 18 deletions(-)

diff --git a/www/roster/views/nonpmc/main.js.rb b/www/roster/views/nonpmc/main.js.rb
index efedbe0..ceaaa9b 100644
--- a/www/roster/views/nonpmc/main.js.rb
+++ b/www/roster/views/nonpmc/main.js.rb
@@ -4,7 +4,7 @@
 
 class NonPMC < Vue
   def initialize
-    @attic = nil
+
   end
 
   def render
@@ -202,22 +202,5 @@ class NonPMC < Vue
 
     @nonpmc.refresh = proc { Vue.forceUpdate() }
 
-    if @attic == nil and not nonpmc.established and defined? fetch
-      @attic = []
-
-      Polyfill.require(%w(Promise fetch)) do
-        fetch('attic/issues.json', credentials: 'include').then {|response|
-          if response.status == 200
-            response.json().then do |json|
-              @attic = json
-            end
-          else
-            console.log "Attic JIRA #{response.status} #{response.statusText}"
-          end
-        }.catch {|error|
-          console.log "Attic JIRA #{error}"
-        }
-      end
-    end
   end
 end