Skip to content

docs: Document "In the last" and "In the next" Segment date operators#843

Draft
promptless-for-oss wants to merge 1 commit into
mautic:7.2from
Promptless:promptless/pr-16574-in-the-last-next-operators-7.2
Draft

docs: Document "In the last" and "In the next" Segment date operators#843
promptless-for-oss wants to merge 1 commit into
mautic:7.2from
Promptless:promptless/pr-16574-in-the-last-next-operators-7.2

Conversation

@promptless-for-oss

Copy link
Copy Markdown
Contributor

Open this suggestion in Promptless to view citations and reasoning process

Adds a new subsection to the Segment operators documentation covering the two new date/datetime filter operators from mautic/mautic PR #16574: "In the last" and "In the next". Documents the interval + unit (days/months/years) input, which fields support the operators, and the interval validation rules.

Trigger Events


Tip: Use Vale? Point your collection at your vale.ini in Configuration.


.. vale on

The **In the last** and **In the next** operators let you build rolling date filters that never need manual updates. Instead of an absolute date, you enter a whole number for the interval and choose a unit of **days**, **months**, or **years**.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Documented the two new inLast/inNext operators and their interval+unit input added in this PR. The unit choices (days/months/years only — no weeks) come from DateSpanType.php choices; the NotBlank + Positive integer constraint (blank/zero/negative/non-integer all rejected) is from DateSpanType.php and the validation-message test data in ListControllerFunctionalTest.php. Field coverage (standard contact date fields, date/datetime Custom Fields on Contact and Company, and behavior date fields such as Read any email (date)) comes from OperatorListTrait.php and FilterOperatorSubscriber.php.

Source: mautic/mautic#16574

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.

2 participants