Skip to content

Commit 72c5295

Browse files
sandersonjstirnamangwossumdanloPeter Barnett
authored
InfluxDB 3 Core & InfluxDB 3 Enterprise alpha release (#5760)
* WIP monolith docs * WIP monolith * updated alpha shortcode * template updates for v3 and pro * SQL & InfluxQL reference docs for Pro and OSS v3 (#5718) * point to shared influxql source files * add sql and influxql references to pro and oss v3 docs * Apply suggestions from code review Co-authored-by: Jason Stirnaman <[email protected]> * ported changes to distributed influxql refs --------- Co-authored-by: Jason Stirnaman <[email protected]> * Influxdb3 restructure (#5744) * WIP monolith naming restructure * rebuild homepage * updated broken home links * stabs in the dark * fixed duplicate-oss shortcode * move clustered and cloud-dedicated * clean-up serverless cruft * add distributed product redirects * standarize productPathData * switch back to findRE for productPathData * remove debugging code * move cloud dedicated content * new product dropdown * Jstirnaman/influxdb3 restructure (#5743) * LDAPS and LDAP Client Certificate Docs Add documentation via LDAP sample configuration for LDAPS and LDAP client certificates. These are new features in the yet-to-be released Enterprise 1.11.7 * Update bucket-schema.md ndjson.org goes to some sort of sports betting site. https://jsonlines.org/ is probably a better site. * fix(partitioning): improve clarity and consistency in partitioning, apply suggestions from @reidkaufmann * update shared links to use ambiguous version * WIP monolith docs * template updates for v3 and pro * move clustered and cloud-dedicated * switch back to findRE for productPathData * move cloud dedicated content * chore(influxdb3): port cloud-dedicated URLs from recent commit * chore(influxdb3/clustered): fix and update links * removed merge cruft --------- Co-authored-by: Geoffrey Wossum <[email protected]> Co-authored-by: Daniel Lo <[email protected]> Co-authored-by: Scott Anderson <[email protected]> --------- Co-authored-by: Jason Stirnaman <[email protected]> Co-authored-by: Geoffrey Wossum <[email protected]> Co-authored-by: Daniel Lo <[email protected]> * added and styled alpha banner, updated producted selector styles and js * updated alpha link styles * updated discord link text * updated alpha message * fix page title * Initial Files * Initial Files * InfluxDB 3 Enterprise CLI docs (#5745) * WIP influxdb3 cli * fix page title * influxdb3 enterprise cli * Apply suggestions from code review Co-authored-by: Jason Stirnaman <[email protected]> --------- Co-authored-by: Jason Stirnaman <[email protected]> * fix(js): initialize CodePlaceholder on content loaded, small refactor toward component pattern. * updated URL modal for core and enterprise * remove testing code on install page * InfuxDB 3 Enterprise configuration options (#5749) * fix page title * add enterprise 3 configuration options * revert command updates to avoid conflicts * updated config option name * CLI updates, reorg, and photos * updated host-id option to writer-id * InfluxDB 3 Core CLI (#5750) * WIP make influxdb3 docs shared * finish making influxdb3 enterprise cli shared * add influxdb3 core cli docs * update config option name * updated host-id to writer-id * updated a few more host-id options to writer-id * InfluxDB 3 Core configuration options (#5752) * added missing enterprise config options * add influxdb3 core config options, update enterprise options * minor fixes in core config options * update search integration data (#5753) * Add shared v3 line protocol doc to Core and Enterprise (#5754) * add shared v3 line protocol doc to core and enterprise * Update content/shared/v3-line-protocol.md Co-authored-by: Jason Stirnaman <[email protected]> --------- Co-authored-by: Jason Stirnaman <[email protected]> * feat: update getting started guides * Update content/influxdb3/core/_index.md * Update content/influxdb3/core/_index.md * update use of 3.0 and v3 to just 3 * add basic download/install instructions (#5756) * chore(monolith): port Enterprise and Core get-started guides to shared for reuse as /index and /get-started * fix(monolith): reapply previous description change * Jts/update Get started for monolith (#5759) * fix(monolith): get-started cleanup (spelling, style, APIs) - Finished Enterprise for now, not ported to Core. * fix(monolith): python sample columns * fix(monolith): Ports edits to Core, misc. fixes * update alpha message * add state to product dropdown items --------- Co-authored-by: Jason Stirnaman <[email protected]> Co-authored-by: Geoffrey Wossum <[email protected]> Co-authored-by: Daniel Lo <[email protected]> Co-authored-by: Peter Barnett <[email protected]> Co-authored-by: Jason Stirnaman <[email protected]> Co-authored-by: Paul Dix <[email protected]>
1 parent fb2e3de commit 72c5295

File tree

1,998 files changed

+95781
-86815
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,998 files changed

+95781
-86815
lines changed

assets/js/code-placeholders.js

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
const placeholderWrapper = '.code-placeholder-wrapper';
22
const placeholderElement = 'var.code-placeholder';
3-
const codePlaceholders = $(placeholderElement);
43
const editIcon = "<span class='code-placeholder-edit-icon cf-icon Pencil'></span>";
54

65
// When clicking a placeholder, append the edit input
7-
codePlaceholders.on('click', function() {
8-
var placeholderData = $(this)[0].dataset;
9-
var placeholderID = placeholderData.codeVar;
10-
var placeholderValue = placeholderData.codeVarValue;
11-
var placeholderInputWrapper = $('<div class="code-input-wrapper"></div>');
12-
var placeholderInput = `<input class="placeholder-edit" id="${placeholderID}" value="${placeholderValue}" spellcheck=false onblur="submitPlaceholder($(this))" oninput="updateInputWidth($(this))" onkeydown="closeOnEnter($(this)[0], event)"></input>`;
13-
14-
$(this).before(placeholderInputWrapper)
15-
$(this).siblings('.code-input-wrapper').append(placeholderInput);
16-
$(`input#${placeholderID}`).width(`${placeholderValue.length}ch`);
17-
$(`input#${placeholderID}`).focus().select();
18-
$(this).css('opacity', 0);
19-
})
6+
function handleClick(element) {
7+
$(element).on('click', function() {
8+
var placeholderData = $(this)[0].dataset;
9+
var placeholderID = placeholderData.codeVar;
10+
var placeholderValue = placeholderData.codeVarValue;
11+
var placeholderInputWrapper = $('<div class="code-input-wrapper"></div>');
12+
var placeholderInput = `<input class="placeholder-edit" id="${placeholderID}" value="${placeholderValue}" spellcheck=false onblur="submitPlaceholder($(this))" oninput="updateInputWidth($(this))" onkeydown="closeOnEnter($(this)[0], event)"></input>`;
13+
14+
$(this).before(placeholderInputWrapper)
15+
$(this).siblings('.code-input-wrapper').append(placeholderInput);
16+
$(`input#${placeholderID}`).width(`${placeholderValue.length}ch`);
17+
$(`input#${placeholderID}`).focus().select();
18+
$(this).css('opacity', 0);
19+
});
20+
}
2021

2122
function submitPlaceholder(placeholderInput) {
2223
var placeholderID = placeholderInput.attr('id');
@@ -41,4 +42,15 @@ function closeOnEnter(input, event) {
4142
if (event.which == 13) {
4243
input.blur();
4344
}
44-
}
45+
}
46+
47+
function CodePlaceholder({element}) {
48+
handleClick(element);
49+
}
50+
51+
$(function() {
52+
const codePlaceholders = $(placeholderElement);
53+
codePlaceholders.each(function() {
54+
CodePlaceholder({element: this});
55+
});
56+
});

assets/js/influxdb-url.js

Lines changed: 76 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
var placeholderUrls = {
22
oss: 'http://localhost:8086',
33
cloud: 'https://cloud2.influxdata.com',
4+
core: 'http://localhost:8181',
5+
enterprise: 'http://localhost:8181',
46
serverless: 'https://cloud2.influxdata.com',
57
dedicated: 'cluster-id.a.influxdb.io',
68
clustered: 'cluster-host.com',
79
};
810

911
/*
10-
NOTE: The defaultUrls variable is defined in assets/js/cookies.js
12+
NOTE: The defaultUrls variable is defined in assets/js/local-storage.js
1113
*/
1214

1315
var elementSelector = '.article--content pre:not(.preserve)';
@@ -16,11 +18,15 @@ var elementSelector = '.article--content pre:not(.preserve)';
1618
function context() {
1719
if (/\/influxdb\/cloud\//.test(window.location.pathname)) {
1820
return 'cloud';
19-
} else if (/\/influxdb\/cloud-serverless/.test(window.location.pathname)) {
21+
} else if (/\/influxdb3\/core/.test(window.location.pathname)) {
22+
return 'core';
23+
} else if (/\/influxdb3\/enterprise/.test(window.location.pathname)) {
24+
return 'enterprise';
25+
} else if (/\/influxdb3\/cloud-serverless/.test(window.location.pathname)) {
2026
return 'serverless';
21-
} else if (/\/influxdb\/cloud-dedicated/.test(window.location.pathname)) {
27+
} else if (/\/influxdb3\/cloud-dedicated/.test(window.location.pathname)) {
2228
return 'dedicated';
23-
} else if (/\/influxdb\/clustered/.test(window.location.pathname)) {
29+
} else if (/\/influxdb3\/clustered/.test(window.location.pathname)) {
2430
return 'clustered';
2531
} else if (
2632
/\/(enterprise_|influxdb).*\/v[1-2]\//.test(window.location.pathname)
@@ -35,8 +41,8 @@ function context() {
3541
///////////////////////// Session-management functions /////////////////////////
3642
////////////////////////////////////////////////////////////////////////////////
3743

38-
// Retrieve the user's InfluxDB preference (cloud or oss) from the influxdb_pref session cookie
39-
// Default is cloud.
44+
// Retrieve the user's InfluxDB preference (cloud or oss) from the influxdb_pref
45+
// local storage key. Default is cloud.
4046
function getURLPreference() {
4147
return getPreference('influxdb_url');
4248
}
@@ -47,20 +53,24 @@ function setURLPreference(preference) {
4753
}
4854

4955
/*
50-
influxdata_docs_urls cookie object keys:
56+
influxdata_docs_urls local storage object keys:
5157
5258
- oss
5359
- cloud
60+
- core
61+
- enterprise
5462
- dedicated
5563
- clustered
5664
- prev_oss
5765
- prev_cloud
66+
- prev_core
67+
- prev_enterprise
5868
- prev_dedicated
5969
- prev_clustered
6070
- custom
6171
*/
6272

63-
// Store URLs in the urls session cookies
73+
// Store URLs in the urls local storage object
6474
function storeUrl(context, newUrl, prevUrl) {
6575
urlsObj = {};
6676
urlsObj['prev_' + context] = prevUrl;
@@ -69,20 +79,20 @@ function storeUrl(context, newUrl, prevUrl) {
6979
setInfluxDBUrls(urlsObj);
7080
}
7181

72-
// Store custom URL in the url session cookie.
82+
// Store custom URL in the url local storage object
7383
// Used to populate the custom URL field
7484
function storeCustomUrl(customUrl) {
7585
setInfluxDBUrls({ custom: customUrl });
7686
$('input#custom[type=radio]').val(customUrl);
7787
}
7888

79-
// Set a URL in the urls session cookie to an empty string
89+
// Set a URL in the urls local storage object to an empty string
8090
// Used to clear the form when custom url input is left empty
8191
function removeCustomUrl() {
8292
removeInfluxDBUrl('custom');
8393
}
8494

85-
// Store a product URL in the urls session cookie
95+
// Store a product URL in the urls local storage object
8696
// Used to populate the custom URL field
8797
function storeProductUrl(product, productUrl) {
8898
urlsObj = {};
@@ -92,7 +102,7 @@ function storeProductUrl(product, productUrl) {
92102
$(`input#${product}-url-field`).val(productUrl);
93103
}
94104

95-
// Set a product URL in the urls session cookie to an empty string
105+
// Set a product URL in the urls local storage object to an empty string
96106
// Used to clear the form when dedicated url input is left empty
97107
function removeProductUrl(product) {
98108
removeInfluxDBUrl(product);
@@ -118,36 +128,44 @@ function addPreserve() {
118128
});
119129
}
120130

121-
// Retrieve the currently selected URLs from the urls session cookie.
131+
// Retrieve the currently selected URLs from the urls local storage object.
122132
function getUrls() {
123133
var storedUrls = getInfluxDBUrls();
124134
var currentCloudUrl = storedUrls.cloud;
125135
var currentOSSUrl = storedUrls.oss;
136+
var currentCoreUrl = storedUrls.core;
137+
var currentEnterpriseUrl = storedUrls.enterprise;
126138
var currentServerlessUrl = storedUrls.serverless;
127139
var currentDedicatedUrl = storedUrls.dedicated;
128140
var currentClusteredUrl = storedUrls.clustered;
129141
var urls = {
130142
oss: currentOSSUrl,
131143
cloud: currentCloudUrl,
144+
core: currentCoreUrl,
145+
enterprise: currentEnterpriseUrl,
132146
serverless: currentServerlessUrl,
133147
dedicated: currentDedicatedUrl,
134148
clustered: currentClusteredUrl,
135149
};
136150
return urls;
137151
}
138152

139-
// Retrieve the previously selected URLs from the from the urls session cookie.
153+
// Retrieve the previously selected URLs from the from the urls local storage object.
140154
// This is used to update URLs whenever you switch between browser tabs.
141155
function getPrevUrls() {
142156
var storedUrls = getInfluxDBUrls();
143157
var prevCloudUrl = storedUrls.prev_cloud;
144158
var prevOSSUrl = storedUrls.prev_oss;
159+
var prevCoreUrl = storedUrls.prev_core;
160+
var prevEnterpriseUrl = storedUrls.prev_enterprise;
145161
var prevServerlessUrl = storedUrls.prev_serverless;
146162
var prevDedicatedUrl = storedUrls.prev_dedicated;
147163
var prevClusteredUrl = storedUrls.prev_clustered;
148164
var prevUrls = {
149165
oss: prevOSSUrl,
150166
cloud: prevCloudUrl,
167+
core: prevCoreUrl,
168+
enterprise: prevEnterpriseUrl,
151169
serverless: prevServerlessUrl,
152170
dedicated: prevDedicatedUrl,
153171
clustered: prevClusteredUrl,
@@ -161,6 +179,8 @@ function updateUrls(prevUrls, newUrls) {
161179
var prevUrlsParsed = {
162180
oss: {},
163181
cloud: {},
182+
core: {},
183+
enterprise: {},
164184
serverless: {},
165185
dedicated: {},
166186
clustered: {},
@@ -169,6 +189,8 @@ function updateUrls(prevUrls, newUrls) {
169189
var newUrlsParsed = {
170190
oss: {},
171191
cloud: {},
192+
core: {},
193+
enterprise: {},
172194
serverless: {},
173195
dedicated: {},
174196
clustered: {},
@@ -206,6 +228,12 @@ function updateUrls(prevUrls, newUrls) {
206228
{ replace: prevUrlsParsed.serverless, with: newUrlsParsed.serverless },
207229
{ replace: prevUrlsParsed.oss, with: newUrlsParsed.serverless },
208230
];
231+
var coreReplacements = [
232+
{ replace: prevUrlsParsed.core, with: newUrlsParsed.core },
233+
];
234+
var enterpriseReplacements = [
235+
{ replace: prevUrlsParsed.enterprise, with: newUrlsParsed.enterprise },
236+
];
209237
var dedicatedReplacements = [
210238
{ replace: prevUrlsParsed.dedicated, with: newUrlsParsed.dedicated },
211239
];
@@ -215,6 +243,10 @@ function updateUrls(prevUrls, newUrls) {
215243

216244
if (context() === 'cloud') {
217245
var replacements = cloudReplacements;
246+
} else if (context() === 'core') {
247+
var replacements = coreReplacements;
248+
} else if (context() === 'enterprise') {
249+
var replacements = enterpriseReplacements;
218250
} else if (context() === 'serverless') {
219251
var replacements = serverlessReplacements;
220252
} else if (context() === 'dedicated') {
@@ -282,6 +314,8 @@ function appendUrlSelector() {
282314
var appendToUrls = [
283315
placeholderUrls.oss,
284316
placeholderUrls.cloud,
317+
placeholderUrls.core,
318+
placeholderUrls.enterprise,
285319
placeholderUrls.serverless,
286320
placeholderUrls.dedicated,
287321
placeholderUrls.clustered,
@@ -291,6 +325,8 @@ function appendUrlSelector() {
291325
contextText = {
292326
'oss/enterprise': 'Change InfluxDB URL',
293327
cloud: 'InfluxDB Cloud Region',
328+
core: 'Change InfluxDB URL',
329+
enterprise: 'Change InfluxDB URL',
294330
serverless: 'InfluxDB Cloud Region',
295331
dedicated: 'Set Dedicated cluster URL',
296332
clustered: 'Set InfluxDB cluster URL',
@@ -359,6 +395,14 @@ function setRadioButtons() {
359395
'checked',
360396
true
361397
);
398+
$('input[name="influxdb-core-url"][value="' + currentUrls.core + '"]').prop(
399+
'checked',
400+
true
401+
);
402+
$('input[name="influxdb-enterprise-url"][value="' + currentUrls.enterprise + '"]').prop(
403+
'checked',
404+
true
405+
);
362406
}
363407

364408
// Add checked to fake-radio if cluster is selected on page load
@@ -407,6 +451,18 @@ $('input[name="influxdb-cloud-url"]').click(function () {
407451
setURLPreference('cloud');
408452
});
409453

454+
$('input[name="influxdb-core-url"]').change(function () {
455+
var newUrl = $(this).val();
456+
storeUrl('core', newUrl, getUrls().core);
457+
updateUrls(getPrevUrls(), getUrls());
458+
});
459+
460+
$('input[name="influxdb-enterprise-url"]').change(function () {
461+
var newUrl = $(this).val();
462+
storeUrl('enterprise', newUrl, getUrls().enterprise);
463+
updateUrls(getPrevUrls(), getUrls());
464+
});
465+
410466
$('input[name="influxdb-serverless-url"]').change(function () {
411467
var newUrl = $(this).val();
412468
storeUrl('serverless', newUrl, getUrls().serverless);
@@ -442,7 +498,7 @@ $('#pref-tabs .pref-tab').click(function () {
442498
togglePrefBtns($(this));
443499
});
444500

445-
// Select preference tab from cookie
501+
// Select preference tab from local storage
446502
function showPreference() {
447503
var preference = getPreference('influxdb_url');
448504
prefTab = $('#pref-' + preference);
@@ -515,16 +571,16 @@ function hideValidationMessage() {
515571
$('#custom-url').removeClass('error').attr('data-message', '');
516572
}
517573

518-
// Set the custom URL cookie and apply the change
519-
// If the custom URL field is empty, it defaults to the OSS default
574+
// Set the custom URL local storage object and apply the change
575+
// If the custom URL field is empty, it defaults to the context default
520576
function applyCustomUrl() {
521577
var custUrl = $('#custom-url-field').val();
522578
let urlValidation = validateUrl(custUrl);
523579
if (custUrl.length > 0) {
524580
if (urlValidation.valid) {
525581
hideValidationMessage();
526582
storeCustomUrl(custUrl);
527-
storeUrl('oss', custUrl, getUrls().oss);
583+
storeUrl(context(), custUrl, getUrls()[context()]);
528584
updateUrls(getPrevUrls(), getUrls());
529585
} else {
530586
showValidationMessage(urlValidation);
@@ -533,12 +589,12 @@ function applyCustomUrl() {
533589
removeCustomUrl();
534590
hideValidationMessage();
535591
$(
536-
'input[name="influxdb-oss-url"][value="' + defaultUrls.oss + '"]'
592+
'input[name="influxdb-${context()}-url"][value="' + defaultUrls[context()] + '"]'
537593
).trigger('click');
538594
}
539595
}
540596

541-
// Set the product URL cookie and apply the change
597+
// Set the product URL local storage object and apply the change
542598
// If the product URL field is empty, it defaults to the product default
543599
function applyProductUrl(product) {
544600
var productUrl = $(`#${product}-url-field`).val();
@@ -658,13 +714,3 @@ if (cloudUrls.includes(referrerHost)) {
658714
setURLPreference('cloud');
659715
showPreference();
660716
}
661-
662-
////////////////////////////////////////////////////////////////////////////////
663-
//////////////////////////// Dedicated URL Migration ///////////////////////////
664-
///////////////////////// REMOVE AFTER AUGUST 22, 2024 /////////////////////////
665-
////////////////////////////////////////////////////////////////////////////////
666-
667-
if (getUrls().dedicated == 'cluster-id.influxdb.io') {
668-
storeUrl('dedicated', 'cluster-id.a.influxdb.io', getUrls().dedicated);
669-
updateUrls(getPrevUrls(), getUrls());
670-
}

assets/js/local-storage.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ const urlStorageKey = storagePrefix + 'urls';
8787
var defaultUrls = {
8888
oss: 'http://localhost:8086',
8989
cloud: 'https://us-west-2-1.aws.cloud2.influxdata.com',
90+
core: 'http://localhost:8181',
91+
enterprise: 'http://localhost:8181',
9092
serverless: 'https://us-east-1-1.aws.cloud2.influxdata.com',
9193
dedicated: 'cluster-id.a.influxdb.io',
9294
clustered: 'cluster-host.com',
@@ -97,10 +99,14 @@ var defaultUrlsObj = {
9799
oss: defaultUrls.oss,
98100
cloud: defaultUrls.cloud,
99101
serverless: defaultUrls.serverless,
102+
core: defaultUrls.core,
103+
enterprise: defaultUrls.enterprise,
100104
dedicated: defaultUrls.dedicated,
101105
clustered: defaultUrls.clustered,
102106
prev_oss: defaultUrls.oss,
103107
prev_cloud: defaultUrls.cloud,
108+
prev_core: defaultUrls.core,
109+
prev_enterprise: defaultUrls.enterprise,
104110
prev_serverless: defaultUrls.serverless,
105111
prev_dedicated: defaultUrls.dedicated,
106112
prev_clustered: defaultUrls.clustered,

0 commit comments

Comments
 (0)