-
Notifications
You must be signed in to change notification settings - Fork 4k
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(appsync): appsync.HttpDataSourceProps
erroneously extends BaseDataSourceProps
#29689
fix(appsync): appsync.HttpDataSourceProps
erroneously extends BaseDataSourceProps
#29689
Conversation
… BaseDataSourceProps
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 pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request
. Additionally, if clarification is needed add Clarification Request
to a comment.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
appsync.HttpDataSourceProps
type
Exemption Request This PR is just fixing a type, so updating tests isn't appropriate. |
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.
This PR doesn't give me any reason to believe that the choice to only update on set of props wasn't intentional.
Given that it was a change made in 2020 and there are no linked issues on this PR, we need more context on why this change is necessary.
@TheRealAmazonKendra I've already given an explanation in the PR description. There's not really much to explain. The type currently extends It's needed because the types are currently wrong and therefore autocomplete, compilation, etc. is affected. |
Which props are present/missing that shouldn't be? Is there an open issue for this? Updating this will likely be a breaking change. |
You can look at the types yourself to see this. The only difference is that From what I found, there's not an open issue, hence I didn't link one to this PR. Such a tiny change that's obviously correct also shouldn't need an issue, hence I didn't create one -- there's nothing to discuss here, the type is just blatantly wrong and this PR fixes it. |
Please review the Pull Request section of our Contributing Guide. Your pull request should contain all the information we need to assess the change. From our contributing guide:
Adding properties can, in fact, be a breaking change. If we are adding a mandatory prop that is breaking. From the information provided here, I can't tell which props specifically are being removed/added and if the props you are removing/adding are required. Your explanation of this change should include that information. Also from our contributing guide:
In order to accept this change, we will need to have tests. This change would change the contract for this construct so it would require unit tests and integ tests. From the contributing guide regarding integ tests:
Lastly, as this is a fix, please note this section of the contributing guide regarding PR titles:
|
appsync.HttpDataSourceProps
typeappsync.HttpDataSourceProps
type extend BackedDataSourceProps
appsync.HttpDataSourceProps
type extend BackedDataSourceProps
appsync.HttpDataSourceProps
erroneously extends BaseDataSourceProps
I included these. The bug, cause, and solution are all in the PR description. Alternatives isn't applicable since there's only one possible sensible fix (the one implemented).
As I said in my previous message the ONLY difference is the ADDITION of the
This is changing a type. Not runtime code. What has this got to do with unit and integration tests?
Have updated the title to be clearer. |
@TheRealAmazonKendra I'd like to see this PR get merged, so would you please expand on what exactly you're eluding to by your comment around unit and integration tests. Even after looking into the pre-existing unit and integration tests, I still don't understand how updating a type requires updating tests that ultimately check runtime behaviour. No runtime logic is changed in this PR, so there's no new functionality for me to update the tests to check against. I suppose you could argue that editor autocomplete is an added functionality in this PR but I don't see how you can unit/integration test this. |
This PR has been in the CHANGES REQUESTED state for 3 weeks, and looks abandoned. To keep this PR from being closed, please continue work on it. If not, it will automatically be closed in a week. |
@TheRealAmazonKendra bump |
This PR has been deemed to be abandoned, and will be automatically closed. Please create a new PR for these changes if you think this decision has been made in error. |
appsync.HttpDataSourceProps
erroneously extends BaseDataSourceProps
appsync.HttpDataSourceProps
erroneously extends BaseDataSourceProps
This PR has been deemed to be abandoned, and will be automatically closed. Please create a new PR for these changes if you think this decision has been made in error. |
Comments on closed issues and PRs are hard for our team to see. |
The pull request linter fails with the following errors:
PRs must pass status checks before we can provide a meaningful review. If you would like to request an exemption from the status checks or clarification on feedback, please leave a comment on this PR containing ✅ A exemption request has been requested. Please wait for a maintainer's review. |
Reason for this change
Closes #31979.
In #11185, the
HttpDataSource
class was updated to extendBackedDataSource
instead ofBaseDataSource
, however theHttpDataSourceProps
type wasn't updated to reflect this change.Description of changes
Makes the
HttpDataSourceProps
type extendBackedDataSourceProps
, instead ofBaseDataSourceProps
. This means users are able to provide theserviceRole
prop without getting a type error.Description of how you validated changes
The below code snippet no longer gives an incorrect type error when providing the
serviceRole
, as it did before:Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license