You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add missing CDK files and pass variables in CDK event handler (aws#106)
This changeset fixes a couple cdk deployment bugs:
* changed `CDKPipelineApp.js` to call the `createLambdaDeploymentPackage` function so that it uses the same logic as non-cdk deployment pipeline and will now include previously missing files (json schema file and queryHttpNeptune.mjs) which are necessary for lambda resolver execution
* fixed the cdk app sync event handler to pass along variables as part of the event, which is necessary in order for the resolver to handle query variables
This changeset also contains improvements to output file logic and test coverage:
* changed `main.js` to determine an output file prefix once before any output files are created to repeated code duplication
* changed `main.js` to reference the neptune graph name as part of the output file prefix for scenarios where a pipeline is not being executed as to avoid overwriting existing files from a previous utility execution
* changed `createZip` function in `zipPackage.js` to wait for the zip file stream to be closed before resolving the promise so that the integration tests would not attempt to read the zip file before it was finished being written
* added verification of expected output files to test cases that were previously missing it
* removed test function `checkOutputFilesSize` and its usages as it is unnecessary to verify output file sizes if their content is also being checked for equality
* replaced `checkOutputFilesContent` test function which assumed output files had the same name as the comparison files with new function `compareFileContents` which is more flexible with file names
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ This release contains new support for Apollo Server integration.
32
32
* Fixed queries generated from an input schema which retrieve an array to have an option parameter with limit ([#97](https://github.com/aws/amazon-neptune-for-graphql/pull/97))
33
33
* Fixed nested edge subqueries to return an empty array if no results were found (([#100](https://github.com/aws/amazon-neptune-for-graphql/pull/100))
34
34
* Fixed usage of variables with nested edge subqueries (([#100](https://github.com/aws/amazon-neptune-for-graphql/pull/100))
35
+
* Fixed cdk output file to contain previously missing files that were necessary to execute the lambda resolver (([#106](https://github.com/aws/amazon-neptune-for-graphql/pull/106))
0 commit comments