Skip to content

Commit

Permalink
Guides for migrating data (influxdata#3865)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Mar 29, 2022
1 parent b0c84c0 commit 939d59d
Show file tree
Hide file tree
Showing 14 changed files with 920 additions and 12 deletions.
34 changes: 33 additions & 1 deletion assets/js/content-interactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ function scrollToAnchor(target) {
}, 400, 'swing', function () {
window.location.hash = target;
});

// Unique accordion functionality
// If the target is an accordion element, open the accordion after scrolling
if ($target.hasClass('expand')) {
if ($(target + ' .expand-label .expand-toggle').hasClass('open')) {}
else {
$(target + '> .expand-label').trigger('click');
};
};
}
}

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

////////////////////////////// Expand Accordians ///////////////////////////////
////////////////////////////// Expand Accordions ///////////////////////////////

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

// Expand accordions on load based on URL anchor
function openAccordionByHash() {
var anchor = window.location.hash;

function expandElement() {
if ($(anchor).parents('.expand').length > 0) {
return $(anchor).closest('.expand').children('.expand-label');
} else if ($(anchor).hasClass('expand')){
return $(anchor).children('.expand-label');
}
};

if (expandElement() != null) {
if (expandElement().children('.expand-toggle').hasClass('open')) {}
else {
expandElement().children('.expand-toggle').trigger('click');
};
};
};

// Open accordions by hash on page load.
openAccordionByHash()

////////////////////////// Inject tooltips on load //////////////////////////////

$('.tooltip').each( function(){
Expand Down
14 changes: 14 additions & 0 deletions content/influxdb/cloud/migrate-data/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: Migrate data to InfluxDB
description: >
Migrate data from InfluxDB OSS (open source) to InfluxDB Cloud or other InfluxDB OSS instances--or from InfluxDB Cloud to InfluxDB OSS.
menu:
influxdb_cloud:
name: Migrate data
weight: 9
---

Migrate data to InfluxDB from other InfluxDB instances including by InfluxDB OSS
and InfluxDB Cloud.

{{< children >}}
Loading

0 comments on commit 939d59d

Please sign in to comment.