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

Handle some deprecation/removal notes for GLPI 11.0 #17108

Merged

Conversation

cconard96
Copy link
Contributor

Q A
Bug fix? no
New feature? no
BC breaks? yes
Deprecations? yes
Tests pass? yes
Fixed tickets -

There are a bunch of unresolved deprecation/removal notes for GLPI 11.0. As GLPI 11 is a major version, breaking changes should be expected so deprecations are probably not needed in most cases. This PR addresses some of the notes, but there are still a lot remaining.

Copy link
Member

@cedric-anne cedric-anne left a comment

Choose a reason for hiding this comment

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

We could introduce BC breaks on methods/classes that are not massively used in plugins. I will check later if any of the removed methods/classes should be preserved (I have all the plugins referenced in the plugin catalog on my machine).

@cedric-anne cedric-anne force-pushed the task/planned_deprecation_removals branch from 5bb165d to 7ea17fb Compare May 22, 2024 11:23
Copy link
Member

@cedric-anne cedric-anne left a comment

Choose a reason for hiding this comment

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

I reverted some changes related to methods/classes that are used by many plugins. They correspond to simple methods/classes that are not complex to maintain. It is OK to have a few deprecated lines of code if it helps plugins developpers to upgrade their code to GLPI 11.0.

The Ticket_Ticket::getLinkedTicketsTo() seems to be used in one of our templates. It has to be fixed, in another PR. I am not sure that the new method produces the exact same result and the template may need to be adapted.

The methods that are removed here without any deprecation phase are almost not used in plugins, and in all cases, it is easier to update the plugins code rather than maintain the previous behaviour.

@cedric-anne cedric-anne added this to the 11.0.0 milestone May 22, 2024
@cedric-anne cedric-anne merged commit c551223 into glpi-project:main May 22, 2024
8 checks passed
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

4 participants