Skip to content

Conversation

@barw4
Copy link
Contributor

@barw4 barw4 commented Jun 12, 2025

🎫 Issue IBX-9328

Related PRs:

ibexa/core#594

Description:

This PR creates a new REST action inside the User controller that creates a user group under the root users group: createRootUserGroup based on users_group_root_subtree_path config parameter.

For QA:

Documentation:

@barw4 barw4 self-assigned this Jun 12, 2025
@barw4 barw4 added Bug Something isn't working Ready for review labels Jun 12, 2025
@barw4 barw4 requested a review from a team June 13, 2025 12:20
@ezrobot ezrobot requested review from Steveb-p, ViniTou, adamwojs, alongosz, ciastektk, mikadamczyk and wiewiurdp and removed request for a team June 13, 2025 12:20
@barw4 barw4 changed the title IBX-9328: Implemented dedicated endpoint that handles user group creaion under root IBX-9328: Implemented dedicated endpoint that handles user group creation under root Jun 13, 2025
composer.json Outdated
"ext-simplexml": "*",
"ext-xmlwriter": "*",
"ibexa/core": "~4.6.0@dev",
"ibexa/core": "dev-ibx-9328-users-root-path as 4.6.0@dev",
Copy link
Member

Choose a reason for hiding this comment

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

Friendly reminder: drop temporary commit before the merge

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dropped

path: /user/groups/subgroups
defaults:
_controller: Ibexa\Rest\Server\Controller\User:createUserGroup
_controller: Ibexa\Rest\Server\Controller\User:createRootUserGroup
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
_controller: Ibexa\Rest\Server\Controller\User:createRootUserGroup
_controller: Ibexa\Rest\Server\Controller\User::createRootUserGroup

Syntax with single : is deprecated on Symfony 5.4 and removed in later versions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed, done in 1ca0c34

{
$text = $this->addTestSuffix(__FUNCTION__);
$xml = <<< XML
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Contributor

Choose a reason for hiding this comment

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

Indentation works for HEREDOC since a long time.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's highlighted for XML as an issue in IDE, besides we don't have any indentation anywhere for XMLs in this package.

@barw4 barw4 force-pushed the ibx-9328-create-top-level-user-group branch from 13dc68b to a81e155 Compare June 24, 2025 21:05
@sonarqubecloud
Copy link

Copy link

@KamilSznajdrowicz KamilSznajdrowicz left a comment

Choose a reason for hiding this comment

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

QA Approved

Zrzut ekranu 2025-06-26 o 13 29 04

@alongosz alongosz merged commit 8615d63 into 4.6 Jun 26, 2025
11 checks passed
@alongosz alongosz deleted the ibx-9328-create-top-level-user-group branch June 26, 2025 14:08
@barw4 barw4 mentioned this pull request Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working QA approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants