Skip to content

Conversation

maxhoheiser
Copy link
Member

@maxhoheiser maxhoheiser commented Dec 20, 2024

Motivation

Refactor the functionality related to connection and api destination to be in line with the other event bridge provider functionality. Decouple data from functions via nested DTO and service object.

Changes

For connection:

  • ConnectionService containing crud functionality and validation
  • Connection DTO containing configuration parameters and storing the state of each connection

For api destination

  • APIDestinationService containing crud functionality and validation
  • ApiDestination DTO containing configuration parameters and storing the state of each API destination

Testing

All existing connection and API destination crud tests as well as testing the target pass

@maxhoheiser maxhoheiser force-pushed the refactor/events/custom-api-destination branch from 149ae67 to b1e2ae5 Compare December 20, 2024 12:37
@maxhoheiser maxhoheiser added aws:events Amazon EventBridge semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases labels Dec 20, 2024
@maxhoheiser maxhoheiser self-assigned this Dec 20, 2024
Copy link

github-actions bot commented Dec 20, 2024

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 51m 8s ⏱️ -5s
3 904 tests ±0  3 597 ✅ ±0  307 💤 ±0  0 ❌ ±0 
3 906 runs  ±0  3 597 ✅ ±0  309 💤 ±0  0 ❌ ±0 

Results for commit 0efa3dc. ± Comparison against base commit 5399278.

♻️ This comment has been updated with latest results.

@maxhoheiser maxhoheiser force-pushed the refactor/events/custom-api-destination branch from f0c41ce to e5bf3bf Compare December 27, 2024 15:51
@maxhoheiser maxhoheiser marked this pull request as ready for review December 27, 2024 16:09
@maxhoheiser maxhoheiser requested a review from joe4dev as a code owner December 27, 2024 16:09
@maxhoheiser maxhoheiser requested a review from zaingz January 3, 2025 12:12
Copy link
Contributor

@zaingz zaingz left a comment

Choose a reason for hiding this comment

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

great work at separating out the destinations and connections.

return errors

@staticmethod
def _validate_connection_arn(connection_arn: ConnectionArn) -> list[str]:
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: might be good to move the regexes to utils.

@maxhoheiser maxhoheiser merged commit 3aef62f into master Jan 9, 2025
33 checks passed
@maxhoheiser maxhoheiser deleted the refactor/events/custom-api-destination branch January 9, 2025 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:events Amazon EventBridge semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants