-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat(cdk): aspect framework and tag implementation #1451
Changes from 9 commits
9a8c82b
419a701
0a0d010
0109956
2188764
ce95e64
f3a7e37
6cc19db
67a738b
068726a
6389574
12be7ad
257a15f
522e08c
2467a5e
fdae887
7409e5f
4ffbd55
46e2f70
69401f1
5514650
25b4427
02fb644
3ddfe99
12cfe19
dcc5303
2cbd2c0
e3f5ad3
f706c3d
fec19b6
3bc66f2
aeb24f1
db75215
fc16433
a91a4f1
5970c0b
395a83f
bafff0f
fd94030
3bfa467
d0fd751
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import cdk = require('@aws-cdk/cdk'); | ||
|
||
export class TestStack extends cdk.Stack { | ||
public testInvokeAspects() { | ||
this.invokeAspects(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we move invokeAspects behind the all new “prepareTree”? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes I think that makes sense. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just for clarity, I am doing:
Is there any concern about the conditional wrapped around the block that calls if (!skipValidation) { // any concern here - I haven't found any but just double checking
// Do a prepare-and-validate run over the given stack
stack.node.prepareTree();
const errors = stack.node.validateTree();
if (errors.length > 0) {
throw new Error(`Stack validation failed:\n${errors.map(e => `${e.message} at: ${e.source.node.scope}`).join('\n')}`);
}
}
// this will be removed
if (isTestStack(stack)) {
stack.testInvokeAspects();
}
// end of block to be removed A simple thumbs up to verify is fine. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lgtm; Curious why prepare tree is skipped if validation is skipped but that’s for a different issue (raise one?). |
||
} | ||
} |
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.
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.
I think this class is no longer needed but the test clean up seems like it was a good idea?