Skip to content

Conversation

@sukhwinder33445
Copy link
Contributor

No description provided.

@cla-bot cla-bot bot added the cla/signed label Jul 30, 2024
@sukhwinder33445 sukhwinder33445 marked this pull request as draft July 30, 2024 06:29
@sukhwinder33445 sukhwinder33445 self-assigned this Jul 30, 2024
@sukhwinder33445 sukhwinder33445 force-pushed the provide-icinga-to-ipl-behaviors branch from 6cbb1ee to 80eb42d Compare August 5, 2024 14:34
return false;
}

define('Icinga', [], () => Icinga);
Copy link
Member

Choose a reason for hiding this comment

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

I struggle to find a suitable location when to define Icinga. This is too early. At the end, it's too late. Right before the behavior initialization, it's somewhat arbitrary...

So, looking at this from another angle, I'd propose to solve this differently:

The linked PR in ipl-web only requires this because it needs Icinga.EventListener. So why don't we define just this class? In eventlistener.js, at the end of the factory: define("icinga/legacy-app/EventListener", [], () => EventListener)

Why icinga/legacy-app/? icinga/ is the global namespace. legacy-app/ is the library name. The reason for legacy- is that I don't want to use up just app/ at this time.

$dependencies = $match[2] ? Json::decode($match[2]) : [];
foreach ($dependencies as &$dependencyName) {
if ($dependencyName === 'exports') {
if ($dependencyName === 'exports' || $dependencyName === 'Icinga') {
Copy link
Member

Choose a reason for hiding this comment

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

just check whether the name already begins with icinga/legacy-app/.

@nilmerg nilmerg added this to the 2.13 milestone Nov 4, 2024
@sukhwinder33445 sukhwinder33445 force-pushed the provide-icinga-to-ipl-behaviors branch from 80eb42d to f985573 Compare January 15, 2025 11:27
@sukhwinder33445 sukhwinder33445 force-pushed the provide-icinga-to-ipl-behaviors branch from f985573 to 030b9da Compare November 3, 2025 08:37
@sukhwinder33445 sukhwinder33445 force-pushed the provide-icinga-to-ipl-behaviors branch from 17e6c35 to 923d7d9 Compare November 4, 2025 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants