Skip to content

IBX-10894: Moved throw error when invitation not found in database to gateway - #136

Open
mateuszdebinski wants to merge 2 commits into
5.0from
IBX-10894-invalid-return-type-declaration-for-getInvitationByEmail-function
Open

IBX-10894: Moved throw error when invitation not found in database to gateway#136
mateuszdebinski wants to merge 2 commits into
5.0from
IBX-10894-invalid-return-type-declaration-for-getInvitationByEmail-function

Conversation

@mateuszdebinski

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-10894

Description:

For QA:

Documentation:

@mateuszdebinski
mateuszdebinski requested a review from a team August 13, 2026 09:07
@mateuszdebinski mateuszdebinski self-assigned this Aug 13, 2026
@mateuszdebinski mateuszdebinski added Bug Something isn't working Ready for review labels Aug 13, 2026

@bnowak bnowak left a comment

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.

It's good you added coverage for InvitationService, however it's not the direct gateway layer you touched 😅

I'd recommend adding separate test coverage for gateway too 😉

@mateuszdebinski

Copy link
Copy Markdown
Contributor Author

@bnowak I thought about it, and I had tests for Gateway ready, but I'm wondering whether it wouldn't be better to add tests for InvitationService, which are missing, and at the same time also test the gateway - in fact, the tests for the gateway will be a copy of this one

@bnowak

bnowak commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

@bnowak I thought about it, and I had tests for Gateway ready, but I'm wondering whether it wouldn't be better to add tests for InvitationService, which are missing, and at the same time also test the gateway - in fact, the tests for the gateway will be a copy of this one

It's always better to test each layer separately.

in fact, the tests for the gateway will be a copy of this one

That's kind of true, but on the gateway layer we don't have mapping to Invitation value object, which we have in the service (we're testing that part too here). Sometimes, raw db values can also don't reflect VO fields in 1:1 which can be expected and tested too.

anyway, any tests are better than none :)

@mateuszdebinski

Copy link
Copy Markdown
Contributor Author

@bnowak I added DoctrineGatewayTest

@mateuszdebinski
mateuszdebinski force-pushed the IBX-10894-invalid-return-type-declaration-for-getInvitationByEmail-function branch from 84d1cd0 to db99b09 Compare August 13, 2026 13:05
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants