Providers excluded when more than 50 exist

Bug #1895551 reported by Tiffany Little
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Evergreen
New
Undecided
Unassigned

Bug Description

Seen in production on 3.4.1.

In Load MARC Order Records screen, if there are more than 50 providers across the consortium that start with a particular letter, providers can be excluded from the combobox search.

Example: Across PINES we have 74 providers that start with "B". One of my libraries tried searching for one of their BT providers, but because that comes alphabetically later in the list of 74, it was excluded from the top 50 cutoff even though her org has <50 "B" providers. Therefore she was unable to select her provider in the Provider combobox; it just comes up with an error that says it's an invalid entry and the box stays blank.

So it looks like it's limiting to the top 50 providers starting with a particular letter, *then* doing the org permission check. So if you fall below the 50 mark on the list, you can't see your provider(s) starting with that letter. It should either do the org permission check first and then limit those to the top 50, or just remove the limit on results.

I also see the same issue on the "Create Purchase Order" screen/popup, and the PO Search when you search by Provider.

I don't have access to the Angular Acq Search port right now, so I don't know if this is also present in that work.

Tags: acq
Revision history for this message
Chris Sharp (chrissharp123) wrote :

SQL generated by the Dojo acq search:

SELECT "acqpro".id,
        oils_i18n_xlate('acq.provider', 'acqpro', 'name', 'id', "acqpro".id::TEXT, 'en') AS "name",
        "acqpro".owner,
        "acqpro".currency_type,
        "acqpro".code, "acqpro".holding_tag,
        "acqpro".san, "acqpro".edi_default,
        "acqpro".active, "acqpro".prepayment_required,
        "acqpro".url,
        "acqpro".email,
        "acqpro".phone,
        "acqpro".fax_phone,
        "acqpro".default_claim_policy,
        "acqpro".default_copy_count
FROM acq.provider AS "acqpro"
WHERE "acqpro".code ilike 'b%'
ORDER BY code ASC
LIMIT 50;

Revision history for this message
Galen Charlton (gmc) wrote :

This issue would affect the Angular acquisitions interface as well, along with all Angular comboboxes that do a default IDL class search. There is one difference: the limit is 100 rather than 50.

Revision history for this message
Tiffany Little (tslittle) wrote :

Bumping up the limit to 100 is a good step, but we're already at 74 "B" providers. We could easily surpass the 100 cap if we just added one or two more libraries.

Would it be possible to do a perm check, and then limit the results to 100? I can't really see one library surpassing 100 providers starting with the same letter.

Revision history for this message
Tiffany Little (tslittle) wrote :

I just found bug 1554217 which looks to be the same issue, so marking this bug as a dupe of that one.

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.