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
Serverless awsProvider.d.ts fix + addition #49104
Conversation
@Namstel Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through. This is a live comment which I will keep updated. 1 package in this PRCode ReviewsBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it. Status
Once every item on this list is checked, I'll ask you for permission to merge and publish the changes. InactiveThis PR has been inactive for 26 days — it is still unreviewed! Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 49104,
"author": "Namstel",
"headCommitAbbrOid": "8005d95",
"headCommitOid": "8005d959e83d7fc778be4b6c50b23646fcc16c5d",
"lastPushDate": "2020-11-26T12:52:29.000Z",
"lastActivityDate": "2020-11-26T12:52:29.000Z",
"maintainerBlessed": false,
"hasMergeConflict": false,
"isFirstContribution": true,
"popularityLevel": "Well-liked by everyone",
"pkgInfo": [
{
"name": "serverless",
"kind": "edit",
"files": [
{
"path": "types/serverless/plugins/aws/provider/awsProvider.d.ts",
"kind": "definition"
},
{
"path": "types/serverless/serverless-tests.ts",
"kind": "test"
}
],
"owners": [
"hassankhan",
"JonathanWilbur",
"a-pavlenko",
"fredericbarthelet",
"bryan-hunter",
"thomasaribart"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Well-liked by everyone"
}
],
"reviews": [
{
"type": "stale",
"reviewer": "fredericbarthelet",
"date": "2020-11-20T19:50:07.000Z",
"abbrOid": "10691c6"
}
],
"ciResult": "pass"
} |
🔔 @hassankhan @JonathanWilbur @a-pavlenko @fredericbarthelet @bryan-hunter @ThomasAribart — please review this PR in the next few days. Be sure to explicitly select |
👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings. Let’s review the numbers, shall we? Comparison details 📊
It looks like nothing changed too much. I won’t post performance data again unless it gets worse. |
I've also added the type property to the Stream interface according to the following specs: |
Hi, I would love to hear from any of you. Sincerely, |
@@ -368,7 +368,7 @@ declare namespace Aws { | |||
interface Sns { | |||
topicName: string; | |||
displayName?: string; | |||
filterPolicy?: string[] | { [key: string]: string }; | |||
filterPolicy?: string[] | { [key: string]: string[] }; |
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.
filterPolicy is an object of attributes to be filtered against string, numeric or boolean value. It can also contain exists, anything-but... filters. (cf https://docs.aws.amazon.com/sns/latest/dg/sns-subscription-filter-policies.html)
If you agree, I'd rather go for the filterPolicy?: Record<string, unknown>
type
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.
Thank you for your contribution @Namstel and sorry for the late reploy :) I made a few comments on your PR. Let me know if you agree. Thanks
@Namstel One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits or comments. If you disagree with the reviewer's comments, you can "dismiss" the review using GitHub's review UI. Thank you! |
Co-authored-by: Frédéric Barthelet <fredericb@theodo.fr>
@fredericbarthelet Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review? |
Co-authored-by: Frédéric Barthelet <fredericb@theodo.fr>
@Namstel The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
Added missing semicolon
Thanks @fredericbarthelet ! I've applied the suggestions. |
@Namstel The CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
Formatted document Used Array<> syntax for AwsFunction.layers
Re-ping @hassankhan, @JonathanWilbur, @a-pavlenko, @fredericbarthelet, @bryan-hunter, @ThomasAribart: This PR has been out for over a week, yet I haven't seen any reviews. Could someone please give it some attention? Thanks! |
It has been more than two weeks and this PR still has no reviews. I'll bump it to the DT maintainer queue. Thank you for your patience, @Namstel. (Ping @hassankhan, @JonathanWilbur, @a-pavlenko, @fredericbarthelet, @bryan-hunter, @ThomasAribart.) |
Cool, thanks, this looks like it fits the docs - let's get it in |
I just published |
* Fixed filterPolicty alternative type * Allow AwsFunction layers property to be defined as key with string so Ref can be used. * Added optional type to Stream interface * Update types/serverless/plugins/aws/provider/awsProvider.d.ts Co-authored-by: Frédéric Barthelet <fredericb@theodo.fr> * Update types/serverless/plugins/aws/provider/awsProvider.d.ts Co-authored-by: Frédéric Barthelet <fredericb@theodo.fr> * Update types/serverless/plugins/aws/provider/awsProvider.d.ts * Update awsProvider.d.ts Added missing semicolon * awsProvider.d.ts Formatted document Used Array<> syntax for AwsFunction.layers * Fixed SNS filterPolicy test Co-authored-by: Frédéric Barthelet <fredericb@theodo.fr>
Please fill in this template.
npm test YOUR_PACKAGE_NAME
.)npm run lint package-name
(ortsc
if notslint.json
is present).Select one of these and delete the others:
If changing an existing definition:
tslint.json
containing{ "extends": "dtslint/dt.json" }
. If for reason the any rule need to be disabled, disable it for that line using// tslint:disable-next-line [ruleName]
and not for whole package so that the need for disabling can be reviewed.