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

IBX-6645: User profile #1020

Merged
merged 5 commits into from
Dec 13, 2023
Merged

IBX-6645: User profile #1020

merged 5 commits into from
Dec 13, 2023

Conversation

adamwojs
Copy link
Member

@adamwojs adamwojs commented Nov 30, 2023

Question Answer
Tickets https://issues.ibexa.co/browse/IBX-6645
Bug fix? no
New feature? yes
BC breaks? no
Tests pass? yes
Doc needed? yes
License GPL-2.0

Depends on ibexa/core#301 ✅ and ibexa/content-forms#57

https://www.figma.com/file/NwbQ3GhHqJlZ0Xspd4wd7n/User-profile?type=design&node-id=5301-64169&mode=design&t=Qwf09rz382J0pe3B-0

Screenshot

image

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

@adamwojs adamwojs changed the title Implemented user profile IBX-6645: Implemented user profile Nov 30, 2023
@adamwojs adamwojs force-pushed the user_profile branch 3 times, most recently from 9bf5cc5 to 15655f3 Compare December 9, 2023 13:46
@adamwojs adamwojs marked this pull request as ready for review December 11, 2023 11:14
@adamwojs adamwojs changed the title IBX-6645: Implemented user profile IBX-6645: User profile Dec 11, 2023
@mikadamczyk
Copy link
Contributor

@adamwojs conflict needs to be resolved

@mikadamczyk mikadamczyk requested review from ViniTou, Nattfarinn and a team December 12, 2023 09:32
src/bundle/Controller/User/ProfileEditController.php Outdated Show resolved Hide resolved
->booleanNode('enabled')
->defaultFalse()
->end()
->arrayNode('content_types')
Copy link
Contributor

Choose a reason for hiding this comment

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

what is the point of this configuration? Cant we just not relay on user_content_type_identifier parameter? I think introducing another one would just add confusion, even more when this is site access aware, and we decided that this dosent have much sense in terms of defining content types.

Unless, there is something else behind this config, then please, elaborate.
@adamwojs

Copy link
Member Author

Choose a reason for hiding this comment

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

We want to enable user profile only for marketer persona, what is only small part of the user base.

@webhdx
Copy link
Contributor

webhdx commented Dec 12, 2023

The thing that raises my concerns the most - why do you want to sudo load user roles just to display them? If the user doesn't have permissions I think it should be respected and not create a loophole in the system to look up assigned user roles.

@adamwojs
Copy link
Member Author

The thing that raises my concerns the most - why do you want to sudo load user roles just to display them? If the user doesn't have permissions I think it should be respected and not create a loophole in the system to look up assigned user roles.

I've added logic to hide "Roles" block when user doesn't have permissions to view roles.

Copy link

sonarcloud bot commented Dec 13, 2023

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

4 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@adamwojs
Copy link
Member Author

Thank you for review, all your core review suggestions has been applied. Merging due to the time constraints, however if there will be any further comment I will apply them as follow up PR.

@adamwojs
Copy link
Member Author

and final screenshot with all bug fixes and design update:

image

@adamwojs adamwojs merged commit a4f9a3f into main Dec 13, 2023
23 checks passed
@adamwojs adamwojs deleted the user_profile branch December 13, 2023 19:40
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

7 participants