[whimsy] branch master updated: treat 500 status as errors
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 bd98720 treat 500 status as errors bd98720 is described below commit bd98720b9e10e298fee51bc25016da924f56b316 Author: Sam RubyAuthorDate: Mon Apr 9 11:55:11 2018 -0400 treat 500 status as errors --- tools/site-scan.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/site-scan.rb b/tools/site-scan.rb index 842fb64..f2d1da6 100755 --- a/tools/site-scan.rb +++ b/tools/site-scan.rb @@ -50,7 +50,7 @@ def parse(id, site, name) uri, response, status = $cache.get(site.to_s) $stderr.puts "#{id} #{uri} #{status}" - return data if response.respond_to? :code and response.code == '404' + return data if response.respond_to? :code and response.code =~ /^[45]/ doc = Nokogiri::HTML(response) data[:uri] = uri.to_s -- To stop receiving notification emails like this one, please contact ru...@apache.org.
[whimsy] branch master updated: Point to status.a.o
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 16e9229 Point to status.a.o 16e9229 is described below commit 16e92293047ca376dee6a6f4075193129c18612b Author: SebbAuthorDate: Mon Apr 9 10:00:34 2018 +0100 Point to status.a.o --- www/roster/views/errors.html.rb | 4 1 file changed, 4 insertions(+) diff --git a/www/roster/views/errors.html.rb b/www/roster/views/errors.html.rb index 51dbdff..cf5e9a2 100644 --- a/www/roster/views/errors.html.rb +++ b/www/roster/views/errors.html.rb @@ -29,6 +29,10 @@ _html do _ 'ASF Members may also review access protected: ' _a '/members/log/', href: '/members/log/' end + _p do +_ 'Also please check for ASF system errors at: ' +_a 'status.apache.org', href: 'http://status.apache.org/' + end end end end -- To stop receiving notification emails like this one, please contact s...@apache.org.
[whimsy] branch master updated: recover if there is no given name
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 ce7ffc5 recover if there is no given name ce7ffc5 is described below commit ce7ffc56cc0bbefc441ae461455868c447cf4452 Author: Sam RubyAuthorDate: Mon Apr 9 05:43:32 2018 -0400 recover if there is no given name --- www/roster/models/committer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/roster/models/committer.rb b/www/roster/models/committer.rb index 34c2134..c8029ac 100644 --- a/www/roster/models/committer.rb +++ b/www/roster/models/committer.rb @@ -32,7 +32,7 @@ class Committer name[:ldap] = person.attrs['cn'].first.force_encoding('utf-8') end -unless person.attrs['givenName'].empty? +unless (person.attrs['givenName'] || []).empty? name[:given_name] = person.attrs['givenName'].first.force_encoding('utf-8') end -- To stop receiving notification emails like this one, please contact ru...@apache.org.
[whimsy] branch master updated: tweak add discussion item:
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 1641959 tweak add discussion item: 1641959 is described below commit 16419598673cfc2a474eff1bc4452283fb54d601 Author: Sam RubyAuthorDate: Mon Apr 9 08:49:03 2018 -0400 tweak add discussion item: * disable submit until title and text is present * change label for text box to simply text --- www/board/agenda/views/buttons/post.js.rb | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/www/board/agenda/views/buttons/post.js.rb b/www/board/agenda/views/buttons/post.js.rb index c14fcbc..b53abe3 100644 --- a/www/board/agenda/views/buttons/post.js.rb +++ b/www/board/agenda/views/buttons/post.js.rb @@ -328,7 +328,7 @@ class Post < Vue when 'edit item' @header = 'Edit Discussion Item' - @label = 'discussion item' + @label = 'text' @message = "Edit #{@@item.title} Discussion Item" when 'edit report' @@ -348,17 +348,17 @@ class Post < Vue when 'post item', 'Discussion Item' @header = 'Add Discussion Item' - @label = 'discussion item' + @label = 'text' @message = "Add Discussion Item" when 'post items' @header = 'Post Discussion Items' - @label = 'items' + @label = 'text' @message = "Post Discussion Items" when 'edit items' @header = 'Edit Discussion Items' - @label = 'items' + @label = 'text' @message = "Edit Discussion Items" end @@ -482,7 +482,7 @@ class Post < Vue def ready() return false if @disabled -if @header == 'Add Resolution' +if @header == 'Add Resolution' or @header == 'Add Discussion Item' return @report != '' && @title != '' else return @report != @@item.text && @message != '' -- To stop receiving notification emails like this one, please contact ru...@apache.org.