Regression: entity, flag, flagging tokens removed without notice

Created on 19 August 2024, 3 months ago

Problem/Motivation

We had several models using [flag], [flagging], and [entity] tokens after a flag or unflag event. After upgrading to 2.0, these all stopped working.

The documentation site - https://ecaguide.org//plugins/eca/flag/events/flag_flag/ - does not list these tokens, but instead shows them as parts of the [event] token - [event:flag], [event:flagging], [event:entity].

This change was not documented.

Worse, you cannot simply prefix the token with event -- [event:flag:name] does not expand.

As a workaround, assigning these to tokens using the Set Token Value action does work -- so setting a token "flag" to [event:flag] does allow you to use the [flag:name] token.

Proposed resolution

Either add the tokens to the context of the event, or better document this as a change, with a change record and a notice on the 2.x branch.

Also, fix token processing so it chains like other tokens.

πŸ› Bug report
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States freelock Seattle

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024