Skip to content

Switch patron lookup tool to use rosetta API #147

Description

@spelkey-ucd

Background

Campus is retiring the old IAM API in favor of a new one, Rosetta. We're migrating this application over. As part of that, a new search component (rosetta-person-search) and a new RosettaModel now exist on the rosetta branch, meant to replace the old PersonModel-based lookups across the app.

Task

ucdlib-iam-page-patron-lookup.js currently has its own duplicated search form and results UI, built directly against PersonModel, rather than using the shared ucdlib-iam-search component. Update this page to use rosetta-person-search and RosettaModel instead.

Once that's in place, clean up anything in the page that's no longer needed as a result - e.g. properties, methods, docstrings, template functions. It should be a fair amount, so please be thorough.

Secrets

You can find the credentials for the API in Google Cloud. You will need to set the ROSETTA_API_CLIENT_ID and ROSETTA_API_CLIENT_SECRET env variables.

Branch

Work off rosetta (origin/rosetta) — that's where the new component and model live. They aren't on main yet.

Acceptance criteria

  • Patron search (all existing search methods) works end-to-end through the new component
  • Selecting a person still navigates to their detail view correctly
  • Direct navigation to a patron's detail page (by URL) still works
  • No remaining references to PersonModel in this file
  • Manually tested in the browser using a variety of people.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions