Skip to content

Document LeadGetCurrentEvent for skipping last active logging#483

Open
promptless-for-oss wants to merge 7 commits into
mautic:7.0from
Promptless:promptless/pr-16080-skip-last-active-logging
Open

Document LeadGetCurrentEvent for skipping last active logging#483
promptless-for-oss wants to merge 7 commits into
mautic:7.0from
Promptless:promptless/pr-16080-skip-last-active-logging

Conversation

@promptless-for-oss
Copy link
Copy Markdown

Open this suggestion in Promptless to view citations and reasoning process

Adds documentation for the new skipContactLastActiveLogged() method in LeadGetCurrentEvent, enabling developers to prevent Contact last active timestamp updates during tracking.

Trigger Events


Tip: Enable auto-create PR in your Docs Collection to publish suggestions automatically 🤖

Add documentation for the new skipContactLastActiveLogged() method
that allows developers to prevent Contact's last active timestamp
from being updated during tracking.
@promptless-for-oss promptless-for-oss requested review from a team, adiati98 and favour-chibueze May 7, 2026 14:33
}
}

Skipping last active logging
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

New skipContactLastActiveLogged() and isSkipContactLastActiveLogged() methods added to LeadGetCurrentEvent class in app/bundles/LeadBundle/Event/LeadGetCurrentEvent.php. The ContactTracker checks isSkipContactLastActiveLogged() and skips the last active update when true.

Source: mautic/mautic#16080

@adiati98 adiati98 added this to the 7.2 milestone May 18, 2026
Copy link
Copy Markdown
Contributor

@adiati98 adiati98 left a comment

Choose a reason for hiding this comment

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

@promptless-for-oss please address the suggestions

Comment thread docs/plugin_extensions/contacts.rst Outdated
Comment thread docs/plugin_extensions/contacts.rst Outdated
Comment thread docs/plugin_extensions/contacts.rst Outdated
Comment thread docs/plugin_extensions/contacts.rst Outdated
Comment thread docs/plugin_extensions/contacts.rst Outdated
Address reviewer feedback by converting passive voice to active voice:
- Apply suggested wording for introductory paragraph
- Change 'conditions are met' to 'conditions apply'
- Change 'was set by a previous listener' to 'a previous listener set'
- Change 'from being updated' to 'from updating'
- Change 'should be skipped' to 'to skip'
@promptless-for-oss
Copy link
Copy Markdown
Author

Thanks @adiati98 for the review feedback! I've addressed all the passive voice issues:

  1. Applied your suggested wording for the introductory paragraph
  2. Changed "conditions are met" → "conditions apply"
  3. Changed "was set by a previous listener" → "a previous listener set"
  4. Changed "from being updated" → "from updating"
  5. Changed "should be skipped" → "to skip"

The changes have been pushed to this branch.

Comment thread docs/plugin_extensions/contacts.rst Outdated
Reworded the introduction paragraph for the 'Skipping last active logging'
section to improve clarity, as suggested by @adiati98.
@promptless-for-oss
Copy link
Copy Markdown
Author

Thanks for the feedback @adiati98! I've updated the wording as suggested. The change has been pushed to this branch.

Comment thread docs/plugin_extensions/contacts.rst
Addresses reviewer feedback to prevent Vale from flagging
correctly capitalized "HTTP" in the method descriptions.
@promptless-for-oss
Copy link
Copy Markdown
Author

Thanks for the feedback! I've wrapped the method table in Vale on/off statements to prevent the false positive on "HTTP".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants