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 ecef4797 Fix up mismatched names
ecef4797 is described below
commit ecef479724e4bf77a3932bc75f7359d31905f389
Author: Sebb <[email protected]>
AuthorDate: Mon May 22 21:10:34 2023 +0100
Fix up mismatched names
---
lib/whimsy/asf/orgchart.rb | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/whimsy/asf/orgchart.rb b/lib/whimsy/asf/orgchart.rb
index 035a65b9..c1a36dac 100644
--- a/lib/whimsy/asf/orgchart.rb
+++ b/lib/whimsy/asf/orgchart.rb
@@ -12,6 +12,13 @@ module ASF # :nodoc:
@@duties = {}
@@desc = {}
+ # the file names used to be the same as the role ids, however
+ # these were changed in order to fix public links using the shorter names
+ @@aliases = {
+ 'vp-marketing' => 'vp-marketingandpublicity',
+ 'infra-admin' => 'infrastructureadministrator',
+ }
+
# parse any changed YAML role files.
def self.load
@@source ||= ASF::SVN['personnel-duties']
@@ -21,6 +28,7 @@ module ASF # :nodoc:
data = Hash[*File.read(file).split(/^\[(.*)\]\n/)[1..-1].map(&:strip)]
next unless data['info']
data['info'] = YAML.safe_load(data['info'])
+ name = @@aliases[name] || name
# fix up data items available from elsewhere
if name =~ %r{^vp-(.+)$} or name =~ %r{^(security)$}
post = $1