This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain how this fixes the issue? and if I were to throw an error in the authz package do we need to add it here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method
isHttpError
in thehttp-errors
package that is being used in the routing package is not compatible with webpack. Therefore thisexternal
setting does not use webpack to package the routing package. It use the routing package as is. This setting is defined here.RBAC tests was run, and they ran successfully.
https://github.com/awslabs/fhir-works-on-aws-deployment/blob/78db6f67101ee6f87365631c33ad88c3da0ef934/integration-tests/rbac-permission.test.ts
These tests involved the authZ package throwing unauthorized errors.
Manually testing creating a Patient as an auditor gives this 403 error, which is expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What makes a package "not compatible" with webpack? Just trying to understand when we need to add packages to this section
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Talked offline -- it is hard to determine if a package is compatible with webpack or no. Having integration tests is our mechanism to prevent these failures