Skip to content

39 testing registrations#55

Merged
InfoTCube merged 6 commits intomainfrom
39-testing-registrations
Feb 26, 2026
Merged

39 testing registrations#55
InfoTCube merged 6 commits intomainfrom
39-testing-registrations

Conversation

@InfoTCube
Copy link
Contributor

During development of this PR, I observed weird situation, because I got errors during migrations when I tried to create team member without any permissions! It should be looked into🤨

//PS: pls review

@InfoTCube InfoTCube linked an issue Feb 26, 2026 that may be closed by this pull request
Copy link
Member

@InfoX1337 InfoX1337 left a comment

Choose a reason for hiding this comment

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

Two changes needed, change name of the user to avoid confusion and one attached comments for additional tests.

Copy link
Member

Choose a reason for hiding this comment

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

Add tests to ensure that:
a team member who lacks the REGISTER_TASK permission flag is blocked from registering the team.
a team member who was never part of the team cannot DELETE the team.

@InfoTCube
Copy link
Contributor Author

image image

Here is a reproduction of a strange behaviour. I accomplished my goal by building empty guard, but in theory it is nullable, however if it actually is null, it throws errors :c

@InfoTCube InfoTCube requested a review from InfoX1337 February 26, 2026 08:49
@InfoX1337
Copy link
Member

InfoX1337 commented Feb 26, 2026

image image
Here is a reproduction of a strange behaviour. I accomplished my goal by building empty guard, but in theory it is nullable, however if it actually is null, it throws errors :c

IMO. We should make it not nullable, and build the guard in the model file with @beforeCreate, but this is a separate issue

InfoX1337
InfoX1337 previously approved these changes Feb 26, 2026
Copy link
Member

@InfoX1337 InfoX1337 left a comment

Choose a reason for hiding this comment

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

One comment, apart from that LGTM.

const response = await client.post('/auth/register').json({
nickname: 'user2',
email: 'user2@local.host',
nickname: 'n32user',
Copy link
Member

Choose a reason for hiding this comment

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

why is this nickname n32user? Could this be changed to newuser?

Copy link
Member

@InfoX1337 InfoX1337 left a comment

Choose a reason for hiding this comment

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

looks good, approving.

@InfoTCube InfoTCube requested a review from InfoX1337 February 26, 2026 09:00
@InfoTCube InfoTCube merged commit 68205ff into main Feb 26, 2026
4 checks passed
@InfoTCube InfoTCube deleted the 39-testing-registrations branch February 26, 2026 09:04
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.

Testing /registrations

2 participants