Skip to content

Commit 96ddfba

Browse files
authored
Merge pull request #5901 from influxdata/influxdb3-beta
Influxdb3 beta
2 parents 8526d7d + e89b870 commit 96ddfba

File tree

38 files changed

+723
-341
lines changed

38 files changed

+723
-341
lines changed

api-docs/influxdb3/core/v3/ref.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ tags:
6767
6868
- HTTP [`/api/v3/query_sql` endpoint](#operation/GetExecuteQuerySQL) for new query workloads using SQL.
6969
- HTTP [`/api/v3/query_influxql` endpoint](#operation/GetExecuteInfluxQLQuery) for new query workloads using InfluxQL.
70-
- Flight SQL and InfluxDB 3 _Flight+gRPC_ APIs for querying with SQL or InfluxQL. For more information about using Flight APIs, see [InfluxDB 3 client libraries](https://github.com/InfluxCommunity).
70+
- Flight SQL and InfluxDB 3 _Flight+gRPC_ APIs for querying with SQL or InfluxQL. For more information about using Flight APIs, see [InfluxDB 3 client libraries](https://github.com/InfluxCommunity?q=influxdb3&type=public&language=&sort=).
7171
7272
### Server information
7373

api-docs/influxdb3/enterprise/v3/ref.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ tags:
6767
6868
- HTTP [`/api/v3/query_sql` endpoint](#operation/GetExecuteQuerySQL) for new query workloads using SQL.
6969
- HTTP [`/api/v3/query_influxql` endpoint](#operation/GetExecuteInfluxQLQuery) for new query workloads using InfluxQL.
70-
- Flight SQL and InfluxDB 3 _Flight+gRPC_ APIs for querying with SQL or InfluxQL. For more information about using Flight APIs, see [InfluxDB 3 client libraries](https://github.com/InfluxCommunity).
70+
- Flight SQL and InfluxDB 3 _Flight+gRPC_ APIs for querying with SQL or InfluxQL. For more information about using Flight APIs, see [InfluxDB 3 client libraries](https://github.com/InfluxCommunity?q=influxdb3&type=public&language=&sort=).
7171
7272
### Server information
7373

api-docs/template.hbs

Lines changed: 52 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -38,33 +38,58 @@
3838
/>{{/unless}}
3939
{{{redocHead}}}
4040
<link rel="stylesheet" type="text/css" href="/api.css" />
41-
<script type="text/javascript"
42-
async="true"
43-
src="https://widget.kapa.ai/kapa-widget.bundle.js"
44-
data-website-id="a02bca75-1dd3-411e-95c0-79ee1139be4d"
45-
data-project-name="InfluxDB"
46-
data-project-color="#d30971"
47-
data-project-logo="/img/influx-logo-cubo-white.png"
48-
data-modal-disclaimer="This AI can access [documentation for InfluxDB, clients, and related tools](https://docs.influxdata.com). Information you submit is used in accordance with our [Privacy Policy](https://www.influxdata.com/legal/privacy-policy/)."
49-
data-modal-example-questions="How do I write and query data with the {{title}}?, How do I use client libraries for the {{title}}?" data-button-height="65px" data-button-width="65px"
50-
data-button-text="Ask AI" data-conversation-button-icons-only="true"
51-
data-font-family="Proxima Nova, sans-serif"
52-
data-modal-example-questions-col-span="8"
53-
data-modal-full-screen-on-mobile="true"
54-
data-modal-header-bg-color="#d30971"
55-
data-modal-header-border-bottom="none" data-modal-header-padding=".5rem"
56-
data-modal-header-text-color="#ffffff" data-modal-x-offset="0"
57-
data-modal-y-offset="0" data-modal-with-overlay="false"
58-
data-modal-inner-flex-direction="column"
59-
data-modal-inner-justify-content="end" data-modal-inner-max-width="600px"
60-
data-modal-inner-position-left="auto"
61-
data-modal-inner-position-right="20px"
62-
data-modal-inner-position-bottom="calc(2.5rem + 25px)"
63-
data-modal-size="640px"
64-
data-modal-title-color="#fff"
65-
data-modal-title-font-size="1.25rem"
66-
data-modal-lock-scroll="false" ></script>
67-
</head>
41+
<script>
42+
// Load Kapa AI widget after DOM content is loaded
43+
document.addEventListener('DOMContentLoaded', function() {
44+
const askAI = document.createElement('script');
45+
askAI.type = 'text/javascript';
46+
askAI.async = true;
47+
askAI.src = 'https://widget.kapa.ai/kapa-widget.bundle.js';
48+
49+
// Set all data attributes
50+
askAI.setAttribute('data-website-id', 'a02bca75-1dd3-411e-95c0-79ee1139be4d');
51+
askAI.setAttribute('data-project-name', 'InfluxDB');
52+
askAI.setAttribute('data-project-color', '#d30971');
53+
askAI.setAttribute('data-project-logo', '/img/influx-logo-cubo-white.png');
54+
askAI.setAttribute('data-modal-disclaimer', 'This AI can access [documentation for InfluxDB, clients, and related tools](https://docs.influxdata.com). Information you submit is used in accordance with our [Privacy Policy](https://www.influxdata.com/legal/privacy-policy/).');
55+
askAI.setAttribute('data-modal-example-questions', 'How do I write and query data with the {{title}}?, How do I use client libraries for the {{title}}?');
56+
askAI.setAttribute('data-button-height', '65px');
57+
askAI.setAttribute('data-button-width', '65px');
58+
if (window.matchMedia('(max-width: 600px)').matches) {
59+
// For mobile devices (smaller than 600px)
60+
askAI.setAttribute('data-button-position-bottom', '130px');
61+
} else {
62+
// For larger screens
63+
askAI.setAttribute('data-button-position-bottom', '20px');
64+
}
65+
askAI.setAttribute('data-button-text', 'Ask AI');
66+
askAI.setAttribute('data-conversation-button-icons-only', 'true');
67+
askAI.setAttribute('data-font-family', 'Proxima Nova, sans-serif');
68+
askAI.setAttribute('data-modal-example-questions-col-span', '8');
69+
askAI.setAttribute('data-modal-full-screen-on-mobile', 'true');
70+
askAI.setAttribute('data-modal-header-bg-color', '#d30971');
71+
askAI.setAttribute('data-modal-header-border-bottom', 'none');
72+
askAI.setAttribute('data-modal-header-padding', '.5rem');
73+
askAI.setAttribute('data-modal-header-text-color', '#ffffff');
74+
askAI.setAttribute('data-modal-x-offset', '0');
75+
askAI.setAttribute('data-modal-y-offset', '0');
76+
askAI.setAttribute('data-modal-with-overlay', 'false');
77+
askAI.setAttribute('data-modal-inner-flex-direction', 'column');
78+
askAI.setAttribute('data-modal-inner-justify-content', 'end');
79+
askAI.setAttribute('data-modal-inner-max-width', '600px');
80+
askAI.setAttribute('data-modal-inner-position-left', 'auto');
81+
askAI.setAttribute('data-modal-inner-position-right', '50px');
82+
askAI.setAttribute('data-modal-inner-position-bottom', 'calc(2.5rem + 25px)');
83+
askAI.setAttribute('data-modal-size', '640px');
84+
askAI.setAttribute('data-modal-title-color', '#fff');
85+
askAI.setAttribute('data-modal-title-font-size', '1.25rem');
86+
askAI.setAttribute('data-modal-lock-scroll', 'false');
87+
88+
// Add the script to the document head
89+
document.head.appendChild(askAI);
90+
});
91+
</script>
92+
</head>
6893

6994
<body>
7095
{{! <script>

assets/js/local-storage.js

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -84,25 +84,31 @@ function getPreferences() {
8484

8585

8686
const defaultUrls = {};
87-
Object.entries(pageParams.influxdb_urls).forEach(([product, {providers}]) => {
88-
defaultUrls[product] = providers.filter(provider => provider.name === 'Default')[0]?.regions[0]?.url;
89-
});
87+
// Guard against pageParams being null/undefined and safely access nested properties
88+
if (pageParams && pageParams.influxdb_urls) {
89+
Object.entries(pageParams.influxdb_urls).forEach(([product, {providers}]) => {
90+
// Use optional chaining and nullish coalescing to safely access properties
91+
const defaultProvider = providers?.filter(provider => provider?.name === 'Default')[0];
92+
const defaultRegion = defaultProvider?.regions?.[0];
93+
defaultUrls[product] = defaultRegion?.url || '';
94+
});
95+
}
9096

9197
export const DEFAULT_STORAGE_URLS = {
92-
oss: defaultUrls.oss,
93-
cloud: defaultUrls.cloud,
94-
serverless: defaultUrls.serverless,
95-
core: defaultUrls.core,
96-
enterprise: defaultUrls.enterprise,
97-
dedicated: defaultUrls.cloud_dedicated,
98-
clustered: defaultUrls.clustered,
99-
prev_oss: defaultUrls.oss,
100-
prev_cloud: defaultUrls.cloud,
101-
prev_core: defaultUrls.core,
102-
prev_enterprise: defaultUrls.enterprise,
103-
prev_serverless: defaultUrls.serverless,
104-
prev_dedicated: defaultUrls.cloud_dedicated,
105-
prev_clustered: defaultUrls.clustered,
98+
oss: defaultUrls.oss || '',
99+
cloud: defaultUrls.cloud || '',
100+
serverless: defaultUrls.serverless || '',
101+
core: defaultUrls.core || '',
102+
enterprise: defaultUrls.enterprise || '',
103+
dedicated: defaultUrls.cloud_dedicated || '',
104+
clustered: defaultUrls.clustered || '',
105+
prev_oss: defaultUrls.oss || '',
106+
prev_cloud: defaultUrls.cloud || '',
107+
prev_core: defaultUrls.core || '',
108+
prev_enterprise: defaultUrls.enterprise || '',
109+
prev_serverless: defaultUrls.serverless || '',
110+
prev_dedicated: defaultUrls.cloud_dedicated || '',
111+
prev_clustered: defaultUrls.clustered || '',
106112
custom: '',
107113
};
108114

assets/js/page-context.js

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,37 @@
33
*/
44
import { products, influxdb_urls } from '@params';
55

6+
const safeProducts = products || {};
7+
const safeUrls = influxdb_urls || {};
8+
69
function getCurrentProductData() {
710
const path = window.location.pathname;
811
const mappings = [
9-
{ pattern: /\/influxdb\/cloud\//, product: products.cloud, urls: influxdb_urls.influxdb_cloud },
10-
{ pattern: /\/influxdb3\/core/, product: products.influxdb3_core, urls: influxdb_urls.core },
11-
{ pattern: /\/influxdb3\/enterprise/, product: products.influxdb3_enterprise, urls: influxdb_urls.enterprise },
12-
{ pattern: /\/influxdb3\/cloud-serverless/, product: products.influxdb3_cloud_serverless, urls: influxdb_urls.cloud },
13-
{ pattern: /\/influxdb3\/cloud-dedicated/, product: products.influxdb3_cloud_dedicated, urls: influxdb_urls.dedicated },
14-
{ pattern: /\/influxdb3\/clustered/, product: products.influxdb3_clustered, urls: influxdb_urls.clustered },
15-
{ pattern: /\/enterprise_v1\//, product: products.enterprise_influxdb, urls: influxdb_urls.oss },
16-
{ pattern: /\/influxdb.*v1\//, product: products.influxdb, urls: influxdb_urls.oss },
17-
{ pattern: /\/influxdb.*v2\//, product: products.influxdb, urls: influxdb_urls.oss },
18-
{ pattern: /\/kapacitor\//, product: products.kapacitor, urls: influxdb_urls.oss },
19-
{ pattern: /\/telegraf\//, product: products.telegraf, urls: influxdb_urls.oss },
20-
{ pattern: /\/chronograf\//, product: products.chronograf, urls: influxdb_urls.oss },
21-
{ pattern: /\/flux\//, product: products.flux, urls: influxdb_urls.oss },
12+
{ pattern: /\/influxdb\/cloud\//, product: safeProducts.cloud, urls: safeUrls.influxdb_cloud },
13+
{ pattern: /\/influxdb3\/core/, product: safeProducts.influxdb3_core, urls: safeUrls.core },
14+
{ pattern: /\/influxdb3\/enterprise/, product: safeProducts.influxdb3_enterprise, urls: safeUrls.enterprise },
15+
{ pattern: /\/influxdb3\/cloud-serverless/, product: safeProducts.influxdb3_cloud_serverless, urls: safeUrls.cloud },
16+
{ pattern: /\/influxdb3\/cloud-dedicated/, product: safeProducts.influxdb3_cloud_dedicated, urls: safeUrls.dedicated },
17+
{ pattern: /\/influxdb3\/clustered/, product: safeProducts.influxdb3_clustered, urls: safeUrls.clustered },
18+
{ pattern: /\/enterprise_v1\//, product: safeProducts.enterprise_influxdb, urls: safeUrls.oss },
19+
{ pattern: /\/influxdb.*v1\//, product: safeProducts.influxdb, urls: safeUrls.oss },
20+
{ pattern: /\/influxdb.*v2\//, product: safeProducts.influxdb, urls: safeUrls.oss },
21+
{ pattern: /\/kapacitor\//, product: safeProducts.kapacitor, urls: safeUrls.oss },
22+
{ pattern: /\/telegraf\//, product: safeProducts.telegraf, urls: safeUrls.oss },
23+
{ pattern: /\/chronograf\//, product: safeProducts.chronograf, urls: safeUrls.oss },
24+
{ pattern: /\/flux\//, product: safeProducts.flux, urls: safeUrls.oss },
2225
];
2326

2427
for (const { pattern, product, urls } of mappings) {
2528
if (pattern.test(path)) {
26-
return { product, urls };
29+
return {
30+
product: product || 'unknown',
31+
urls: urls || {}
32+
};
2733
}
2834
}
2935

30-
return 'other';
36+
return { product: 'other', urls: {} };
3137
}
3238

3339
// Return the page context (cloud, serverless, oss/enterprise, dedicated, clustered, other)

assets/styles/layouts/_homepage.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@
120120
}
121121
}
122122

123-
&.alpha {
123+
&.beta {
124124
.product-info h3::after {
125-
content: "alpha";
125+
content: "beta";
126126
margin-left: .5rem;
127127
font-size: 1rem;
128128
padding: .25em .5em .25em .4em;

assets/styles/layouts/article/_blocks.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ blockquote {
9797
"blocks/important",
9898
"blocks/warning",
9999
"blocks/caution",
100-
"blocks/alpha";
100+
"blocks/beta";

assets/styles/layouts/article/blocks/_alpha.scss renamed to assets/styles/layouts/article/blocks/_beta.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
.block.alpha {
1+
.block.beta {
22
@include gradient($grad-burningDusk);
33
padding: 4px;
44
border: none;
55
border-radius: 25px !important;
66

7-
.alpha-content {
7+
.beta-content {
88
background: $article-bg;
99
border-radius: 21px;
1010
padding: calc(1.65rem - 4px) calc(2rem - 4px) calc(.1rem + 4px) calc(2rem - 4px);

content/influxdb3/core/plugins.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Processing engine and Python plugins
3-
description: Use the Python processing engine to trigger and execute custom code on different events in an {{< product-name >}} instance.
3+
description: |
4+
Use the InfluxDB 3 Processing engine with Python to trigger and execute custom
5+
code on different events in an {{< product-name >}} instance.
46
menu:
57
influxdb3_core:
68
name: Processing engine and Python plugins
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: InfluxDB 3 Core release notes
3+
description: >
4+
Changes and updates to InfluxDB 3 Core
5+
menu:
6+
influxdb3_core:
7+
parent: Reference
8+
name: Release Notes
9+
weight: 210
10+
related:
11+
- /influxdb3/core/get-started/
12+
source: /shared/v3-core-enterprise-release-notes/_index.md
13+
---
14+
15+
<!--
16+
//SOURCE content/shared/v3-core-enterprise-release-notes/_index.md
17+
-->

0 commit comments

Comments
 (0)