-
Notifications
You must be signed in to change notification settings - Fork 77
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
Cross account support for V2 function transformer and directive #975
Conversation
This pull request fixes 1 alert when merging f773765 into a928809 - view on LGTM.com fixed alerts:
|
This pull request fixes 1 alert when merging dc8b9f1 into a928809 - view on LGTM.com fixed alerts:
|
dc8b9f1
to
96f32b5
Compare
This pull request fixes 1 alert when merging 96f32b5 into a928809 - view on LGTM.com fixed alerts:
|
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.
Left some comments below. Otherwise LGTM
packages/graphql-transformers-e2e-tests/src/__tests__/FunctionTransformerTestsV2.e2e.test.ts
Show resolved
Hide resolved
packages/graphql-transformers-e2e-tests/src/__tests__/FunctionTransformerTestsV2.e2e.test.ts
Outdated
Show resolved
Hide resolved
packages/graphql-transformers-e2e-tests/src/__tests__/FunctionTransformerTestsV2.e2e.test.ts
Outdated
Show resolved
Hide resolved
packages/graphql-transformers-e2e-tests/src/__tests__/FunctionTransformerTestsV2.e2e.test.ts
Outdated
Show resolved
Hide resolved
7f07935
Codecov Report
@@ Coverage Diff @@
## main #975 +/- ##
==========================================
+ Coverage 63.14% 63.32% +0.17%
==========================================
Files 278 282 +4
Lines 18125 18376 +251
Branches 4375 4460 +85
==========================================
+ Hits 11445 11636 +191
- Misses 6093 6130 +37
- Partials 587 610 +23
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -2,12 +2,12 @@ import { simplifyName } from './util'; | |||
import md5 from 'md5'; | |||
|
|||
export class FunctionResourceIDs { | |||
static FunctionDataSourceID(name: string, region?: string): string { | |||
return `${simplifyName(name)}${simplifyName(region || '')}LambdaDataSource`; | |||
static FunctionDataSourceID(name: string, region?: string, accountId?: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.
n.p. on spacing after the colon here, and in the next few functions as well.
b216bbb
Description of changes
This PR is an extension of #639 with the following changes:
In Summary, with these changes, customers can use the newly added
accountId
input to@function
directive to attach lambda functions that are maintained in different AWS account and are managed independently.Issue #, if available
Description of how you validated changes
Unit testing
Added e2e tests
In a JS sample app
Full e2e pipeline run
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.