GSA-TTS/all_sorns

Agency filtering broken

Closed this issue · 2 comments

What is broken?

Screen Shot 2021-04-21 at 12 12 37 PM

Screen Shot 2021-04-21 at 12 13 48 PM

It appears a duplicate agency got into the list. The very well known Federal government agency called Saint Lawrence Seaway Development Corporation.

Screen Shot 2021-04-21 at 12 14 32 PM

That is probably causing the error, but the error logging doesn't seem totally related.

First guess at fixing

  • Delete the duplicate agency
  • Investigate why a dupe was created

I'm having some trouble reproducing this. Here is the behavior I'm currently seeing locally and in both hosted environments:

  • Search 'land', see results: local (202), all-sorns (206), all_sorns (196)
  • On lefthand side under 'agencies', search 'usda' and click the box for 'Department of Agriculture'.
  • See results seem to be filtered: local (21), all-sorns (22), all_sorns (20). The agency for each displayed result does include Department of Agriculture

Without looking into more I'm not sure why these numbers are different, but filtering seems to work as I'd expect.

Ooh, got it! Here are steps to reproduce:

  • Search 'elections', see results: local (287), all-sorns (293), all_sorns (284)
  • On lefthand side under 'agencies', search 'eac' and click the box for 'Election Assistance Commission'
  • See results not filter. This message in console after filtering:

Screen Shot 2021-10-29 at 3 05 44 PM