Skip to content

Feature/8726 portal deprecated remove - #990

Open
bdalsass wants to merge 3 commits into
developfrom
feature/8726-portal-deprecated-remove
Open

Feature/8726 portal deprecated remove#990
bdalsass wants to merge 3 commits into
developfrom
feature/8726-portal-deprecated-remove

Conversation

@bdalsass

@bdalsass bdalsass commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Base information

Question Answer
Related to a SourceForge thread / Another PR / A GitHub Issue / Combodo ticket? https://support.combodo.com/pages/UI.php?operation=details&class=Bug&id=8726
Type of change? Bug fix

Symptom (bug) / Objective (enhancement)

Remove portal deprecated API

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have tested all changes I made on an iTop instance
  • I have added a unit test, otherwise I have explained why I couldn't
  • Is the PR clear and detailed enough so anyone can understand without digging in the code?

Copilot AI balanced review requested due to automatic review settings August 4, 2026 09:20
@CombodoApplicationsAccount CombodoApplicationsAccount added the internal Work made by Combodo label Aug 4, 2026
@bdalsass
bdalsass requested review from Lenaick and steffunky August 4, 2026 09:20
@bdalsass bdalsass added this to the 3.3.0 milestone Aug 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Removes obsolete portal compatibility APIs as part of bug #8726.

Changes:

  • Removes deprecated URL and modal helpers.
  • Removes legacy form callback fields.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
layout.html.twig Removes AddParameterToUrl.
ObjectFormHandlerHelper.php Removes legacy callback data.
toolbox.js Removes deprecated modal wrappers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@greptile-apps

greptile-apps Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR removes deprecated portal compatibility APIs after their first-party consumers migrated to supported replacements.

  • Removes deprecated CombodoPortalToolbox modal wrappers.
  • Removes obsolete submit_callback and cancel_callback form-data aliases.
  • Removes the deprecated global AddParameterToUrl helper.

Confidence Score: 5/5

The PR appears safe to merge, with no concrete first-party regression identified.

All removed APIs were previously deprecated, repository callers use the retained replacements, and the active form and template paths do not consume the removed compatibility fields or globals.

Important Files Changed

Filename Overview
datamodels/2.x/itop-portal-base/portal/public/js/toolbox.js Removes deprecated modal wrappers; repository callers already use the supported CombodoModal API.
datamodels/2.x/itop-portal-base/portal/src/Helper/ObjectFormHandlerHelper.php Removes unused callback aliases while retaining the navigation-rule fields consumed by the portal form widget.
datamodels/2.x/itop-portal-base/portal/templates/layout.html.twig Removes a deprecated global URL helper after repository callers migrated to CombodoGlobalToolbox.AddParameterToUrl.

Reviews (1): Last reviewed commit: "N°8726 - Deprecation cleanup in portal" | Re-trigger Greptile

@Molkobain Molkobain left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some modules still to be migrated, otherwise core modifications look good.

/**
* @deprecated 3.1.0 Use CombodoModal.OpenUrlInModal() instead
*/
OpenUrlInModal: function(sTargetUrl, bCloseOtherModals) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There is still a usage of this in combodo-custom-hyperlinks

/**
* @deprecated 3.1.0 Use CombodoModal.OpenModal() instead
*/
OpenModal: function(oOptions) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There are still usages of this in approval-base and combodo-workflow-graphical-view.
Careful about the default value fallback during migration of these modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Work made by Combodo modernization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants