Skip to content

Comments

Helpdesk home page config for entities#19355

Merged
cedric-anne merged 2 commits intoglpi-project:mainfrom
AdrienClairembault:home-config-entity
Apr 9, 2025
Merged

Helpdesk home page config for entities#19355
cedric-anne merged 2 commits intoglpi-project:mainfrom
AdrienClairembault:home-config-entity

Conversation

@AdrienClairembault
Copy link
Contributor

@AdrienClairembault AdrienClairembault commented Apr 2, 2025

Checklist before requesting a review

  • I have performed a self-review of my code.
  • I have added tests that prove my fix is effective or that my feature works.

Description

Allow the helpdesk home page to be configured by entity.
The first commit is from #19321, which should be merged first (wait for it to be merged before reviewing).

Screenshots

Config on an entity;
image

Config on a profile:
image

On an entity that does not have any values, we should the parent values instead:
image

The two actions allow to define your own values for this entity (starting from an empty list of tiles or from a copy of the parent tiles).

@AdrienClairembault AdrienClairembault self-assigned this Apr 2, 2025
@AdrienClairembault AdrienClairembault force-pushed the home-config-entity branch 2 times, most recently from 08454c5 to f12d4cf Compare April 2, 2025 13:23
Copy link
Contributor Author

@AdrienClairembault AdrienClairembault Apr 2, 2025

Choose a reason for hiding this comment

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

To review with whitespace off, lot of indentation changes due to some code being nested in new content.

@AdrienClairembault AdrienClairembault marked this pull request as ready for review April 8, 2025 07:22
Copy link
Contributor

@orthagh orthagh left a comment

Choose a reason for hiding this comment

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

Globally OK.

Just a quick question as I don't see any install/update changes.
How is the homepage after making an upgrade or installing a new GLPI ?

@AdrienClairembault
Copy link
Contributor Author

AdrienClairembault commented Apr 8, 2025

Just a quick question as I don't see any install/update changes.
How is the homepage after making an upgrade or installing a new GLPI ?

The changes are in the default data manager: https://github.com/glpi-project/glpi/pull/19355/files#diff-0be704a1020094b7c94da8d290c41efbbe5a0da5aa8a40f54e04b228ce395591

The default tiles are attached to the root entity (previously it was all self service profiles found during the update/install).

}

#[Override]
public function getConfigInformationText(): ?string
Copy link
Member

Choose a reason for hiding this comment

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

Please note that this method name is not really helping in th Entity context. It should be changed, but please do it in another PR so we can merge this one and integrate it in the 11.0.0-beta release.

@cedric-anne cedric-anne merged commit 870da8c into glpi-project:main Apr 9, 2025
7 checks passed
@cedric-anne cedric-anne added this to the 11.0.0 milestone Apr 9, 2025
@trasher trasher mentioned this pull request Apr 9, 2025
@AdrienClairembault AdrienClairembault deleted the home-config-entity branch April 28, 2025 08:43
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2026

This PR has been is closed and has been automatically locked. Please open a new issue with all requested information for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants