Skip to content

Commit 61b9326

Browse files
author
Luca Bassani
committed
docs: improve descriptions
1 parent b50e095 commit 61b9326

2 files changed

Lines changed: 30 additions & 40 deletions

File tree

README.md

Lines changed: 23 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
[![npm](https://badgen.net/npm/v/plugin-analytics-connected-objects)](https://www.npmjs.com/package/plugin-analytics-connected-objects)
44
[![downloads](https://badgen.net/npm/dw/plugin-analytics-connected-objects)](https://www.npmjs.com/package/plugin-analytics-connected-objects)
55

6-
The plugin enhances the productivity of CRMA developers and release managers by automating manual procedural tasks related to connected objects. Nowadays, each time a new field is used in recipes, the user tracks the field in notes. Later, when there's a need to migrate the recipe to a higher environment, the user manually checks off each field one by one in the connected objects according to the taken notes.
6+
This Salesforce CLI (`sf`) plugin automates the configuration of connected objects and fields within **CRM Analytics** > **Data Manager** > **Connections**.
77

8-
The process is highly manual, and forgetting to track certain fields often causes recipe run failures. The run failures highlight one field at a time, and the process should be repeated until the first successful run.
8+
The plugin upserts (creates if missing, or updates) connected objects (also called replicated datasets) and their fields in the target environment based on the input nodes of either specific recipes or all recipes in your repository.
99

10-
The command, which can be executed locally or inserted into a CI/CD pipeline, verifies the required fields from the recipes and marks them in the environment within seconds.
11-
12-
> [!NOTE]
13-
> Despite the warning message indicating partial support for ESM plugins in OCLIF, rest assured that the plugins will function as expected.
10+
If you manually configure CRM Analytics via the user interface in your target environments, this plugin is not required. However, if you deploy recipes from one environment to another, it eliminates the error-prone task of manually checking off individual objects and fields in the Data Manager, preventing recipe execution failures.
1411

1512
## Install
1613

@@ -38,48 +35,44 @@ using this links.
3835

3936
## Contributing
4037

41-
1. Create a new issue before starting your project so that we can keep track of
42-
what you are trying to add/fix. That way, we can also offer suggestions or
43-
let you know if there is already an effort in progress.
44-
2. Fork this repository.
45-
3. Build the plugin locally.
46-
4. Write appropriate tests for your changes. Try to achieve at least 75% code coverage on any new code.
47-
Nuts are required, but code coverage will be based on unit tests only.
48-
5. Send us a pull request when you are done (linking the issue previously created).
49-
We'll review your code, suggest any needed changes, and merge it in.
38+
1. **Create a new issue** before starting your work so we can track what you want to add or fix. This allows us to offer suggestions or let you know if there is already an ongoing effort.
39+
2. **Fork** this repository.
40+
3. **Build** the plugin locally.
41+
4. **Write appropriate tests** for your changes. Aim for at least 75% code coverage on any new code. NUTs (Non-Unit Tests) are required, though code coverage metrics are based on unit tests only.
42+
5. Run `oclif readme` to update the documentation if commands or flags were changed.
43+
6. **Submit a pull request** when you are finished, making sure to link the previously created issue. We will review your code, suggest any necessary changes, and merge it.
5044

5145
## Commands
5246

5347
<!-- commands -->
54-
55-
- [`sf analytics connected-objects upsert`](#sf-analytics-connected-objects-upsert)
48+
* [`sf analytics connected-objects upsert`](#sf-analytics-connected-objects-upsert)
5649

5750
## `sf analytics connected-objects upsert`
5851

5952
Create/update the analytics connected objects and fields according to the ones mentioned in the given recipes.
6053

6154
```
6255
USAGE
63-
$ sf analytics connected-objects upsert -o <value> [--json] [-a <value>] [-n <value> | --all] [--verbose]
56+
$ sf analytics connected-objects upsert -o <value> [--json] [--flags-dir <value>] [-a <value>] [-n <value>... | --all]
57+
[--verbose]
6458
6559
FLAGS
6660
-a, --api-version=<value> Target API version for the callouts.
67-
-n, --recipe-names=<value>... The name of the recipes you want to evaluate
61+
-n, --recipe-names=<value>... The names of the recipes to consider
6862
-o, --target-org=<value> (required) Login username or alias for the target org.
69-
--all Evaluate all recipes in your repository
70-
--verbose Print the changed fields into the outcome table
63+
--all Consider all recipes in the repository
64+
--verbose Enriches the JSON output with a detailed list of the fields added to the target org
7165
7266
GLOBAL FLAGS
73-
--json Format output as json.
67+
--flags-dir=<value> Import flag values from a directory.
68+
--json Format output as json.
7469
7570
DESCRIPTION
7671
Create/update the analytics connected objects and fields according to the ones mentioned in the given recipes.
7772
78-
Create/update the analytics connected object and fields, keeping the existing ones and adding the new detected.
79-
The diff check is perfomed comparing the target org connections and the object and fields in the input nodes of the
80-
given recipe or recipes (in your repository).
81-
Use "--all" to consider all recipes in your repository.
82-
In case a new object is added a connection, the connection mode will be the default one.
73+
Upsert connected objects and fields in the target org based on the input nodes of your local recipes.
74+
Existing connections are preserved, and newly detected objects or fields are appended. If a new object connection is
75+
created, it uses the default connection mode. Use "--all" to evaluate all recipes in the repository.
8376
8477
EXAMPLES
8578
Create/update objects and fields in analytics connections given a recipe in your local repository
@@ -99,14 +92,13 @@ FLAG DESCRIPTIONS
9992
10093
Use this flag to override the default API version, which is the latest version supported the CLI
10194
102-
-n, --recipe-names=<value>... The name of the recipes you want to evaluate
95+
-n, --recipe-names=<value>... The names of the recipes to consider
10396
104-
The api name of the recipes in your repository, which objects and fields will be considered in the diff check the
105-
org connections
97+
The API names of the recipes in your repository whose input node objects and fields will be configured in the target
98+
org
10699
107100
-o, --target-org=<value> Login username or alias for the target org.
108101
109102
Overrides your default org.
110103
```
111-
112104
<!-- commandsstop -->

messages/connected-objects.upsert.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
# summary
22

3-
Create/update the analytics connected objects and fields according to the ones mentioned in the given recipes.
3+
Upsert CRM Analytics Connected Objects and fields according to the ones mentioned in the given recipes.
44

55
# description
66

7-
Create/update the analytics connected object and fields, keeping the existing ones and adding the new detected.
8-
The diff check is perfomed comparing the target org connections and the object and fields in the input nodes of the given recipe or recipes (in your repository).
9-
Use "--all" to consider all recipes in your repository.
10-
In case a new object is added a connection, the connection mode will be the default one.
7+
Upsert CRM Analytics Connected Objects (also known as Replicated Datasets) and fields in the target org based on the input nodes of your local recipes.
8+
Existing connections are preserved, and newly detected objects or fields are added. If a new object connection is created, it uses the default connection mode. Use "--all" to evaluate all recipes in the repository.
119

1210
# examples
1311

@@ -25,19 +23,19 @@ In case a new object is added a connection, the connection mode will be the defa
2523

2624
# flags.recipe-names.summary
2725

28-
The name of the recipes you want to evaluate
26+
The names of the recipes to consider
2927

3028
# flags.recipe-names.description
3129

32-
The api name of the recipes in your repository, which objects and fields will be considered in the diff check the org connections
30+
The API names of the recipes in your repository whose input node objects and fields will be configured in the target org
3331

3432
# flags.all.summary
3533

36-
Evaluate all recipes in your repository
34+
Consider all recipes in the repository
3735

3836
# flags.verbose.summary
3937

40-
Print the changed fields into the outcome table
38+
Enriches the JSON output with a detailed list of the fields added to the target org
4139

4240
# recipes.not.found
4341

0 commit comments

Comments
 (0)