Skip to content

Release 24.32.2 #6920

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ Front matter variables have unique functions, including the following:
- `hide-boilerplate`: defaults to false. When true, none of the content from `destination-footer.md` is appended to the destination page.
- `hide-cmodes`: defaults to false. A renaming of "rewrite" for more clarity, hides the connection modes table in the boilerplate.
- `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.
- `hide_actions`: used to hide individual actions. Requires the `id` and `name` of each action.
- `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.
- `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.
- `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.
Expand Down
15 changes: 12 additions & 3 deletions scripts/catalog/updateDestinations.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ require('dotenv').config();

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

// Function to remove hidden fields from action
const removeHiddenFields=function (actions) {
return actions.map(action => ({
...action,
fields: action.fields.filter(field => !field.hidden)
})
);
}


const updateDestinations = async () => {
let destinations = [];
Expand Down Expand Up @@ -88,9 +97,9 @@ const updateDestinations = async () => {
settings.forEach(setting => {
setting.description = sanitize(setting.description);
});
let actions = destination.actions;
let presets = destination.presets;

let actions = removeHiddenFields(destination.actions);
let presets = destination.presets;

const clone = (obj) => Object.assign({}, obj);
const renameKey = (object, key, newKey) => {
Expand Down
2 changes: 1 addition & 1 deletion src/_data/catalog/destination_categories.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# AUTOGENERATED FROM PUBLIC API. DO NOT EDIT
# destination categories last updated 2024-08-06
# destination categories last updated 2024-08-08
items:
- display_name: A/B Testing
slug: a-b-testing
Expand Down
Loading
Loading