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 1c609db6 Merge loops and add resolution check
1c609db6 is described below
commit 1c609db6863da642a53584f76844297aaabaa22c
Author: Sebb <[email protected]>
AuthorDate: Wed Aug 30 23:05:28 2023 +0100
Merge loops and add resolution check
---
www/roster/public_podlings.rb | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/www/roster/public_podlings.rb b/www/roster/public_podlings.rb
index a2cf8d7f..955b1031 100644
--- a/www/roster/public_podlings.rb
+++ b/www/roster/public_podlings.rb
@@ -104,14 +104,15 @@ public_json_output(
)
if ARGV.length == 2
- podh = ASF::Podling.list.map {|podling| [podling.name, podling.as_hash]}.to_h
- podh.each do |p| # drop empty aliases
- p[1].delete(:resourceAliases) if p[1][:resourceAliases].length == 0
- p[1].delete(:duration) # This changes every day ...
- end
status_counts = Hash.new(0)
- podh.each do |_, v|
+ podh = ASF::Podling.list.map {|podling| [podling.name, podling.as_hash]}.to_h
+ podh.each do |p,v| # drop empty aliases
+ v.delete(:resourceAliases) if v[:resourceAliases].length == 0
+ v.delete(:duration) # This changes every day ...
status_counts[v[:status]] += 1
+ if v[:status] == 'graduated' and not (v[:resolutionTLP] or
v[:resolutionURL])
+ Wunderbar.warn "Graduated Podling #{p} but no valid resolution"
+ end
end
public_json_output_file({
last_updated: mtime,