Skip to content

Commit 37d93cb

Browse files
authored
Merge pull request #6920 from segmentio/develop
Release 24.32.2
2 parents fa2b350 + 5f24f80 commit 37d93cb

File tree

12 files changed

+49
-2058
lines changed

12 files changed

+49
-2058
lines changed

CONTRIBUTING.md

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ Front matter variables have unique functions, including the following:
109109
- `hide-boilerplate`: defaults to false. When true, none of the content from `destination-footer.md` is appended to the destination page.
110110
- `hide-cmodes`: defaults to false. A renaming of "rewrite" for more clarity, hides the connection modes table in the boilerplate.
111111
- `hide-personas-partial`: defaults to false. When true, hides the section of content from `destination-footer.md` that talks about being able to receive personas data.
112+
- `hide_actions`: used to hide individual actions. Requires the `id` and `name` of each action.
112113
- `integration_type`: This is set in the `_config.yml` on three paths to add a noun (Source, Destination, or Warehouse) to the end of the title, and the end of the title tag in the html layout. It also controls the layout and icon for some of these.
113114
- `source-type`: These are only used to supplement when a Cloud App in the sources path doesn't appear in the Config API list, and needs its type explicitly set. It runs some logic in the `cloud-app-note.md` to explain which cloud-apps are object vs event sources.
114115
- `private`: Used to indicate that a destination is not publicly available (Private Beta or Pilot status), and is not available in the public catalog. When `private: true`, the build pulls integration metadata from `src/_data/catalog/destinations_private.yml`. To update the list of private destinations, use the `make private_destination` command, and enter the integration's ID when prompted.

scripts/catalog/updateDestinations.js

+12-3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ require('dotenv').config();
1414

1515
const PAPI_URL = "https://api.segmentapis.com";
1616

17+
// Function to remove hidden fields from action
18+
const removeHiddenFields=function (actions) {
19+
return actions.map(action => ({
20+
...action,
21+
fields: action.fields.filter(field => !field.hidden)
22+
})
23+
);
24+
}
25+
1726

1827
const updateDestinations = async () => {
1928
let destinations = [];
@@ -88,9 +97,9 @@ const updateDestinations = async () => {
8897
settings.forEach(setting => {
8998
setting.description = sanitize(setting.description);
9099
});
91-
92-
let actions = destination.actions;
93-
let presets = destination.presets;
100+
101+
let actions = removeHiddenFields(destination.actions);
102+
let presets = destination.presets;
94103

95104
const clone = (obj) => Object.assign({}, obj);
96105
const renameKey = (object, key, newKey) => {

src/_data/catalog/destination_categories.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AUTOGENERATED FROM PUBLIC API. DO NOT EDIT
2-
# destination categories last updated 2024-08-06
2+
# destination categories last updated 2024-08-08
33
items:
44
- display_name: A/B Testing
55
slug: a-b-testing

0 commit comments

Comments
 (0)