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

issue #4101 - call beforeX interceptor methods prior to checking if update is skippable #4105

Merged
merged 1 commit into from
Dec 12, 2022

Conversation

lmsurpre
Copy link
Member

@lmsurpre lmsurpre commented Nov 30, 2022

Previously, a skippable update (one that would not affect the contents of the resource being updated) would result in a success without invoking beforeUpdate or beforePatch interceptor methods.

For users of fhir-smart, this behavior is confusing because the user may not have write access to this resource type, but the server is "allowing" the write anyway (even though its really being optimized away).

Signed-off-by: Lee Surprenant [email protected]

Copy link
Collaborator

@PrasannaHegde1 PrasannaHegde1 left a comment

Choose a reason for hiding this comment

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

LGTM

Base automatically changed from issue-4101 to main December 9, 2022 14:15
…pdate is skippable

Previously, a skippable update (one that would not affect the contents of the resource being updated)
would result in a success without invoking beforeUpdate or beforePatch interceptor methods.

For users of fhir-smart, this behavior is confusing because the user may not have write access to this
resource type, but the server is "allowing" the write anyway (even though its being optimized away).

Signed-off-by: Lee Surprenant <[email protected]>
@lmsurpre lmsurpre merged commit f42e95e into main Dec 12, 2022
@lmsurpre lmsurpre deleted the issue-4101-b branch December 12, 2022 14:11
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.

2 participants