Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

join votes for participation check #3373

Merged
merged 16 commits into from
Mar 17, 2024
Merged

join votes for participation check #3373

merged 16 commits into from
Mar 17, 2024

Conversation

dartcafe
Copy link
Collaborator

@dartcafe dartcafe commented Mar 16, 2024

Count current user's votes via join in poll
regarding #3362

@dartcafe dartcafe added this to the 7.0 milestone Mar 16, 2024
dartcafe and others added 15 commits March 16, 2024 21:53
Signed-off-by: dartcafe <[email protected]>
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](follow-redirects/follow-redirects@v1.15.4...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: dartcafe <[email protected]>
Signed-off-by: dartcafe <[email protected]>
Signed-off-by: dartcafe <[email protected]>
Signed-off-by: dartcafe <[email protected]>
Signed-off-by: dartcafe <[email protected]>
Signed-off-by: dartcafe <[email protected]>
@dartcafe dartcafe merged commit 938dffc into master Mar 17, 2024
15 checks passed
@delete-merged-branch delete-merged-branch bot deleted the enh/join-votes branch March 17, 2024 19:25
Comment on lines +157 to +165
$context->registerService(UserMapper::class, function (ContainerInterface $c): UserMapper {
return new UserMapper(
$c->get(IDBConnection::class),
$c->get(ISession::class),
$c->get(IUserSession::class),
$c->get(IUserManager::class),
$c->get(LoggerInterface::class),
);
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Is all this needed? This is the default DI behavior to my knowledge.

Copy link
Collaborator Author

@dartcafe dartcafe Mar 21, 2024

Choose a reason for hiding this comment

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

I was annoyed by the unit tests, where every dependency needed to be instantiated.
If there is a DI possibility for the tests, this is indeed unnecessary.

Copy link
Contributor

Choose a reason for hiding this comment

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

Usually you use Mocks for the tests

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah. Tests. See #3147 😉

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

Successfully merging this pull request may close these issues.

2 participants