Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cabinet Ministers missing start date #157

Closed
leowmjw opened this issue May 6, 2016 · 1 comment
Closed

Cabinet Ministers missing start date #157

leowmjw opened this issue May 6, 2016 · 1 comment
Labels

Comments

@leowmjw
Copy link
Contributor

leowmjw commented May 6, 2016

The following Cabinet Ministers are missing their start date. Membership ID included for your convenience.

[
  {
    "mid": "55b7534cc4705304262e17c3",
    "myname": "Ismail Bin Abd. Muttalib",
    "myportfolio": "Deputy Minister of Human Resources",
    "myrange": [
      null,
      null
    ]
  },
  {
    "mid": "55b72d2d7070042c250af543",
    "myname": "Joseph Entulu Belaun",
    "myportfolio": "Ministers in the Prime Minister's Department",
    "myrange": [
      null,
      null
    ]
  }
]

AQL

FOR p IN posts
    FILTER LIKE(LOWER(p.data.label),'%minister%')
    FOR m IN memberships
        FILTER m.data.post.id == p._key
        FILTER m.data.start_date == null
        SORT p.data.label
        RETURN { 
            mid: m._key,
            myname: m.data.person.name,
            myportfolio: p.data.label,
            myrange: [ m.data.start_date, m.data.end_date ]
        }
@kaerumy
Copy link
Member

kaerumy commented Jul 1, 2016

Data issue. Filed here Sinar/popit-scripts#4

Please file data / information issues there in future. Thank you!

@kaerumy kaerumy closed this as completed Jul 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants