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

[ZA] Missing tabs on MP profiles #2554

Open
chrismytton opened this issue Feb 12, 2019 · 5 comments
Open

[ZA] Missing tabs on MP profiles #2554

chrismytton opened this issue Feb 12, 2019 · 5 comments

Comments

@chrismytton
Copy link
Member

Request from Megan:

Some of the MP profiles have missing tabs, e.g.

https://www.pa.org.za/person/mosebenzi-joseph-zwane/ - no Register of Interests
https://www.pa.org.za/person/eddie-makue/ - no Appearances or Register of Interests

I am busy doing a quality check and if this is something that has to be fixed per profile, let me know and I can plan my checks and send a group rather than one by one.

Looking at the code it appears that the tabs are only shown when there is a register of interests or some appearances. So the question is do we want to just always show these tabs and then have a page that says "No appearances" (or whatever). This might make it clearer and more consistent for the user.

@chrismytton
Copy link
Member Author

This is the relevant bit of code

{% if object.interests_register_entries.exists %}
<li class="ui-state-default">
<a class="ui-tabs-anchor" href="#membersinterests">Register of Interests</a>
</li>
{% endif %}
{% if hansard.count or question.count or committee.count %}
<li class="ui-state-default">
<a class="ui-tabs-anchor" href="#appearances">Appearances</a>
</li>
{% endif %}

@chrismytton
Copy link
Member Author

Looks to me like the tabs are only appearing when they're supposed to, which is contrary to what Megan thought. Have emailed her to ask for clarification.

@chrismytton
Copy link
Member Author

Response from Megan:

Did a search on PMG and these are all Makue’s appearances - https://pmg.org.za/search/?filter%5Btype%5D=committee_meeting&q=Makue

So it looks like there are committee and Hansard appearances for him, but they're not showing up on pa.org.za for some reason.

I wonder if this is related to #2458? It seems that something in za-hansard isn't matching things properly somewhere along the chain.

@chrismytton
Copy link
Member Author

I think for Mosebenzi Joseph Zwane we genuinely don't have any register of interests for him. There's no mention of him in the pombola/south_africa/data/members-interests directory that I can see.

@chrismytton
Copy link
Member Author

I think this issue is related to the missing plenary appearances #2458.

@chrismytton chrismytton removed their assignment Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant