whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: add 206 partial response
Date Thu, 08 Aug 2019 17:22:53 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys 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 b2b797e  add 206 partial response
b2b797e is described below

commit b2b797e86cca1d405fbe988ede7df657f2485a80
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Thu Aug 8 11:59:31 2019 -0400

    add 206 partial response
    
    for now, always return 206 to allow testing
---
 www/board/agenda/routes.rb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/www/board/agenda/routes.rb b/www/board/agenda/routes.rb
index 987c3fc..99d6532 100755
--- a/www/board/agenda/routes.rb
+++ b/www/board/agenda/routes.rb
@@ -353,10 +353,13 @@ get %r{/(\d\d\d\d-\d\d-\d\d).json} do |date|
       # filter list for non-PMC chairs and non-officers
       user = env.respond_to?(:user) && ASF::Person.find(env.user)
       unless !user or user.asf_member? or ASF.pmc_chairs.include? user
+        status 206 # Partial Content
         committees = user.committees.map(&:display_name)
         agenda = agenda.select {|item| committees.include? item['title']}
       end
 
+      # force status 206 for testing purposes
+      status 206 # Partial Content
       agenda
     end
   ensure
@@ -448,6 +451,7 @@ get '/json/historical-comments' do
   comments = HistoricalComments.comments
 
   unless !user or user.asf_member? or ASF.pmc_chairs.include? user
+    status 206 # Partial Content
     committees = user.committees.map(&:display_name)
     comments = comments.select do |project, list|
       committees.include? project


Mime
View raw message