[
https://issues.apache.org/jira/browse/WHIMSY-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14974225#comment-14974225
]
Sam Ruby commented on WHIMSY-29:
--------------------------------
Here's the relevant line of code:
{code:title=lib/whimsy/asf/committee.rb|borderStyle=solid}
@nonpmcs = head.sub(/.*?also has/m,'').
scan(/^\s+(\w.*?)\s\s+.*<\w+@apache\.org>/).flatten.uniq.
map {|name| find(name)}
{code}
What it does is (1) ignore text before the words "also has". (2) Looks for
lines matching the given pattern. (3) Extracts the PMC name (the first
parenthetical in the regexp), (4) flattens the array, (5) removes duplicates,
and then (6) finds the associated Committee.
> public_committee_info.rb cannot handle missing LA chair
> -------------------------------------------------------
>
> Key: WHIMSY-29
> URL: https://issues.apache.org/jira/browse/WHIMSY-29
> Project: Whimsy
> Issue Type: Bug
> Reporter: Sebb
>
> Legal Affairs now generates two entries:
> {code}
> "legalaffairs": {
> "display_name": "Legal Affairs",
> "site": "http://www.apache.org/legal/",
> "description": "Establishing and managing legal policies",
> "mail_list": "[email protected]",
> "established": "03/2007",
> "report": [
> "Every month"
> ],
> "chair": {
> },
> "roster": {
> (elided)
> },
> "pmc": true
> },
> {code}
> and
> {code}
> "legalaffairsopen": {
> "display_name": "Legal Affairs Open",
> "site": null,
> "description": null,
> "mail_list": "legal affairs open",
> "established": null,
> "report": [
> ],
> "chair": {
> "mjc": {
> "name": "Security Team Mark J. Cox"
> }
> },
> "roster": {
> },
> "pmc": false
> },
> {code}
> I've no idea where the second entry comes from.
> It looks like the chair is using a stale value - as well as the other obvious
> errors
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)