add affiliates filter for people tab (for non-osi)

Bug #669523 reported by Jim B. Glenn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
Medium
JimPGlenn

Bug Description

before the update to people tab, non-osi customers had tabs for staff, affiliates, and all karl.

Tres wrote a groups based filter which is currently being used for the staff tab.
All karl works.

But we need a filter for affiliates. The "groups based filters" is not useable currently since KARL affiliates do not have a group of Karl Affiliates (except on OSI).

The way we did this before the people tab updates, was to do a query for not = group.KarlStaff

Tags: r3.50
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Tres sent a note saying he was working on it:

- - I couldn't get to any old database which would have allowed me to
 look directly at the old affiliates reports. I didn't want to mess
 with the config files to try to work around that problem, either.

- - I just finished checking, and there is indeed no way the report could
 have been finding "not KarlStaff" people via a non-postprocessed
 catalog query: the indexes we are using don't support "not" queries,
 period.

- - I have an uncommitted checkin which gets members added via accepted
 invitations to get the 'groups.KarlAffiliate' group added. I checked
 the other points at which users get added: none of them need
 updating.

All that remains is an evolve step, I think. BTW, is there a Launchpad
issue for the feature?

Changed in karl3:
assignee: nobody → Tres Seaver (tseaver)
importance: Undecided → Medium
milestone: none → m50
status: New → In Progress
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Jim sent over some Apache log files. In a 2 day period, Oxfam clicked on /people/affiliates 147 times. I think that's enough to answer the question of whether it was used.

Revision history for this message
Tres Seaver (tseaver) wrote :

Jim reports that the old implementation was configured as::

   <report id="affiliates" title="Affiliates">
       <query>{'is_staff': False}</query>
       <columns ids="name organization location email"/>
    </report>

which is much easier to emulate than a "not" query.

Revision history for this message
Tres Seaver (tseaver) wrote :

I have added a new 'is_staff' report filter object, and made it
addable in a report. Setting the 'include_staff' value to false causes
the report to include only affiliates.

Changed in karl3:
status: In Progress → Fix Committed
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Sending to JimP to chat with JimB about who gets this into production for Oxfam.

Changed in karl3:
assignee: Tres Seaver (tseaver) → JimPGlenn (jpglenn09)
Revision history for this message
JimPGlenn (jpglenn09) wrote :

fixed

Changed in karl3:
status: Fix Committed → Fix Released
JimPGlenn (jpglenn09)
tags: added: r3.50
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.