#11843 First part of discovery deprecate warning change

This commit is contained in:
Jorge Rincon 2023-08-08 15:02:31 +02:00
parent c23851a1dc
commit f4b555162b
3 changed files with 29 additions and 2 deletions

View File

@ -52,7 +52,7 @@ class Applications extends Wizard
int $page=0,
string $msg='Default message. Not set.',
string $icon='images/wizard/applications.png',
string $label='Applications'
string $label='Applications (legacy)'
) {
$this->setBreadcrum([]);

View File

@ -89,7 +89,7 @@ class Cloud extends Wizard
int $page=0,
string $msg='Default message. Not set.',
string $icon='images/wizard/cloud.png',
string $label='Cloud'
string $label='Cloud (legacy)'
) {
$this->setBreadcrum([]);

View File

@ -214,6 +214,9 @@ class DiscoveryTaskList extends HTML
html_print_action_buttons($this->printForm($form, true));
}
// Warning Message.
$this->getWarningMessage();
return $ret;
}
@ -2022,4 +2025,28 @@ class DiscoveryTaskList extends HTML
}
/**
* Generates warning message.
*
* @return void Warning message.
*/
public function getWarningMessage()
{
return ui_print_warning_message(
__(
'Starting with version 773, the new modular system of discovery 2.0 has been implemented. The current
discovery (1.0) and its defined tasks will continue to function normally until the next LTS version,
in which migration to the new system will be mandatory.
The tasks of the current discovery (1.0) will be marked as legacy although it will not affect their
operation, it will only be a visual indicator to identify and differentiate the tasks of discovery 1.0
from those of the new version 2.0.
In the intermediate versions between the 773 and the next LTS version, more applications of the new
discovery 2.0 will be added. Both new and those that will come to replace the applications of the
current discovery 1.0. In addition, an automatic migration tool for legacy (1.0) tasks to the new 2.0
model will be included.'
)
);
}
}