Skip to content

Commit c78a5e6

Browse files
authored
DOCSP-30629 Working with Entities Drawer (#15)
* DOCSP-30629 Working with Entities Drawer
1 parent 7a59978 commit c78a5e6

File tree

11 files changed

+355
-11
lines changed

11 files changed

+355
-11
lines changed

source/diagrams/diagrams.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ when you update your project's data model.
3737
Learn More
3838
----------
3939

40-
- :ref:`understand-diagrams`
40+
- :ref:`rm-understand-diagrams`
4141

42-
- :ref:`navigate-diagrams-and-entities`
42+
- :ref:`rm-navigate-diagrams`
4343

4444
- :ref:`rm-apply-layout`
4545

source/diagrams/navigate-diagrams/navigate-diagrams.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. _navigate-diagrams-and-entities:
1+
.. _rm-navigate-diagrams:
22

33
==============================
44
Navigate Diagrams and Entities
@@ -76,3 +76,4 @@ Learn More
7676
:titlesonly:
7777

7878
/diagrams/navigate-diagrams/apply-layout
79+
/diagrams/navigate-diagrams/working-with-entities/working-with-entities
Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,55 @@
1+
.. _rm-copy-entities:
2+
13
=============
24
Copy Entities
3-
=============
5+
=============
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 1
11+
:class: singlecol
12+
13+
Select one or more entities to copy to a different diagram. You
14+
can copy the entities to a newly created diagram or to a different existing
15+
diagram. Copying entities lets you customize diagrams to help you visualize
16+
the different ways your data can be represented in MongoDB.
17+
18+
Steps
19+
-----
20+
21+
#. From the :guilabel:`Diagram` view or :guilabel:`Schema model` pane,
22+
:ref:`select the entities <rm-select-entities>` you want to copy.
23+
24+
#. Right click and select :guilabel:`Copy entities to`.
25+
26+
.. note::
27+
28+
You can also click the ellipsis menu in the top-right pane and select :guilabel:`Copy entities to`.
29+
30+
#. Select one of the following options to copy your entities to:
31+
32+
.. list-table::
33+
:header-rows: 1
34+
:widths: 33 33 33
35+
36+
* - If you want to
37+
- Then
38+
- Result
39+
* - Copy entities to an existing diagram.
40+
- Select the existing diagram name in the :guilabel:`Target diagram` drop-down.
41+
- The copied entities are displayed with the other pre-existing entities in the diagram.
42+
* - Create a new diagram and copy entities to it.
43+
- Select :guilabel:`Create new diagram` in the :guilabel:`Target diagram` drop-down.
44+
- Only the copied entities are displayed in the new diagram.
45+
46+
#. Click the green :guilabel:`Copy entities` button.
47+
48+
Learn More
49+
----------
50+
51+
- :ref:`rm-understand-diagrams`
52+
- :ref:`rm-navigate-diagrams`
53+
- :ref:`rm-move-entities`
54+
- :ref:`rm-toggle-visibility-entities`
55+
- :ref:`rm-delete-entities`
Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,63 @@
1+
.. _rm-delete-entities:
2+
13
===============
24
Delete Entities
3-
===============
5+
===============
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 1
11+
:class: singlecol
12+
13+
Select one or more entities to delete from your Relational or MongoDB
14+
model. Deleting entities allows you to:
15+
16+
- Customize the size of your diagram.
17+
- Focus on entities you select.
18+
- Visualize your relational database's schema to help determine how to best
19+
represent your data in MongoDB.
20+
21+
About this Task
22+
---------------
23+
24+
- You can revert any deletion.
25+
26+
- Deleting an entity on the :guilabel:`Relational Model` is the equivalent of removing a
27+
table from the project's model.
28+
29+
- To revert this change, re-add the table to the :guilabel:`Manage Relational Model`
30+
dialog. See :ref:`manage the relational model <rm-manage-relational-model>`.
31+
32+
- Deleting an entity on the :guilabel:`MongoDB Model` is the equivalent of removing all
33+
mappings to that collection.
34+
35+
- To revert this change, re-add a :ref:`new documents mapping rule <rm-new-documents>` from
36+
the source table.
37+
38+
Steps
39+
-----
40+
41+
#. :ref:`Select the entities<rm-select-entities>`, and press
42+
delete on your keyboard.
43+
44+
Relational Migrator prompts removal commands that include either removing the
45+
entity from the model or hiding the entity from the diagram.
46+
47+
.. note::
48+
49+
You can also right-click the entities and select :guilabel:`Remove Entity` to prompt
50+
removal commands.
51+
52+
#. Specify where you want to delete the entity.
53+
Select :guilabel:`Remove from relational model` or :guilabel:`Remove from MongoDB model`.
54+
55+
#. Click :guilabel:`Remove x tables` or :guilabel:`Remove x collections`.
56+
The button is modified to reflect what you have selected to delete.
57+
58+
Learn More
59+
----------
60+
61+
- :ref:`rm-move-entities`
62+
- :ref:`rm-copy-entities`
63+
- :ref:`rm-toggle-visibility-entities`
Lines changed: 91 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,93 @@
1+
.. _rm-toggle-visibility-entities:
2+
13
=============================
24
Toggle Visibility of Entities
3-
=============================
5+
=============================
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 1
11+
:class: singlecol
12+
13+
You can show or hide entities in your diagrams. Showing and hiding entities only
14+
affects the current diagram and does not affect the model. By toggling the visibility
15+
of entities, you can focus your attention on specific entities and relationships
16+
and reduce clutter in your diagram.
17+
18+
About this Task
19+
---------------
20+
21+
The visibility of an entity:
22+
23+
- Applies *per diagram*. If you have multiple diagrams, toggling the
24+
visibility of an entity in one diagram does not affect that entity in
25+
other diagrams.
26+
27+
- Persists as part of the diagram. For example, if you hide an entity,
28+
that entity remains hidden when you reload the diagram.
29+
30+
Changing the visibility of an entity does not affect the placement of
31+
other entities in the diagram.
32+
33+
Changing Visibility Can Affect the Opposite View
34+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35+
36+
Changing the visibility of an entity in one view (either the Relational
37+
or MongoDB view) can affect the visibility of entities in the other
38+
view. Specifically:
39+
40+
- When you hide an entity, any entities from the opposite view that are
41+
linked to the current entity with mapping rules are automatically
42+
hidden, provided those linked entities are not also linked to other
43+
visible entities in the original view.
44+
45+
- When you revert the hiding of an entity, any entities from the opposite view
46+
that are linked to the current entity with mapping rules are automatically
47+
unhidden.
48+
49+
.. _rm-hide-schema-model:
50+
51+
Hide Entities using the Schema Model Pane
52+
-----------------------------------------
53+
54+
To hide an entity, hover over the entity in the :guilabel:`Schema Model` pane and click
55+
the eye icon.
56+
57+
- An open eye icon indicates that the entity is visible.
58+
- An eye icon with a line through it indicates that the entity is hidden.
59+
60+
.. _rm-hide-diagram:
61+
62+
Hide Entities using a Diagram
63+
-----------------------------
64+
65+
#. :ref:`Select the entities <rm-select-entities>` you want to hide.
66+
67+
#. Press the ``delete`` key on your keyboard. Relational Migrator prompts
68+
removal commands.
69+
70+
#. Select :guilabel:`Hide from the diagram`.
71+
72+
#. Click the red :guilabel:`Hide` button.
73+
74+
.. note::
75+
76+
You can also right-click an entity and select :guilabel:`Hide entity`
77+
to hide it.
78+
79+
Showing Entities
80+
----------------
81+
82+
You can show hidden entities in both collections and tables.
83+
84+
To show hidden entities, in the :guilabel:`Schema Model` pane, click they eye symbol next
85+
to the collection or table you want to be visible in your diagram. The open eye
86+
icon indicates that the entity is visible.
87+
88+
Learn More
89+
----------
90+
91+
- :ref:`Move Entities to Different Diagram <rm-move-entities>`
92+
- :ref:`Copy Entities to Different Diagrams <rm-copy-entities>`
93+
- :ref:`Delete Entities <rm-delete-entities>`
Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
.. _rm-move-entities:
2+
13
=============
24
Move Entities
3-
=============
5+
=============
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 1
11+
:class: singlecol
12+
13+
You can select one or more entities and move them to a different diagram. You
14+
can move the entities to a newly created diagram or to a different existing
15+
diagram. Moving entities lets you customize diagrams to help you visualize
16+
the different ways your data can be represented in MongoDB.
17+
18+
Steps
19+
-----
20+
21+
#. :ref:`Select the entities <rm-select-entities>` you want to move.
22+
23+
#. To view commands for your entities, click the ellipsis menu in the right pane.
24+
25+
.. image:: /img/diagrams/entity-menu.png
26+
:alt: Entity Pane
27+
28+
.. note::
29+
30+
You can also right-click the entities to view commands.
31+
32+
#. Click :guilabel:`Move entities to`.
33+
34+
#. Choose how to move the entities.
35+
36+
You can choose to move your entities to an existing diagram *or* you can
37+
choose to create a new diagram to move your entities to.
38+
39+
#. Move the entities to the selected diagram.
40+
41+
The selected entities are hidden in the original diagram and are displayed
42+
in the diagram they are moved to.
43+
44+
- If you selected an existing diagram, the moved entities are displayed
45+
with the other pre-existing entities in the diagram.
46+
47+
- If you selected :guilabel:`Create new diagram`, only the moved entities are displayed.
48+
49+
Learn More
50+
----------
51+
52+
- :ref:`Copy Entities to Different Diagrams <rm-move-entities>`
53+
- :ref:`Hide Entities <rm-toggle-visibility-entities>`
54+
- :ref:`Delete Entities <rm-delete-entities>`
Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,74 @@
1+
.. _rm-select-entities:
2+
13
===============
24
Select Entities
3-
===============
5+
===============
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 1
11+
:class: singlecol
12+
13+
You can select one or more entities. You can select entities either in the
14+
:ref:`diagram view <rm-diagram-view>` or in the :ref:`schema model <rm-schema-model-pane>` pane.
15+
After you select your entities, you can move, copy, delete, or hide your selected
16+
entities.
17+
18+
.. _rm-diagram-view:
19+
20+
Select Entities in Diagram View
21+
-------------------------------
22+
23+
Select Individual Entities
24+
~~~~~~~~~~~~~~~~~~~~~~~~~~
25+
26+
To select entities *individually* in the diagram view, click an entity to select
27+
it.
28+
29+
To add entities to the existing selection, hold the :guilabel:`command` (Mac) key or the
30+
:guilabel:`ctrl` (Windows/Linux) key.
31+
32+
Select Multiple Entities
33+
~~~~~~~~~~~~~~~~~~~~~~~~
34+
35+
To select *multiple entities* at once in the diagram view, hold the :guilabel:`Shift`
36+
key and draw a box around all the entities you want to select.
37+
38+
.. _rm-schema-model-pane:
39+
40+
Select Entities in Schema Model Pane
41+
------------------------------------
42+
43+
Select Individual Entities
44+
~~~~~~~~~~~~~~~~~~~~~~~~~~
45+
46+
To select entities *individually* in the left pane, click an entity to select it.
47+
48+
To add entities to the existing selection, hold the :guilabel:`command` (Mac) key or the
49+
:guilabel:`ctrl` (Windows/Linux) key.
50+
51+
Select Multiple Entities
52+
~~~~~~~~~~~~~~~~~~~~~~~~
53+
54+
To select *multiple entities* at once in the left pane, hold the :guilabel:`Shift` key
55+
and select two entities. All entities in between the two selected entities are
56+
added to the selection.
57+
58+
Clear Selected Entities
59+
-----------------------
60+
61+
You can clear selected entities in the following ways:
62+
63+
- Hold down the :guilabel:`command` (Mac) key or the :guilabel:`ctrl` (Windows/Linux)
64+
key and click an entity to remove.
65+
- Press the :guilabel:`esc` key to clear all entities.
66+
- Click the diagram background to clear all entities.
67+
68+
Learn More
69+
----------
70+
71+
- :ref:`rm-move-entities`
72+
- :ref:`rm-copy-entities`
73+
- :ref:`rm-toggle-visibility-entities`
74+
- :ref:`rm-delete-entities`

0 commit comments

Comments
 (0)