Add missing 'label' for conditions in config schema

Created on 15 December 2023, about 1 year ago
Updated 1 August 2024, 5 months ago

Problem/Motivation

Both events and actions support custom labels. However, conditions currently do not.

See ✨ Allow Conditions to have custom labels Needs review

Proposed resolution

Add a 'label' entry for conditions in config schema.

✨ Feature request
Status

Needs work

Version

2.1

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada ergonlogic MontrΓ©al, QuΓ©bec πŸ‡¨πŸ‡¦

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @ergonlogic
  • Issue was unassigned.
  • Status changed to Needs review about 1 year ago
  • πŸ‡¨πŸ‡¦Canada ergonlogic MontrΓ©al, QuΓ©bec πŸ‡¨πŸ‡¦

    I pushed a fix to the MR branch.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 8
    last update about 1 year ago
    276 pass
  • Status changed to Needs work 12 months ago
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    This is not a bug, we haven't had labels on conditions since the very beginning, but I can see that it would be nice to have them as well like for events and actions.

    However, just adding a schema item is not sufficient here. This is triggered by the request coming from eca_cm, but that modeller is not using any of the APIs that ECA provides for modellers to read and write models. As we do not recommend the usage of the classic modeller, we can only add new features into ECA that come through the proper API.

    In the case of conditions labels, this process needs to start by looking into \Drupal\eca\Entity\Eca::addCondition which modellers are supposed to be calling when they want to add a condition to a model while saving it. Currently, this method doesn't accept a label, which should be changed, as well as all downstream methods as well.

    While being on it, we should then also enhance the debugging/logging calls, so that they also take the condition labels into account.

    Re-basing this on the 2.0.x branch, since this is where new feature will be added.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 8
    last update 12 months ago
    297 pass
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 8
    last update 12 months ago
    297 pass
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen
  • Pipeline finished with Success
    9 months ago
    Total: 280s
    #124648
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Not a beta blocker, marked that by mistake.

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen
  • Pipeline finished with Success
    6 months ago
    Total: 478s
    #197216
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    @ergonlogic are you still up for this challenge?

  • Pipeline finished with Failed
    about 1 month ago
    Total: 580s
    #331447
  • Pipeline finished with Failed
    about 1 month ago
    Total: 535s
    #332202
  • Pipeline finished with Failed
    about 1 month ago
    Total: 515s
    #333175
  • Pipeline finished with Success
    about 1 month ago
    Total: 543s
    #337651
  • Pipeline finished with Failed
    about 1 month ago
    Total: 615s
    #337747
  • Pipeline finished with Failed
    about 1 month ago
    Total: 541s
    #340116
  • Pipeline finished with Success
    about 1 month ago
    Total: 546s
    #340183
  • Pipeline finished with Success
    about 1 month ago
    Total: 516s
    #342438
  • Pipeline finished with Failed
    26 days ago
    Total: 742s
    #347133
  • Pipeline finished with Canceled
    26 days ago
    Total: 627s
    #347152
  • Pipeline finished with Success
    26 days ago
    Total: 582s
    #347166
Production build 0.71.5 2024