-
Notifications
You must be signed in to change notification settings - Fork 509
API changes: Blocking users as a user #6440
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
Conversation
Signed-off-by: Vitor Mattos <[email protected]>
c898c62 to
6464ff3
Compare
Rename endpoint Save block on database Signed-off-by: Vitor Mattos <[email protected]>
421c000 to
25ff87d
Compare
| $qb = $this->db->getQueryBuilder(); | ||
|
|
||
| $qb->delete($this->tableName) | ||
| ->andWhere( | ||
| $qb->expr()->eq('actor_type', $qb->createNamedParameter($entity->getActorType(), Types::STRING)), | ||
| $qb->expr()->eq('actor_id', $qb->createNamedParameter($entity->getActorId(), Types::STRING)), | ||
| $qb->expr()->eq('blocked_type', $qb->createNamedParameter($entity->getBlockedType(), Types::STRING)), | ||
| $qb->expr()->eq('blocked_id', $qb->createNamedParameter($entity->getBlockedId(), Types::STRING)) | ||
| ); | ||
| $qb->executeStatement(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed? We just always delete based on Id and done?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't implemented method to delete by ID, only implemented method to delete using blocked id and blocked type.
Do you think it will be necessary to delete by Id and by blocked id and blocked type?
Teardown to clean integration tests Signed-off-by: Vitor Mattos <[email protected]>
25ff87d to
5eec1ab
Compare
fix method typing return all data on list blocked endpoint Signed-off-by: Vitor Mattos <[email protected]>
Removed cache implementation Signed-off-by: Vitor Mattos <[email protected]>
9bfdcb0 to
09a5ce2
Compare
POST /settings/block-userGET /settings/block-userDELETE /settings/block-user@allor@user1close #2513