Skip to content
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

Release 24.33.1 #6938

Merged
merged 102 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
43c6ef8
RETL refresh draft 1
forstisabella May 15, 2024
c43cbc9
make this truly a landing page
forstisabella May 15, 2024
5795cf3
polish
forstisabella May 16, 2024
2b9779b
rmv "catalog"
forstisabella May 17, 2024
58e7991
finish intros to some of the ref pages
forstisabella May 20, 2024
32938a4
rmv RETL from warehouse yml file
forstisabella May 20, 2024
0b0717e
Merge branch 'develop' into retl-docs-refresh
forstisabella May 20, 2024
f823ef3
parity w other items [netlify-build]
forstisabella May 20, 2024
b659b66
Merge branch 'retl-docs-refresh' of https://github.com/segmentio/segm…
forstisabella May 20, 2024
6e3f3ca
[netlify-build]
forstisabella May 20, 2024
0be9f21
[netlify-build]
forstisabella May 20, 2024
ab0104f
google docs grammar qa [netlify-build]
forstisabella May 20, 2024
98115cf
add extensions docs
forstisabella May 21, 2024
17ee7ad
[netlify-build]
forstisabella May 21, 2024
f3f26d4
Merge branch 'develop' into retl-docs-refresh
forstisabella May 21, 2024
682de65
[netlify-build]
forstisabella May 21, 2024
c68ff00
Apply suggestions from code review
forstisabella May 22, 2024
6028faa
Update src/connections/reverse-etl/reverse-etl-catalog.md
forstisabella May 22, 2024
2e54809
Update src/connections/reverse-etl/system.md
forstisabella May 22, 2024
71fddba
Apply suggestions from code review
forstisabella May 22, 2024
991013e
Update index.md
forstisabella May 22, 2024
ba5d446
fix formatting [netlify-build]
forstisabella May 22, 2024
1bc68b3
Merge branch 'develop' into retl-docs-refresh
forstisabella May 28, 2024
b7a0c15
update w/ new releases [netlify-build]
forstisabella Jun 10, 2024
e9a1859
req'd changes [netlify-build]
forstisabella Jun 10, 2024
e6c6537
again! [netlify build]
forstisabella Jun 10, 2024
737a0c1
[netlify-build]
forstisabella Jun 10, 2024
6490e32
[netlify-build]
forstisabella Jun 10, 2024
184c1b1
[netlify-build]
forstisabella Jun 10, 2024
b56f9e5
Merge branch 'develop' into retl-docs-refresh
forstisabella Jun 12, 2024
3f10fb1
Update index.md Salesforce Auth limitation
lizkane222 Jul 1, 2024
818bbc9
Merge pull request #3 from segmentio/develop
jkaho Jul 10, 2024
9194d25
update and tidy images
jkaho Jul 11, 2024
dbb0a2a
update wording + missing events [netlify-build]
jkaho Jul 11, 2024
9aab77e
replace Insights.js
jkaho Jul 11, 2024
037d96c
use correct property names in code snippet [netlify-build]
jkaho Jul 11, 2024
36c9b07
fix nits [netlify-build]
jkaho Jul 11, 2024
63dc160
Update custom-domain.md
prigiattiperrut Jul 26, 2024
c263b0c
#comment added Authvia source
pgaur-authvia Jul 31, 2024
651ad8c
#comment Update Authvia segment URL
pgaur-authvia Aug 2, 2024
280db46
Merge branch 'develop' into retl-docs-refresh
forstisabella Aug 2, 2024
8830955
add sync overview [netlify-build]
forstisabella Aug 2, 2024
b3760f5
Update src/connections/sources/catalog/cloud-apps/authvia/index.md
pgaur-authvia Aug 5, 2024
f765ff7
Update src/connections/sources/catalog/cloud-apps/authvia/index.md
pgaur-authvia Aug 5, 2024
eec06e7
Update src/connections/sources/catalog/cloud-apps/authvia/index.md
pgaur-authvia Aug 5, 2024
e99785a
Update src/connections/sources/catalog/cloud-apps/authvia/index.md
pgaur-authvia Aug 5, 2024
cc368ca
Update src/connections/sources/catalog/cloud-apps/authvia/index.md
pgaur-authvia Aug 5, 2024
c7bd120
Update src/connections/sources/catalog/cloud-apps/authvia/index.md
pgaur-authvia Aug 5, 2024
5a96414
Update index.md
tbols Aug 5, 2024
e227b2e
add new source docs header
Jul 25, 2024
72fd276
remove beta tags from connections
Aug 7, 2024
6a0bf71
remove beta tags part two
Aug 7, 2024
e883e3f
remove autocreated dests
Aug 7, 2024
3df996f
remove hard coded beta sources and render based on status for source …
Aug 8, 2024
fa724c2
remove commented out code from cloud app note
Aug 8, 2024
0ca8aa8
Add nullify behavior for sql trait.md
estgc Aug 8, 2024
a21cb5a
first couple link text fixes
forstisabella Aug 9, 2024
ebe764a
Update custom-domain.md
prigiattiperrut Aug 9, 2024
a7326fc
Update custom-domain.md
prigiattiperrut Aug 9, 2024
96cf387
CSB no longer operating
forstisabella Aug 9, 2024
89ca4a5
Merge branch 'segmentio:develop' into authvia-source
pgaur-authvia Aug 9, 2024
6155298
Update index.md for Event Properties
pgaur-authvia Aug 9, 2024
9228340
make the changes Marshall requested
forstisabella Aug 9, 2024
b19afd8
[netlify-build]
forstisabella Aug 9, 2024
01d2671
Merge pull request #6925 from segmentio/master
forstisabella Aug 9, 2024
80bb4da
batch 2 the future
forstisabella Aug 9, 2024
2a797b7
Update src/connections/sources/catalog/cloud-apps/authvia/index.md
pgaur-authvia Aug 12, 2024
2d70800
Merge pull request #6897 from pgaur-authvia/authvia-source
forstisabella Aug 12, 2024
98704c7
Merge pull request #6902 from segmentio/tbols-patch-1
pwseg Aug 12, 2024
a69880d
Merge pull request #6927 from segmentio/hidden-fields-troubleshooting…
forstisabella Aug 12, 2024
e81c60a
Merge pull request #6928 from segmentio/master
forstisabella Aug 12, 2024
320705f
last batch + click here's
forstisabella Aug 12, 2024
8c6bea5
remove references to Upload Enhanced Conversion (Legacy) action after…
mgutten Aug 12, 2024
d40c4ef
Apply suggestions from code review
forstisabella Aug 13, 2024
f3324e1
Merge pull request #6923 from segmentio/prigiattiperrut-patch-7
forstisabella Aug 13, 2024
0583929
Merge pull request #6931 from segmentio/mgutten_legacy_google
forstisabella Aug 13, 2024
fcc56d1
Merge pull request #6933 from segmentio/dux-descriptive-link-text
forstisabella Aug 13, 2024
3e5dce4
Apply suggestions from code review
forstisabella Aug 13, 2024
865232a
Merge pull request #6862 from segmentio/prigiattiperrut-patch-4
forstisabella Aug 13, 2024
e3fdac3
Apply suggestions from code review
forstisabella Aug 13, 2024
110929b
Merge pull request #6782 from segmentio/lizkane222-patch-18
forstisabella Aug 13, 2024
1cb0609
Update src/connections/reverse-etl/system.md
forstisabella Aug 13, 2024
c5de281
FAQ updates
forstisabella Aug 13, 2024
a82b27f
Set up RETL page
forstisabella Aug 13, 2024
55011d8
Snowflake setup
forstisabella Aug 13, 2024
587f9d6
Update src/connections/reverse-etl/reverse-etl-source-setup-guides/sn…
forstisabella Aug 13, 2024
7b6b731
Catalog page updates
forstisabella Aug 13, 2024
0406607
Manage RETL (except for JSON, check box wording)
forstisabella Aug 13, 2024
1e01a4e
Update src/connections/reverse-etl/manage-retl.md
forstisabella Aug 13, 2024
ab644bf
codeblock formatting
forstisabella Aug 13, 2024
9d156eb
Merge branch 'retl-docs-refresh' of https://github.com/segmentio/segm…
forstisabella Aug 13, 2024
7ad54b0
Update src/connections/reverse-etl/manage-retl.md
forstisabella Aug 13, 2024
c85d2bb
Update src/connections/reverse-etl/manage-retl.md
forstisabella Aug 13, 2024
73b9010
Merge branch 'develop' into retl-docs-refresh
forstisabella Aug 13, 2024
366fd29
Merge pull request #6808 from algolia/algolia/update
pwseg Aug 13, 2024
8dc8014
libraries cleanup [LIBRARIES-1506]
pwseg Aug 13, 2024
f552619
Merge pull request #6936 from segmentio/analytics-ios-updates
pwseg Aug 13, 2024
b8eb32b
Merge pull request #6915 from segmentio/thomas/betatags-partnerowned
pwseg Aug 13, 2024
8c6f7f4
Merge pull request #6571 from segmentio/retl-docs-refresh
forstisabella Aug 13, 2024
f4b52fa
Merge pull request #6916 from segmentio/estgc-patch-2
pwseg Aug 13, 2024
8907970
catalog
forstisabella Aug 13, 2024
6e9bac4
Merge pull request #6937 from segmentio/catalog-2
forstisabella Aug 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Sources pages check if the source is a cloud-app, then include information about

## Edit pages

Content with in each `.md` file is markdown. For information about styling, and available extensions, see `_src/utils/formatguide.md` or the live version [here](https://segment.com/docs/utils/formatguide).
Content with in each `.md` file is markdown. For information about styling, and available extensions, see `_src/utils/formatguide.md` or the live version in the [utils section of the docs](/docs/utils/formatguide).

## Building a preview

Expand Down
62 changes: 32 additions & 30 deletions scripts/catalog/updateSources.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,28 @@ const PAPI_URL = "https://api.segmentapis.com";

const regionalSupport = yaml.load(fs.readFileSync(path.resolve(__dirname, `../../src/_data/regional-support.yml`)));

// This file keeps a list of known test sources that show up in the system.
// This file keeps a list of known test sources that show up in the system.
// Because we don't have a status value for sources, they end up showing in our catalog.
// We use this below to prevent them from being written to yaml.
const testSources = yaml.load(fs.readFileSync(path.resolve(__dirname, `../../src/_data/catalog/test_sources.yml`)));


const updateSources = async () => {
let sources = []; // Initialize an empty array to hold all sources
let sourcesUpdated = []; // Initialize an empty array to hold all sources that have been updated
let regionalSourcesUpdated = []; // Initialize an empty array to hold updated source regional information
let nextPageToken = "MA=="; // Set the initial page token to the first page
let categories = new Set(); // Initialize an empty set to hold all categories
let sourceCategories = []; // Initialize an empty array to hold all source categories
let sources = []; // Initialize an empty array to hold all sources
let sourcesUpdated = []; // Initialize an empty array to hold all sources that have been updated
let regionalSourcesUpdated = []; // Initialize an empty array to hold updated source regional information
let nextPageToken = "MA=="; // Set the initial page token to the first page
let categories = new Set(); // Initialize an empty set to hold all categories
let sourceCategories = []; // Initialize an empty array to hold all source categories


// Get all sources from the catalog
while (nextPageToken !== undefined) {
const res = await getCatalog(`${PAPI_URL}/catalog/sources/`, nextPageToken);
sources = sources.concat(res.data.sourcesCatalog);
nextPageToken = res.data.pagination.next;
}

// Sort the sources alphabetically
sources.sort((a, b) => {
if (a.name.toLowerCase() < b.name.toLowerCase()) {
Expand All @@ -46,7 +46,7 @@ const updateSources = async () => {
}
return 0;
});

// Set the list of categories for libraries
const libraryCategories = [
'server',
Expand All @@ -55,20 +55,20 @@ const updateSources = async () => {
'roku',
'website'
];

// Here, define some sources that are real, but that we want to hide.
const hiddenSources = [
'amp',
'factual-engine',
'twilio-event-streams-beta',
'ibm-watson-assistant'
];

// More regional stuff
const regionalSourceEndpoint = regionalSupport.sources.endpoint;
const regionalSourceRegion = regionalSupport.sources.region;


// Loop through all sources and create a new object with the data we want
sources.forEach(source => {
let slug = slugify(source.name, "sources");
Expand All @@ -77,14 +77,14 @@ const updateSources = async () => {
let regions = ['us'];
let endpoints = ['us'];
let mainCategory = source.categories[0] ? source.categories[0].toLowerCase() : '';

if (libraryCategories.includes(mainCategory)) {
url = `connections/sources/catalog/libraries/${mainCategory}/${slug}`;
} else {
url = `connections/sources/catalog/cloud-apps/${slug}`;
mainCategory = 'cloud-app';
}

// Sort the settings alphabetically
settings.sort((a, b) => {
if (a.name.toLowerCase() < b.name.toLowerCase()) {
Expand All @@ -95,19 +95,19 @@ const updateSources = async () => {
}
return 0;
});

if (hiddenSources.includes(slug)) {
hidden = true;
}

if (regionalSourceEndpoint.includes(slug)) {
endpoints.push('eu');
}

if (regionalSourceRegion.includes(slug)) {
regions.push('eu');
}

// If the source ID is in the list of test sources, skip it.
// If it's not, add it to the list of sources to be written to yaml.
if (testSources.includes(source.id)) {
Expand All @@ -128,13 +128,15 @@ const updateSources = async () => {
url: source.logos.default
},
categories: source.categories,
status: source.status,
partnerOwned: source.partnerOwned
};
sourcesUpdated.push(updatedSource);
doesCatalogItemExist(updatedSource);
}

source.categories.reduce((s, e) => s.add(e), categories);

// Sources don't yet have regional information in the Public API, so we write that info here.
let updatedRegional = {
id: source.id,
Expand All @@ -147,7 +149,7 @@ const updateSources = async () => {
};
regionalSourcesUpdated.push(updatedRegional);
});

const sourceArray = Array.from(categories);
sourceArray.forEach(category => {
sourceCategories.push({
Expand All @@ -164,36 +166,36 @@ const updateSources = async () => {
return 0;
});
});

const options = {
noArrayIndent: false
};
const todayDate = new Date().toISOString().slice(0, 10);

// Create source catalog YAML file
let output = "# AUTOGENERATED FROM PUBLIC API. DO NOT EDIT\n";
output += "# sources last updated " + todayDate + " \n";
output += yaml.dump({
items: sourcesUpdated
}, options);
fs.writeFileSync(path.resolve(__dirname, `../../src/_data/catalog/sources.yml`), output);

// Create source-category mapping YAML file
output = "# AUTOGENERATED FROM PUBLIC API. DO NOT EDIT\n";
output += "# source categories last updated " + todayDate + " \n";
output += yaml.dump({
items: sourceCategories
}, options);
fs.writeFileSync(path.resolve(__dirname, `../../src/_data/catalog/source_categories.yml`), output);

// Create regional support YAML file
output = yaml.dump({
sources: regionalSourcesUpdated
}, options);
fs.writeFileSync(path.resolve(__dirname, `../../src/_data/catalog/regional-supported.yml`), output);

console.log("sources done");
};


exports.updateSources = updateSources;
exports.updateSources = updateSources;
8 changes: 2 additions & 6 deletions scripts/catalog/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,7 @@ const doesCatalogItemExist = (item) => {
let content = `---\ntitle: '${item.display_name} Source'\nhidden: true\n---`;

if (!docsPath.includes('/sources/')) {
let betaFlag = '';
if (item.status === 'PUBLIC_BETA') {
betaFlag = 'beta: true\n';
}
content = `---\ntitle: '${item.display_name} Destination'\nhidden: true\nid: ${item.id}\npublished: false\n${betaFlag}---\n`;
content = `---\ntitle: '${item.display_name} Destination'\nhidden: true\nid: ${item.id}\npublished: false\n`;
}

fs.mkdirSync(docsPath);
Expand Down Expand Up @@ -172,4 +168,4 @@ exports.getCatalog = getCatalog;
exports.getConnectionModes = getConnectionModes;
exports.isCatalogItemHidden = isCatalogItemHidden;
exports.sanitize = sanitize;
exports.doesCatalogItemExist = doesCatalogItemExist;
exports.doesCatalogItemExist = doesCatalogItemExist;
26 changes: 0 additions & 26 deletions src/_data/catalog/beta_sources.yml

This file was deleted.

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-09
# destination categories last updated 2024-08-13
items:
- display_name: A/B Testing
slug: a-b-testing
Expand Down
Loading