Skip to content

Commit e1e59d9

Browse files
authored
DOCSP-26400 Connection Import/Export via Compass UI (#462)
* DOCSP-26400 Connection Import/Export via Compass UI * add new pages to TOC * add to sub-page toc * shorten titles + edit styling for procedures * copy cleanup * more copy cleanup * try to remove steps from toc * fix import page * add newlines to fix styling * results section * JA edits (pt 1) * fix TOC * toc adjustments * change on compass to in compass * JA edits pt (?) * change order of in-page toc * JA edits * add newline between title and default-domain * fix build error * AH edits * swap out favorite for saved * typo fixes
1 parent 96abd17 commit e1e59d9

File tree

10 files changed

+210
-80
lines changed

10 files changed

+210
-80
lines changed

snooty.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ toc_landing_pages = [
1111
"/install",
1212
"/connect",
1313
"/connect/favorite-connections",
14-
"/connect/favorite-connections/import-export-cli/",
14+
"/connect/favorite-connections/import-export/",
1515
"/instance",
1616
"/config-file",
1717
"/command-line-options",

source/connect/favorite-connections.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ Considerations
5656
.. toctree::
5757
:titlesonly:
5858

59-
/connect/favorite-connections/import-export-cli
59+
/connect/favorite-connections/import-export

source/connect/favorite-connections/import-export-cli.txt

Lines changed: 0 additions & 42 deletions
This file was deleted.

source/connect/favorite-connections/import-export-cli/export.txt

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _compass-export-connections-cli:
22

3-
========================================
4-
Export Favorite Connections with the CLI
5-
========================================
3+
=====================================
4+
Export Saved Connections with the CLI
5+
=====================================
66

77
.. default-domain:: mongodb
88

@@ -13,32 +13,27 @@ Export Favorite Connections with the CLI
1313
:class: singlecol
1414

1515
You can use the |compass-short| :abbr:`CLI (Command-Line Interface)` to
16-
export favorite connections. Colleagues can import your favorites, or
16+
export saved connections. Colleagues can import your saved connections, or
1717
you can use them yourself in your other workspaces.
1818

1919
About This Task
2020
---------------
2121

22-
When you export favorite connections, |compass-short| exports the list
23-
of connections as a JSON file.
24-
25-
By default, when you export favorite connections, database usernames and
26-
passwords are included in plaintext. To protect sensitive connection
27-
information, you may encrypt the exported file with a passphrase.
22+
.. include:: /includes/fact-export-saved-connection.rst
2823

2924
.. _compass-export-connections-cli-encrypted:
3025

31-
Export Encrypted Favorite Connections
26+
Export Encrypted Saved Connections
3227
-------------------------------------
3328

34-
This section shows how to export encrypted favorite connections. When
29+
This section shows how to export encrypted saved connections. When
3530
you encrypt the export file, users must specify the matching passphrase
3631
to import the connections.
3732

3833
Procedure
3934
~~~~~~~~~
4035

41-
To export encrypted favorite connections with the |compass-short|
36+
To export encrypted saved connections with the |compass-short|
4237
:abbr:`CLI (Command-Line Interface)`, specify:
4338

4439
- The path to the |compass| executable. The name and file path of the
@@ -61,7 +56,7 @@ Your operation should resemble the following prototype:
6156
Example
6257
~~~~~~~
6358

64-
This example exports favorite |compass-short| connections to a file with
59+
This example exports saved |compass-short| connections to a file with
6560
the path ``/tmp/compass-connections/favorites-encrypted.json``. The exported file
6661
is encrypted with the passphrase ``abc123``.
6762

@@ -139,18 +134,18 @@ following:
139134
Sensitive connection information is encrypted in the
140135
``connectionSecrets`` field.
141136

142-
Export Unencrypted Favorite Connections
137+
Export Unencrypted Saved Connections
143138
---------------------------------------
144139

145-
This section shows how to export unencrypted favorite connections. If
140+
This section shows how to export unencrypted saved connections. If
146141
you do not encrypt the export file, database usernames and passwords are
147142
exported in plaintext. Only export unencrypted connections if no other
148143
users will have access to the exported file.
149144

150145
Procedure
151146
~~~~~~~~~
152147

153-
To export encrypted favorite connections with the |compass-short|
148+
To export encrypted saved connections with the |compass-short|
154149
:abbr:`CLI (Command-Line Interface)`, specify:
155150

156151
- The path to the |compass| executable. The name and file path of the
@@ -169,7 +164,7 @@ Your operation should resemble the following prototype:
169164
Example
170165
~~~~~~~
171166

172-
This example exports favorite |compass-short| connections to a file with
167+
This example exports saved |compass-short| connections to a file with
173168
the path ``/tmp/compass-connections/favorites.json``.
174169

175170
Run the following command in the folder containing your MongoDB Compass

source/connect/favorite-connections/import-export-cli/import.txt

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _compass-import-connections-cli:
22

3-
========================================
4-
Import Favorite Connections with the CLI
5-
========================================
3+
=====================================
4+
Import Saved Connections with the CLI
5+
=====================================
66

77
.. default-domain:: mongodb
88

@@ -13,35 +13,35 @@ Import Favorite Connections with the CLI
1313
:class: singlecol
1414

1515
You can use the |compass-short| :abbr:`CLI (Command-Line Interface)` to
16-
import favorite connections. This lets you use saved connections from
16+
import saved connections. This lets you use saved connections from
1717
other workspaces or connections used by other team members.
1818

1919
Prerequisite
2020
------------
2121

22-
To import favorite connections, you must first :ref:`export the
22+
To import saved connections, you must first :ref:`export the
2323
connections <compass-export-connections-cli>`.
2424

2525
.. _compass-import-connections-cli-encrypted:
2626

27-
Import Encrypted Favorite Connections
28-
-------------------------------------
27+
Import Encrypted Saved Connections
28+
----------------------------------
2929

30-
Use this procedure to import a list of favorite connections that is
30+
Use this procedure to import a list of saved connections that is
3131
:ref:`encrypted with a passphrase
3232
<compass-export-connections-cli-encrypted>`.
3333

3434
Procedure
3535
~~~~~~~~~
3636

37-
To import unencrypted favorite connections with the |compass-short|
37+
To import unencrypted saved connections with the |compass-short|
3838
:abbr:`CLI (Command-Line Interface)`, specify:
3939

4040
- The path to the |compass| executable. The name and filepath of the
4141
executable depend on your operating system.
4242

4343
- The ``--import-connections`` option set to the destination of the file
44-
containing favorite connections.
44+
containing saved connections.
4545

4646
- The ``--passphrase`` option set to the passphrase used to encrypt the
4747
exported file.
@@ -57,7 +57,7 @@ Your operation should resemble the following prototype:
5757
Example
5858
~~~~~~~
5959

60-
The following example imports favorite |compass-short| connections from
60+
The following example imports saved |compass-short| connections from
6161
a file with the path
6262
``/tmp/compass-connections/favorites-encrypted.json`` that is encrypted
6363
with the passphrase ``abc123``.
@@ -92,7 +92,7 @@ MongoDB Compass starts and you will see the imported connections under
9292
Errors
9393
~~~~~~
9494

95-
When you try to import encrypted favorite connections, you may
95+
When you try to import encrypted saved connections, you may
9696
see these errors:
9797

9898
- If do not specify a passphrase, you will see this error:
@@ -111,23 +111,23 @@ see these errors:
111111
Failed to perform operation Be [Error]: Cannot decrypt due to corrupt
112112
data or wrong passphrase
113113

114-
Import Unencrypted Favorite Connections
114+
Import Unencrypted Saved Connections
115115
---------------------------------------
116116

117-
Use this procedure to import a list of favorite connections that is not
117+
Use this procedure to import a list of saved connections that is not
118118
encrypted with a passphrase.
119119

120120
Procedure
121121
~~~~~~~~~
122122

123-
To import unencrypted favorite connections with the |compass-short|
123+
To import unencrypted saved connections with the |compass-short|
124124
:abbr:`CLI (Command-Line Interface)`, specify:
125125

126126
- The path to the |compass| executable. The name and file path of the
127127
executable depend on your operating system.
128128

129129
- The ``--import-connections`` option set to the destination of the file
130-
containing favorite connections.
130+
containing saved connections.
131131

132132
Your operation should resemble the following prototype:
133133

@@ -138,7 +138,7 @@ Your operation should resemble the following prototype:
138138
Example
139139
~~~~~~~
140140

141-
The following example imports favorite |compass-short| connections from
141+
The following example imports saved |compass-short| connections from
142142
a file with the path ``/tmp/compass-connections/favorites.json``.
143143

144144
Run the following command in the folder containing your MongoDB Compass
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
.. _compass-export-connections-ui:
2+
3+
===========================================
4+
Export Saved Connections in |compass-short|
5+
===========================================
6+
7+
.. default-domain:: mongodb
8+
9+
.. contents:: On this page
10+
:local:
11+
:backlinks: none
12+
:depth: 2
13+
:class: singlecol
14+
15+
You can export saved connections in |compass|. Colleagues can import your
16+
saved connections, or you can use them in your other workspaces.
17+
18+
About This Task
19+
---------------
20+
21+
.. include:: /includes/fact-export-saved-connection.rst
22+
23+
Procedure
24+
---------
25+
26+
To export encrypted saved connections with |compass-short|:
27+
28+
.. procedure::
29+
:style: normal
30+
31+
.. step:: On the Connect screen, hover over :guilabel:`Saved Connections` in
32+
the left-side navigation and click the :guilabel:`Ellipses (...)` button.
33+
34+
.. step:: Select :guilabel:`Export saved connections`.
35+
36+
.. step:: In the :guilabel:`Export saved connections` dialog box, select the
37+
connection names you want to export.
38+
39+
.. step:: Under :guilabel:`Target File`, click :guilabel:`Select a file...`
40+
to specify the output file destination.
41+
42+
.. step:: *Optional*. Toggle :guilabel:`Remove secrets` to omit passwords,
43+
access tokens, and other sensitive information from the exported file.
44+
45+
If you select :guilabel:`Remove secrets`, you cannot specify an encryption
46+
password.
47+
48+
.. step:: *Optional*. Specify an :guilabel:`Encryption Password` to encrypt
49+
passwords, access tokens, and other sensitive information.
50+
51+
If you do not encrypt the export file, passwords are exported in
52+
plaintext. Only export unencrypted connections if no other users will have
53+
access to the exported file.
54+
55+
.. step:: Click :guilabel:`Export` to export your saved connections to
56+
a JSON file.
57+
58+
Next Steps
59+
----------
60+
61+
To learn how to import saved connections, see
62+
:ref:`compass-import-connections-ui`.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
.. _compass-import-connections-ui:
2+
3+
===========================================
4+
Import Saved Connections in |compass-short|
5+
===========================================
6+
7+
.. default-domain:: mongodb
8+
9+
.. contents:: On this page
10+
:local:
11+
:backlinks: none
12+
:depth: 2
13+
:class: singlecol
14+
15+
You can import saved connections in |compass|. This lets you use saved
16+
connections from other workspaces or connections used by other team members.
17+
18+
Prerequisite
19+
------------
20+
21+
Before you import saved connections, you must :ref:`export the
22+
connections <compass-export-connections-ui>`.
23+
24+
Procedure
25+
---------
26+
27+
To import saved connections from a JSON file into |compass-short|:
28+
29+
.. procedure::
30+
:style: normal
31+
32+
.. step:: On the Connect screen, hover over :guilabel:`Saved Connections`
33+
in the left-side navigation and click the :guilabel:`Ellipses (...)`
34+
button.
35+
36+
.. step:: Select :guilabel:`Import saved connections`.
37+
38+
.. step:: Under :guilabel:`Source File`, click :guilabel:`Select a file`.
39+
40+
.. step:: Select the exported JSON file you want to import.
41+
42+
.. step:: If your file is encrypted with a password, enter the passphrase
43+
under :guilabel:`Decryption Password`.
44+
45+
.. step:: Select the connection names you want to import.
46+
47+
If the connection name already exists under your saved connections,
48+
|compass-short| overwrites the existing connection with the imported
49+
connection.
50+
51+
.. step:: Click :guilabel:`Import`.
52+
53+
Results
54+
-------
55+
56+
After the connections are imported, they appear on the left-side
57+
navigation of the Connect screen under :guilabel:`Saved Connections`.

0 commit comments

Comments
 (0)