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

Move some user code to concerns #7860

Merged
merged 3 commits into from
May 14, 2024
Merged

Conversation

alexander-cit
Copy link
Contributor

@alexander-cit alexander-cit commented May 10, 2024

Concerns are not perfect. They do not really isolate the code but still separate it into different files, which makes it hard to connect the dots sometimes.

But in this case, these two pieces of logic (groups and roles) are not connected to the rest of the User code. And more importantly, the length of User went out of control. It was hard to grasp what it does in general, hard to navigate through its methods, and even hard to breathe just looking at it.

Copy link

Copy link
Contributor

@jamesspeake jamesspeake left a comment

Choose a reason for hiding this comment

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

Nice. This makes perfect sense and isolates logic really clearly. Notice you've moved the patch from the smart group engine. Fully agree with this for making the code more understandable. Think we should bring this up at the backend code discussion - we've talked about engines before, but I think we need to make sure we're all in agreement when it comes to trying to bring these patches into the core codebase.

@jamesspeake
Copy link
Contributor

Oh, but you do have a linting issue

@cl-dev-bot
Copy link
Collaborator

Warnings
⚠️

The changelog is empty. What should I put in the changelog?

⚠️ The PR title contains no Jira issue key (case-sensitive)
⚠️ The branch name contains no Jira issue key (case-sensitive)
Messages
📖

Run the e2e tests

📖 Check translation progress

Generated by 🚫 dangerJS against 98e4127

Base automatically changed from revert-7494-revert-7354-TAN-1106-update-email-vienna to master May 14, 2024 15:48
@alexander-cit alexander-cit merged commit 60b8c39 into master May 14, 2024
9 checks passed
@alexander-cit alexander-cit deleted the TAN-1106-user-refactoring branch May 14, 2024 15:49
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.

None yet

3 participants