hubzero / hubzero-cms

Platform for Scientific Collaboration
https://hubzero.org
GNU General Public License v2.0
47 stars 57 forks source link

[CMKC] Filter out Members that is not active #1714

Closed jessewoo closed 4 months ago

jessewoo commented 4 months ago

Source JIRA card(s) and hubzero ticket(s)

https://cmkc.usp.org/support/ticket/36 https://sdx-sdsc.atlassian.net/browse/USP-168

Brief summary of the issue

Client was able to see all "members", which includes members that are 'incomplete (usp)'. This is not the right count, where it should only be members that are approved.

image image

Brief summary of the fix

Looked at the file - /core/components/com_members/site/controllers/profiles.php that generates the members data rows.

Then looked at the database table of jos_users. Below shows all the invalid members that we need to filter out, looking at what is common, there is sendEmail and email column. image

Back at the file, added in some where filters to the entries.

The options of sendEmail are the following:

With the solution, members will only 585, which is the right count of active members: image

In general, this solution would be ok with all clients / hubs.

Brief summary of your testing

Tried the solution on stage.cmkc.hubzero.org/members and it shows the right count of members.

Do the change needs to be hotfixed to any production hubs before a normal core rollout

Yes, it needs to be released because client needs it for production. Client will showcase site to conference. Sooner the better, can we cherry pick?

Double check someone is assigned to review the ticket

Yes - Nick and David