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

Refresh cds-service cache when a new PlanDefinition is posted. #481

Closed
JPercival opened this issue Mar 4, 2022 · 1 comment
Closed

Refresh cds-service cache when a new PlanDefinition is posted. #481

JPercival opened this issue Mar 4, 2022 · 1 comment
Labels
cds-hooks Cds-hooks implementation enhancement New feature or request

Comments

@JPercival
Copy link
Contributor

The cqf-ruler loads and caches a list of cds hooks services the first time the cds-services endpoint is invoked. That lives for the life of the cqf-ruler instance and the instance needs to be restarted in order to pick up new services.

What we need to do is invalidate that cache whenever a new cds-hooks PlanDefinition is posted to the ruler. There's an example of doing that for ELM here:

https://github.com/DBCG/cqf-ruler/blob/master/plugin/cql/src/main/java/org/opencds/cqf/ruler/cql/ElmCacheResourceChangeListener.java

Need to do the same thing, just for PlanDefs.

@JPercival JPercival added enhancement New feature or request 2 cds-hooks Cds-hooks implementation labels Mar 4, 2022
c-schuler added a commit that referenced this issue Jul 20, 2022
…itions are inserted/updated/deleted ... added test
JPercival pushed a commit that referenced this issue Jul 21, 2022
* #481: added interceptor to check update services cache when PlanDefinitions are inserted/updated/deleted ... added test

* #481: added CDS Hooks services cache as a resource listener ... updated tests

* Fixing tests
@c-schuler
Copy link
Contributor

Resolved by #562

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cds-hooks Cds-hooks implementation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants