Skip to content

feat(foundation): Add foundation modules to feature branch#3193

Merged
mattcreaser merged 18 commits intofeat/foundationfrom
mattcreaser/foundation
Feb 5, 2026
Merged

feat(foundation): Add foundation modules to feature branch#3193
mattcreaser merged 18 commits intofeat/foundationfrom
mattcreaser/foundation

Conversation

@mattcreaser
Copy link
Member

  • PR title and description conform to Pull Request guidelines.

Issue #, if available:

Description of changes:
Adds foundation and foundation-bridge modules with some initial classes to the foundation feature branch.

How did you test these changes?

  • Unit tests

Documentation update required?

  • No
  • Yes (Please include a PR link for the documentation update)

General Checklist

  • Added Unit Tests
  • Added Integration Tests
  • Security oriented best practices and standards are followed (e.g. using input sanitization, principle of least privilege, etc)
  • Ensure commit message has the appropriate scope (e.g fix(storage): message, feat(auth): message, chore(all): message)

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

@mattcreaser mattcreaser requested review from a team as code owners February 3, 2026 15:15
when (this) {
is Result.Failure -> Result.Failure(mapFailure(this.error))
is Result.Success -> Result.Success(mapSuccess(this.data))
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Does an implementation for runCatching make sense here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably, yes. I just didn't want to go too crazy with extensions and utilities before they are actually needed. We can add such functions as they become necessary.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm already using it in the feat/kinesis branch. But we can also add it in a separate PR to unblock the current one.

", cause=" + cause +
", recoverySuggestion=" + recoverySuggestion +
'}'
)
Copy link
Contributor

@jvh-aws jvh-aws Feb 5, 2026

Choose a reason for hiding this comment

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

nit: We could use dollar notation here, e.g.

"${getClass().getSimpleName()}{message=${getMessage()}, cause=${...}...}"

@mattcreaser mattcreaser merged commit 7e7d8e6 into feat/foundation Feb 5, 2026
@mattcreaser mattcreaser deleted the mattcreaser/foundation branch February 5, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants