Campaign import export user docs#361
Conversation
|
Note that these docs should be targeted to Mautic v7.x but that branch is not available yet. |
passive -> active... hopefully
Co-authored-by: Ruth Cheesley <ruth@ruthcheesley.co.uk>
5defae6 to
4f4b529
Compare
|
Added further parameter to the command line for export |
…nd_line_interface.rst
adiati98
left a comment
There was a problem hiding this comment.
@mautic/core-team @RCheesley,
As these are new pages, I deliberately took the initiative to adjust the wordings, restructure, and add images to make them clearer and consistent.
Therefore, I need your help to review the content thoroughly.
Additionally, I left some questions in this PR on the comments. TIA! ✨
@mautic/core-team any thoughts on this? |
| When you select a Campaign, the export feature extracts all Campaign data and entities, along with any dependencies the Campaign needs to function, including: | ||
|
|
||
| * Dynamic Content | ||
| * Asset\* |
There was a problem hiding this comment.
What does this asterisk indicate? I'd like us to include the reference if we're referring to something, right after these bullets.
|
|
||
| .. code-block:: bash | ||
|
|
||
| curl --location 'https://{your-mautic-domain}/api/campaigns/export/1' \ |
There was a problem hiding this comment.
I wonder if we should make it explicit here that you replace everything in {your-mautic-domain} including the curly braces, or would that be obvious? Also we use that here, and example.com later. Why not use the same?
|
|
||
| #. Ensures inclusion of Campaign data, external Assets, and Dynamic Content. | ||
|
|
||
| #. Select **Actions** option from the dropdown menu for the **Campaign** and **Segment** entities. Choose either **Update entity** or **Create new entity**. |
There was a problem hiding this comment.
I think we should explain what each does and why you see it - e.g. update entity suggests that it has found this already existing in Mautic, and it'll update with any changes compared to what's there (could be destructive, might overwrite changes). Create new will force it to create a new entity, even if something that matches is found. Safer option but can lead to duplication of resources.
|
|
||
| | | ||
|
|
||
| #. Click **Yes** when a prompt message appears. |
There was a problem hiding this comment.
We should link to the docs which explain what this means. Clicking yes can have consequences. Publishing a campaign without checking it first could also be disastrous. I think we need to add a clear warning here, that once you publish a campaign, it immediately starts running. People must check that they understand what the campaign is doing, and verify each step of the way, before they decide to turn it on. Red warning admonition called for, I think.
There was a problem hiding this comment.
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.
|
|
||
| .. vale off | ||
|
|
||
| How the exporting Campaigns works |
There was a problem hiding this comment.
Section title grammar: How the exporting Campaigns works is ungrammatical and may read oddly in navigation/search. Consider renaming to something like How exporting Campaigns works or How Campaign export works for clarity and consistency.
| How the exporting Campaigns works | |
| How Campaign export works |
|
|
||
| .. vale off | ||
|
|
||
| How the importing Campaign works |
There was a problem hiding this comment.
Section title grammar: How the importing Campaign works reads ungrammatical. Consider renaming to How importing Campaigns works or How Campaign import works to improve readability and consistency with the rest of the docs.
| How the importing Campaign works | |
| How Campaign import works |
| - Imports Contacts from a CSV file | ||
| - If the CSV import is configured to run in background then this command will pick up the pending import jobs and imports the data from CSV files to Mautic. |
There was a problem hiding this comment.
This list-table has 3 columns (Command / Description / Aliases), but the mautic:import row currently provides two description lines without an Aliases cell. In a reST list-table, each row must have the same number of cells; consider using a multi-line description within a single cell (e.g., | continuation) and keep the Aliases cell empty (-).
| - Imports Contacts from a CSV file | |
| - If the CSV import is configured to run in background then this command will pick up the pending import jobs and imports the data from CSV files to Mautic. | |
| - | Imports Contacts from a CSV file | |
| | If the CSV import is configured to run in background then this command will pick up the pending import jobs and imports the data from CSV files to Mautic. | |
| - |
| * Dynamic Content | ||
| * Asset\* | ||
| * Other related dependencies | ||
|
|
There was a problem hiding this comment.
Asset\* includes an asterisk but there’s no corresponding footnote/explanation in this document. Either add the footnote text (e.g., explaining what’s included/excluded for Assets) or remove the asterisk to avoid confusing readers.
| .. note:: | |
| The asterisk (*) indicates that only Assets directly associated with the exported Campaign are included. |
| --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ | ||
| --data '' |
There was a problem hiding this comment.
The cURL example uses --data '' with an export endpoint, but providing --data makes curl send a POST request (even if empty). Since this export endpoint is described as a GET, remove --data (or explicitly use --request GET) to avoid users making the wrong HTTP method call.
| --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ | |
| --data '' | |
| --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' |
Co-authored-by: Ruth Cheesley <ruth@ruthcheesley.co.uk> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Added descriptions for campaign import and campaign export.