Skip to content

Conversation

avikarshasaha
Copy link
Contributor

@avikarshasaha avikarshasaha commented Feb 10, 2025

Q A
Bug fix? (use the a.b branch) 🔴
New feature/enhancement? (use the a.x branch) 🟢
Deprecations? 🔴
BC breaks? (use the c.x branch) 🔴
Automated tests included? 🟢
Related user documentation PR URL mautic/user-documentation#351
Related developer documentation PR URL mautic/developer-documentation-new#...
Issue(s) addressed Fixes #...

Description

This PR adds new command bin/console mautic:segments:stat

Get usage data for published segments, which includes the following items:

  • Campaign entry point
  • Campaign: Change Segment Action.
  • Email include/exclude list
  • Segment filtering
  • Form actions
  • SMS inclusion/exclusion lists

📋 Steps to test this PR:

  1. Open this PR on Gitpod or pull down for testing locally (see docs on testing PRs here)
  2. Add the published segment to the email include list
  3. Run the command to view usage data
  4. Also, look for other parts where we can use segments.

@escopecz escopecz added feature A new feature for inclusion in minor or major releases segments Anything related to segments unforking Used for PRs in the Acquia's unforking initiative labels Feb 10, 2025
Copy link
Member

@escopecz escopecz left a comment

Choose a reason for hiding this comment

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

I know this is coming from an old PR on our fork, but let's modernize it and bullet-proof it when we have a chance in adding the new classes. It's then very costly to do afterwards when dealing with backward compatibility

@escopecz escopecz assigned avikarshasaha and unassigned escopecz Feb 13, 2025
@aarohiprasad aarohiprasad requested review from a team and rohitpavaskar and removed request for a team February 14, 2025 09:28
Copy link
Contributor

@rohitp19 rohitp19 left a comment

Choose a reason for hiding this comment

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

Thanks @avikarshasaha!

@aarohiprasad
Copy link
Contributor

Tested on local. Working as expected for all scenarios!
image

@aarohiprasad aarohiprasad added the ready-to-commit PR's with 2 successful tests, 1 approval, automated tests and docs and is ready to be merged label Feb 21, 2025
@aarohiprasad
Copy link
Contributor

@escopecz can you merge this?

@escopecz escopecz added this to the 6.0.0-beta milestone Feb 24, 2025
@escopecz escopecz merged commit 0a0fbdc into mautic:6.x Feb 24, 2025
17 checks passed
@RCheesley
Copy link
Member

@avikarshasaha @aarohiprasad @escopecz where are the docs on this? What command is it that users are to run? Please make a PR for the user/dev docs as appropriate, we can't just add commands and expect people to know how to use them :) Thanks!

@escopecz escopecz changed the title Command to get data for segment uses New command to get usage of all segments Feb 25, 2025
@escopecz
Copy link
Member

@RCheesley good catch! I've created the docs PR here: mautic/user-documentation#351

@avikarshasaha please spend more time on the PR descriptions and docs for new features in the following PRs.

@RCheesley RCheesley modified the milestones: 6.0.0-beta, 6.0.0-beta2 Mar 5, 2025
@mautibot
Copy link
Contributor

mautibot commented Mar 6, 2025

This pull request has been mentioned on Mautic Forums. There might be relevant details there:

https://forum.mautic.org/t/announcing-mautic-6-beta-now-available-for-testing/35196/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature for inclusion in minor or major releases ready-to-commit PR's with 2 successful tests, 1 approval, automated tests and docs and is ready to be merged segments Anything related to segments unforking Used for PRs in the Acquia's unforking initiative
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants