Skip to content

Commit f1f6a78

Browse files
authored
Merge pull request #4432 from segmentio/develop
Release 23.11.2
2 parents ea51123 + 0f66615 commit f1f6a78

File tree

25 files changed

+1937
-4783
lines changed

25 files changed

+1937
-4783
lines changed

.github/styles/Vocab/Docs/accept.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ Okta
112112
Omnichannel
113113
onboarding
114114
Optimizely
115+
Outfunnel
115116
param(:?s)
116117
Pardot
117118
Passcode

scripts/catalog_papi.js

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ const updateSources = async () => {
336336
const updateDestinations = async () => {
337337
let destinations = []
338338
let destinationsUpdated = []
339-
let regionalDestinationsUpdated = []
340339
let destinationCategories = []
341340
let categories = new Set()
342341
let nextPageToken = "MA=="
@@ -357,25 +356,23 @@ const updateDestinations = async () => {
357356
return 0;
358357
})
359358

360-
const regionalDestinationEndpoints = regionalSupport.destinations.endpoint
361-
const regionalDestinationRegions = regionalSupport.destinations.region
362-
363359

364360
destinations.forEach(destination => {
365-
let endpoints = ['us']
366-
let regions = ['us']
361+
let endpoints = []
362+
let regions = []
367363

368364
let slug = slugify(destination.name)
369-
370-
if (regionalDestinationEndpoints.includes(slug)) {
371-
endpoints.push('eu')
365+
366+
if (typeof destination.supportedRegions != "undefined") {
367+
regions = destination.supportedRegions
368+
} else {
369+
regions.push('us-west-2','eu-west-1')
372370
}
373-
374-
if (regionalDestinationRegions.includes(slug)) {
375-
regions.push('eu')
371+
if (typeof destination.regionEndpoints != "undefined"){
372+
endpoints = destination.regionEndpoints
373+
} else {
374+
endpoints.push('US')
376375
}
377-
378-
379376
let url = `connections/destinations/catalog/${slug}`
380377

381378
let tempCategories = [destination.categories]
@@ -463,16 +460,6 @@ const updateDestinations = async () => {
463460
doesCatalogItemExist(updatedDestination)
464461
tempCategories.reduce((s, e) => s.add(e), categories)
465462

466-
let updatedRegionalDestination = {
467-
id: destination.id,
468-
display_name: destination.name,
469-
slug,
470-
url,
471-
regions,
472-
endpoints
473-
}
474-
475-
regionalDestinationsUpdated.push(updatedRegionalDestination)
476463
})
477464

478465

@@ -514,13 +501,6 @@ const updateDestinations = async () => {
514501
}, options);
515502
fs.writeFileSync(path.resolve(__dirname, `../src/_data/catalog/destination_categories.yml`), output);
516503

517-
// Append regional destinations to regional file
518-
output = yaml.dump({
519-
destinations: regionalDestinationsUpdated
520-
}, {
521-
noArrayIndent: false
522-
})
523-
fs.appendFileSync(path.resolve(__dirname, `../src/_data/catalog/regional-supported.yml`), output);
524504
console.log("destinations done")
525505
}
526506

src/_data/catalog/destination_categories.yml

Lines changed: 1 addition & 1 deletion
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 2023-03-14
2+
# destination categories last updated 2023-03-16
33
items:
44
- display_name: A/B Testing
55
slug: a-b-testing

0 commit comments

Comments
 (0)