Skip to content

Campaign import export user docs - #361

Open
dcjarvis wants to merge 59 commits into
mautic:7.0from
dcjarvis:campaign-import-export-user-docs
Open

Campaign import export user docs#361
dcjarvis wants to merge 59 commits into
mautic:7.0from
dcjarvis:campaign-import-export-user-docs

Conversation

@dcjarvis

@dcjarvis dcjarvis commented May 9, 2025

Copy link
Copy Markdown

Added descriptions for campaign import and campaign export.

@dcjarvis

dcjarvis commented May 9, 2025

Copy link
Copy Markdown
Author

Note that these docs should be targeted to Mautic v7.x but that branch is not available yet.

Comment thread docs/some-dir/README.md Outdated
Comment thread docs/some-dir/composer.json Outdated
@dcjarvis
dcjarvis force-pushed the campaign-import-export-user-docs branch from 5defae6 to 4f4b529 Compare May 22, 2025 11:32
@dcjarvis

Copy link
Copy Markdown
Author

Added further parameter to the command line for export

@RCheesley
RCheesley changed the base branch from 5.x to 7.0 May 22, 2025 12:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds end-user documentation for Campaign import/export and links it into the existing docs navigation and CLI command reference.

Changes:

  • Added new Campaign import and export documentation pages, including UI, CLI, and API usage.
  • Linked the new pages into the Campaigns section of the main docs index.
  • Updated the CLI command reference to include campaign import/export commands and improved the “bin/console” guidance.

Reviewed changes

Copilot reviewed 4 out of 13 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
docs/index.rst Adds the new import/export pages to the Campaigns toctree for navigation.
docs/configuration/command_line_interface.rst Updates CLI guidance and adds campaign import/export commands to the command list.
docs/campaigns/importing_campaigns.rst New page documenting Campaign imports via UI, CLI, and API.
docs/campaigns/exporting_campaigns.rst New page documenting Campaign exports via UI, CLI, and API.
docs/campaigns/images/upload_zip_file.png Adds a screenshot used by the import docs.
docs/campaigns/images/campaign_active_toggle_button.png Adds a screenshot used by the import docs.
.gitignore Minor formatting/indent fix at EOF comment line.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/campaigns/exporting_campaigns.rst Outdated
Comment thread docs/campaigns/importing_campaigns.rst Outdated
Comment thread docs/configuration/command_line_interface.rst Outdated
Comment thread docs/configuration/command_line_interface.rst Outdated
Comment thread docs/campaigns/importing_campaigns.rst Outdated
Comment thread docs/campaigns/exporting_campaigns.rst
Comment thread docs/campaigns/exporting_campaigns.rst Outdated
Comment thread docs/campaigns/exporting_campaigns.rst Outdated
RCheesley and others added 4 commits April 1, 2026 16:01
Co-authored-by: Ruth Cheesley <ruth@ruthcheesley.co.uk>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

@adiati98 adiati98 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's address the review from @RCheesley.

Comment thread docs/campaigns/exporting_campaigns.rst Outdated
Comment thread docs/campaigns/importing_campaigns.rst
Comment thread docs/campaigns/importing_campaigns.rst
@adiati98

Copy link
Copy Markdown
Contributor

@mautic/core-team can you please review the suggested changes by me here if they're correct in addressing @RCheesley's reviews? TIA! ✨

@RCheesley

Copy link
Copy Markdown
Member

Thank you for reaching out. I am currently unavailable, but I have alerted the team who will respond as appropriate.

@vukovicpredrag

Copy link
Copy Markdown

Thanks @adiati98 - all four points look good from my side (Copilot's right on --data '' forcing POST, the lead-in reads clearly, Republish Behavior fixes are in, and surfacing the existing placeholder admonition covers Ruth's point). No blockers from me!

@adiati98 adiati98 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Move API replacement instructions before code examples for better visibility.

Comment thread docs/campaigns/exporting_campaigns.rst
Comment thread docs/campaigns/exporting_campaigns.rst Outdated
@vukovicpredrag

Copy link
Copy Markdown

Went through the full docs - overall looks good. Left a few inline comments on small technical fixes, rest is solid. Good job.

Comment thread docs/campaigns/importing_campaigns.rst Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Ayu Adiati <45172775+adiati98@users.noreply.github.com>
@adiati98
adiati98 requested review from a team and adiati98 June 5, 2026 17:31

@adiati98 adiati98 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We need to address the Vale warnings and tidy up some things.

Comment thread docs/campaigns/importing_campaigns.rst
Comment thread docs/campaigns/importing_campaigns.rst
Comment thread docs/campaigns/exporting_campaigns.rst Outdated
Comment thread docs/campaigns/exporting_campaigns.rst
Co-authored-by: Ayu Adiati <45172775+adiati98@users.noreply.github.com>

@vukovicpredrag vukovicpredrag left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Two small CLI flag fixes - details inline:

  1. exporting_campaigns.rst: --json-file should be --json-only (that flag doesn't exist).
  2. command_line_interface.rst: --zip-file is a boolean (VALUE_NONE), so --zip-file=path/... fails. Use --zip-file --path=path/to-file.

Verified against EntityExportCommand / EntityImportCommand in core. Rest of the examples match the codebase.

Comment thread docs/campaigns/exporting_campaigns.rst Outdated
Comment thread docs/configuration/command_line_interface.rst

@adiati98 adiati98 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@vukovicpredrag sorry, I missed your latest review! Are these changes addressing your review correctly?

Comment thread docs/campaigns/exporting_campaigns.rst Outdated
Comment thread docs/configuration/command_line_interface.rst Outdated
@vukovicpredrag

vukovicpredrag commented Jun 12, 2026

Copy link
Copy Markdown

@adiati98 No worries. Both suggestions are correct and address the review exactly. Thank you!

adiati98 added 2 commits June 12, 2026 11:30
Co-authored-by: Ayu Adiati <45172775+adiati98@users.noreply.github.com>
@adiati98

Copy link
Copy Markdown
Contributor

@adiati98 No worries. Both suggestions are correct and address the review exactly. Thank you!

I've committed the changes. Can you please review this again or approve it if you feel like everything's already good to go? Thanks, @vukovicpredrag!

@vukovicpredrag vukovicpredrag left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Re-reviewed against core - everything checks out (UI/CLI import, export flags, API routes, Republish Behavior, plugin validation). Only one minor note on the JSON import example (inline) - can be a quick follow-up. Approving! Thanks @adiati98 🚀

Comment thread docs/campaigns/importing_campaigns.rst Outdated
Comment thread docs/campaigns/importing_campaigns.rst
Comment thread docs/campaigns/importing_campaigns.rst Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 🔎 In review

Development

Successfully merging this pull request may close these issues.

7 participants