Skip to content

Commit 939d59d

Browse files
sandersonjstirnamankelseiv
authored
Guides for migrating data (influxdata#3865)
* add guide for migrating data from cloud to oss, closes influxdata/DAR#270 * Apply suggestions from code review Co-authored-by: Jason Stirnaman <[email protected]> * update cloud to oss migration guide to address PR feedback * Apply suggestions from code review Co-authored-by: Jason Stirnaman <[email protected]> * fixed typo * Data migration (influxdata#3906) * WIP migration section * WIP migrate data * add migrate data section with associated docs * Apply suggestions from code review Co-authored-by: kelseiv <[email protected]> * updates to address PR feedback Co-authored-by: kelseiv <[email protected]> Co-authored-by: Jason Stirnaman <[email protected]> Co-authored-by: kelseiv <[email protected]>
1 parent b0c84c0 commit 939d59d

File tree

14 files changed

+920
-12
lines changed

14 files changed

+920
-12
lines changed

assets/js/content-interactions.js

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ function scrollToAnchor(target) {
2929
}, 400, 'swing', function () {
3030
window.location.hash = target;
3131
});
32+
33+
// Unique accordion functionality
34+
// If the target is an accordion element, open the accordion after scrolling
35+
if ($target.hasClass('expand')) {
36+
if ($(target + ' .expand-label .expand-toggle').hasClass('open')) {}
37+
else {
38+
$(target + '> .expand-label').trigger('click');
39+
};
40+
};
3241
}
3342
}
3443

@@ -140,13 +149,36 @@ $(".truncate-toggle").click(function(e) {
140149
$(this).closest('.truncate').toggleClass('closed');
141150
})
142151

143-
////////////////////////////// Expand Accordians ///////////////////////////////
152+
////////////////////////////// Expand Accordions ///////////////////////////////
144153

145154
$('.expand-label').click(function() {
146155
$(this).children('.expand-toggle').toggleClass('open')
147156
$(this).next('.expand-content').slideToggle(200)
148157
})
149158

159+
// Expand accordions on load based on URL anchor
160+
function openAccordionByHash() {
161+
var anchor = window.location.hash;
162+
163+
function expandElement() {
164+
if ($(anchor).parents('.expand').length > 0) {
165+
return $(anchor).closest('.expand').children('.expand-label');
166+
} else if ($(anchor).hasClass('expand')){
167+
return $(anchor).children('.expand-label');
168+
}
169+
};
170+
171+
if (expandElement() != null) {
172+
if (expandElement().children('.expand-toggle').hasClass('open')) {}
173+
else {
174+
expandElement().children('.expand-toggle').trigger('click');
175+
};
176+
};
177+
};
178+
179+
// Open accordions by hash on page load.
180+
openAccordionByHash()
181+
150182
////////////////////////// Inject tooltips on load //////////////////////////////
151183

152184
$('.tooltip').each( function(){
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: Migrate data to InfluxDB
3+
description: >
4+
Migrate data from InfluxDB OSS (open source) to InfluxDB Cloud or other InfluxDB OSS instances--or from InfluxDB Cloud to InfluxDB OSS.
5+
menu:
6+
influxdb_cloud:
7+
name: Migrate data
8+
weight: 9
9+
---
10+
11+
Migrate data to InfluxDB from other InfluxDB instances including by InfluxDB OSS
12+
and InfluxDB Cloud.
13+
14+
{{< children >}}

0 commit comments

Comments
 (0)