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

Fix non-unique request resource ids #429

Merged
merged 5 commits into from
Feb 28, 2024

Conversation

barhodes
Copy link
Contributor

If a PlanDefinition has multiple actions that use the same AcitivtyDefinition the resulting id's would not be unique within the bundle returned from $apply.

This fix prefixes the id of the request resource with the id from the action, if present. This allows for multiple resources to be generated by the same ActivityDefinition from different actions while still having a unique id within the response bundle.

@barhodes barhodes added bug Something isn't working CDS All issues related to the CDS project labels Feb 20, 2024
Copy link

github-actions bot commented Feb 20, 2024

Formatting check succeeded!

Copy link

codecov bot commented Feb 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.95%. Comparing base (c18f578) to head (c2c5daa).

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #429      +/-   ##
============================================
+ Coverage     53.92%   53.95%   +0.02%     
- Complexity     2163     2165       +2     
============================================
  Files           280      280              
  Lines         11923    11928       +5     
  Branches       1633     1634       +1     
============================================
+ Hits           6430     6436       +6     
  Misses         4863     4863              
+ Partials        630      629       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JPercival JPercival enabled auto-merge (squash) February 28, 2024 16:35
@JPercival JPercival merged commit 5291c5e into master Feb 28, 2024
7 checks passed
@JPercival JPercival deleted the fix-non-unique-request-resources branch February 28, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CDS All issues related to the CDS project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants