-
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
chore(redshift-alpha): migrate database query handlers #28130
Conversation
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
Signed-off-by: Francis <colifran@amazon.com>
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
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.
Hey, just some clarification questions as comments.
I also wanted to understand, if the following files are new or were just moved for migration:
- packages/@aws-cdk/custom-resource-handlers/lib/aws-redshift-alpha/database-query-handlers/handler-props.ts
- packages/@aws-cdk/custom-resource-handlers/lib/aws-redshift-alpha/database-query-handlers/types.ts
- packages/@aws-cdk/custom-resource-handlers/lib/aws-redshift-alpha/database-query-handlers/util.ts
@@ -46,7 +46,7 @@ jest.mock('@aws-sdk/client-secrets-manager', () => ({ | |||
}, | |||
})); | |||
|
|||
import { handler as manageUser } from '../../lib/private/database-query-provider/user'; | |||
import { handler as manageUser } from '../../../lib/aws-redshift-alpha/database-query-handlers/user'; |
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.
Changing this to 'database-query-handlers' would be breaking change for users when importing. We should add that to the PR.
@@ -0,0 +1,39 @@ | |||
import { Column, TableDistStyle, TableSortStyle } from './types'; | |||
|
|||
export type ClusterProps = Omit<DatabaseQueryHandlerProps, 'handler'>; |
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 am surprised Omit works with JSII. Can you confirm this?
@@ -6,7 +6,7 @@ import { ICluster } from './cluster'; | |||
import { DatabaseOptions } from './database-options'; | |||
import { DatabaseSecret } from './database-secret'; | |||
import { DatabaseQuery } from './private/database-query'; | |||
import { HandlerName } from './private/database-query-provider/handler-name'; | |||
import { HandlerName } from './private//handler-name'; |
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.
//
in the import
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.
Also do you have context why these are named private
and handler-name
?
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.
Can this instead be a constants.ts
?
This PR moves the database query handlers to our new centralized location for custom resource handlers in the @aws-cdk package.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license