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

Implement user blocking/unblocking flow #5

Open
wants to merge 25 commits into
base: master
Choose a base branch
from

Conversation

Vladyslav-Kuksiuk
Copy link
Contributor

@Vladyslav-Kuksiuk Vladyslav-Kuksiuk commented Mar 10, 2023

This PR adds an implementation of the user blocking and unblocking flows.

User blocking flow model:
image

User unblocking flow model:
image

Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

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

@Vladyslav-Kuksiuk please make sure to do the following things:

  1. review this PR by yourself, and do that really-really thoroughly;

  2. next time perform p.1 before submitting a PR.

*/

/**
* Provides ChatSPN `User` commands and common commands interfaces.
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't use back-ticks in Javadoc. We use {@code ...}.

And another thing is that I don't understand why you want to have a monospaced don't here.

Please review.

Same goes for the similar cases within this PR.

@@ -45,3 +45,10 @@ message UserRegistered {
// A name of the registered user.
string name = 2 [(required) = true];
}

// A new user chats has been created.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is hardly a piece of English.

Please do better.


import "spine/core/user_id.proto";

// A user profile view in the chatting system.
Copy link
Contributor

Choose a reason for hiding this comment

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

?

Please make sure to review your own work before submitting a PR.

@Vladyslav-Kuksiuk Vladyslav-Kuksiuk changed the title Implement UserChats creation flow Implement user blocking/unblocking flow Mar 14, 2023
Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

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

@Vladyslav-Kuksiuk as discussed vocally, BlockUser does not to make much sense if sent to User aggregate, since it introduces some discrepancy (i.e. who blocks whom?). So please return to this PR later.

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