Skip to content

Services: Move filtering of provider suggestions to client, narrow scope of list#2708

Merged
kevinrobinson merged 6 commits into
masterfrom
patch/simplify-provider-names-autocomplete
Nov 8, 2019
Merged

Services: Move filtering of provider suggestions to client, narrow scope of list#2708
kevinrobinson merged 6 commits into
masterfrom
patch/simplify-provider-names-autocomplete

Conversation

@kevinrobinson
Copy link
Copy Markdown
Contributor

Who is this PR for?

educators

What problem does this PR fix?

The service UI has an old autocomplete, and this worked by querying the server on each keystroke, and filtering a list on the server. That meant unnecessary network chatter, sending user input in the query string (logged in some cases, exposed in some monitoring). There were bugs in the filtering code on the server, and it didn't scope the query to the student's school like it intended (which we wouldn't want anyway, given the complexity of roles).

What does this PR do?

Removes the server filtering, but adds scoping to providers for authorized students. Request the list up front when the UI component is mounted and removes other UI config.

Checklists

Which features or pages does this PR touch?

  • Student Profile

Does this PR use tests to help verify we can deploy these changes quickly and confidently?

  • Included specs for changes
  • Improved specs for existing code in need of better test coverage
  • Manual testing made more sense here

@kevinrobinson
Copy link
Copy Markdown
Contributor Author

selfie

@kevinrobinson kevinrobinson merged commit 4bc31dd into master Nov 8, 2019
@kevinrobinson kevinrobinson deleted the patch/simplify-provider-names-autocomplete branch November 8, 2019 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant