Skip to content

fix(location): remove base class from PlaceIndex class#31287

Merged
mergify[bot] merged 4 commits intoaws:mainfrom
mazyu36:location-place-index-refactor
Oct 30, 2024
Merged

fix(location): remove base class from PlaceIndex class#31287
mergify[bot] merged 4 commits intoaws:mainfrom
mazyu36:location-place-index-refactor

Conversation

@mazyu36
Copy link
Copy Markdown
Contributor

@mazyu36 mazyu36 commented Sep 2, 2024

Issue # (if applicable)

None

Reason for this change

I implemented the location resources in #30711 and #30682.

During the review, it was suggested that it would be better not to have a base class.
As a result, the GeofenceCollection class and RouteCalculator class do not have a base class.

#30711 (comment)

On the other hand, the PlaceIndex class has already been implemented with a base class, which is inconsistent with the current approach.

Description of changes

Remove a unnecessary base class from PlaceIndex class.

Description of how you validated changes

Re-run unit tests and integ tests.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions bot added the p2 label Sep 2, 2024
@aws-cdk-automation aws-cdk-automation requested a review from a team September 2, 2024 11:48
@github-actions github-actions bot added the distinguished-contributor [Pilot] contributed 50+ PRs to the CDK label Sep 2, 2024
@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Sep 2, 2024
STORAGE = 'Storage',
}

abstract class PlaceIndexBase extends Resource implements IPlaceIndex {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mazyu36 - just to double clarify here, you don't forsee adding an additional class anywhere that would need to extend the base class?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sumupitchayan

I don't think we'll need to add other classes, since there are no resources similar to placeindex.

@sumupitchayan sumupitchayan changed the title refactor(location): remove base class from PlaceIndex class chore(location): remove base class from PlaceIndex class Oct 29, 2024
@sumupitchayan sumupitchayan changed the title chore(location): remove base class from PlaceIndex class fix(location): remove base class from PlaceIndex class Oct 30, 2024
@sumupitchayan sumupitchayan added pr-linter/exempt-readme The PR linter will not require README changes pr-linter/exempt-test The PR linter will not require test changes pr-linter/exempt-integ-test The PR linter will not require integ test changes labels Oct 30, 2024
sumupitchayan
sumupitchayan previously approved these changes Oct 30, 2024
@mergify mergify bot dismissed sumupitchayan’s stale review October 30, 2024 14:06

Pull request has been modified.

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 51c650f
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Oct 30, 2024

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit bc67866 into aws:main Oct 30, 2024
@github-actions
Copy link
Copy Markdown
Contributor

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 30, 2024
@mazyu36 mazyu36 deleted the location-place-index-refactor branch October 30, 2024 14:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

distinguished-contributor [Pilot] contributed 50+ PRs to the CDK p2 pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. pr-linter/exempt-integ-test The PR linter will not require integ test changes pr-linter/exempt-readme The PR linter will not require README changes pr-linter/exempt-test The PR linter will not require test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants