Skip to content

Conversation

@nhaydel
Copy link
Collaborator

@nhaydel nhaydel commented Jan 1, 2026

This PR is apart of the membership levers project.

We want to allow users who don't know their api key or don't have a valid api key to still pull rules from the library and update the cache. This PR just updates the cache populator to allow fetching rules only as well as handle any failed requests to the cdisc library api.

The expected outcomes are:

  • Running the update_cache function without an api key should result in a log message saying only the rules will be updated. Only the save_rules_locally function should be run.

Note

Since the ability to request rules from the production library api without an api key has not been released you will see 401 responses from the rules endpoint as well. This should be resolved once that functionality is released. If you want to ensure the rules are updated, you can use the dev environment.

  • Running the update_cache function with an invalid api key should result in all failed requests being logged and the cache should not get updated.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Allow update-cache to update from unauthenticated endpoints without an api key

3 participants