Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop creating ServiceProviderRequest records with unused fields #10626

Merged
merged 1 commit into from
May 16, 2024

Conversation

jmhooper
Copy link
Member

Previous commits retired the following fields on the ServiceProviderRequest model:

  • ial
  • aal
  • biometric_comparison_required

These fields were left behind because removing them leads to issues during deploys when old and new versions of the code are running at the same time.

The ServiceProviderRequest model has default values for these fields. This means that we can stop creating records with these fields and the defaults will be used. However, we use the hash that is written to redis is converted into keyword args to create ServiceProviderRequests. This means that if we remove the keys for these fields we will encounter a ArgumentError when we try to create a record on a new host with a hash written by an old host. This commit leaves them behind and a follow-up will be needed to remove them.

Previous commits retired the following fields on the `ServiceProviderRequest` model:

- ial
- aal
- biometric_comparison_required

These fields were left behind because removing them leads to issues during deploys when old and new versions of the code are running.

The `ServiceProviderRequest` model has default values for these fields. This means that we can stop creating records with these fields. However, we use the hash that is written to redis to create `ServiceProviderRequest`s. This means that if we remove the keyword arguments for these fields we will encounter a `ArgumentError` when we try to create a record on a new host with a hash written by an old host.

[skip changelog]
@jmhooper
Copy link
Member Author

The code that reads from biometric_comparison_required was removed in #10625. That has not been deployed yet. We'll need to wait until that is in production before this can be safely merged.

@jmhooper jmhooper marked this pull request as ready for review May 15, 2024 14:37
@jmhooper jmhooper merged commit 0de854b into main May 16, 2024
2 checks passed
@jmhooper jmhooper deleted the jmhooper-stop-writing-sp-sesison-values branch May 16, 2024 19:04
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.

None yet

2 participants