Commit 5f56af2
[Feature][ImportExport] Assets and Documents in a common way (#13)
* [Feature] enable exporting and importing several pages by ONE yaml file
* [Fix] use ['page'] instead of config
* [Feature] Add integration tests for PageExporter
Add Menu and Controller route for export page incl. subpages
* [Feature] Moved import menu to main menu toolbar
* [Feature] Test PageImporter and adapt way of saving
* [Export All] new command for export all pages
different converters for folder, snippet & pages
* [Chore] fix general code styles
* [Chore] readme: edit how tests must be executed
* [Export All][Refactoring] remove duplicated code
* Update src/Controller/Admin/PageImportController.php
Co-authored-by: Luka Dschaak <l.dschaak@neusta.de>
* Update tests/Integration/Documents/Export/PageExporterTest.php
thx for translations
Co-authored-by: Luka Dschaak <l.dschaak@neusta.de>
* Update tests/Integration/Documents/Export/PageImporterTest.php
thx for translations
Co-authored-by: Luka Dschaak <l.dschaak@neusta.de>
* Update tests/Integration/Documents/Export/PageImporterTest.php
thx for translations
Co-authored-by: Luka Dschaak <l.dschaak@neusta.de>
* Update translations/admin.de.yaml
thx for translations
Co-authored-by: Luka Dschaak <l.dschaak@neusta.de>
* Update translations/admin.en.yaml
thx for translations
Co-authored-by: Luka Dschaak <l.dschaak@neusta.de>
* Update tests/Integration/Documents/Export/PageImporterTest.php
thx for translations
Co-authored-by: Luka Dschaak <l.dschaak@neusta.de>
* Update tests/Integration/Documents/Export/PageImporterTest.php
thx for translations
Co-authored-by: Luka Dschaak <l.dschaak@neusta.de>
* [Export All][Tests] add expected yaml files
* [Export All][Tests] fix it
* [Export All][Refactoring] (#12)
* [Export All][Refactoring] fix it
* [Export All][Refactoring] check import by path inheritance except parentId
* [Export All][Refactoring] add option for output file
* [Export All][Refactoring] rename property for Luka
* [Export All][Refactoring] add some docs
* [Export All][Refactoring][New Commands] for import and export
* [Export All][Refactoring][New Commands] review by Bundle Dev Group
* [Export All][Refactoring][New Commands] some refactorings and an additional menu for the export filename
* [Export All][Refactoring][New Commands] change inlining for better readability and remove old export method
* [Export All][Refactoring][New Commands] generalize serialization and add JSON input/output
* [Export All][Refactoring][New Commands] fix tests
* [Export All][Refactoring][New Commands] add parameter for format to Controllers and js Scripts
* [Export All][Refactoring][New Commands] add test results
* Update tests/Integration/Documents/Export/PageExporterTest.php
Co-authored-by: Jacob Dreesen <jacob@hdreesen.de>
* [Export All][Refactoring][New Commands] adapt naming import to export
* [Export All][Refactoring][New Commands] fix test
* Update src/Controller/Admin/PageImportController.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update src/Command/ExportPagesCommand.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update src/Command/ImportPagesCommand.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update src/Command/ImportPagesCommand.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* [Import][Export] Assets and Documents in common way
* [Import][Export] fix tests - export refactoring done.
* [Import][Export] fix tests - import refactoring done.
* [Import][Export] Export Assets via Menu - done.
* [Import][Export] Export Assets via Command - done.
* [Import][Export] Import Assets via Command - done.
* [Import][Export] Three menu items under Extras Main Menu for Import
* [Import][Export] adapted icons for menus
* [Import][Export] export Data Objects as well
* [Import][Export] provide all Importers as Controllers
* [Import][Export] provide mechanisms for Data Objects import
* [Import][Export] provide mechanisms for Assets import
* [Import][Export] cs fixed and phpstan corrected
* [Import][Export] tests fixed
* Update src/Populator/PageImportPopulator.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update src/Serializer/JsonSerializer.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* [Import][Export] CodeRabbit review fix
* [Import][Export] CodeRabbit review fix
* [Import][Export] Implement additional export commands
* [Import][Export] CodeRabbit fix
* [Import][Export] cs fixed, phpstan corrected and doc added
* [Import][Export] Code Rabbit review fixed
* [Import][Export] fix code style php
* [Import][Export] remove unnecessary CSS
* [Import][Export] code review by Luka
* [Import][Export] remove unnecessary $sourceArrayKey declaration
* [Import][Export] early access
* [Import][Export] add red borders to context menu doc images
* [Import][Export] update readme
* [Import][Export] simplify routing.yaml
* [Import][Export] integration test for ParentRelationResolver
* [NSDTRINITY-17] rename common findAllInTree methods and pull up to ExportRepositoryInterface
* Update src/Command/ExportDataObjectsCommand.php
Co-authored-by: Luka Dschaak <l.dschaak@neusta.de>
* Update src/Command/ExportDocumentsCommand.php
Co-authored-by: Luka Dschaak <l.dschaak@neusta.de>
* Update src/Command/ImportDocumentsCommand.php
Co-authored-by: Luka Dschaak <l.dschaak@neusta.de>
* [NSDTRINITY-17] correct export of Data Objects and cut relations of related objects to avoid circular reference
* [NSDTRINITY-17] partial correct import of Data Objects (e.g. DataLink will not be imported atm)
* [NSDTRINITY-17] cs fixed, phpstan corrected
* [NSDTRINITY-17] fix parentResolver
* [NSDTRINITY-17] add help to commands
* [NSDTRINITY-17] code rabbit review
---------
Co-authored-by: Luka Dschaak <l.dschaak@neusta.de>
Co-authored-by: Jacob Dreesen <jacob@hdreesen.de>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>1 parent e213f62 commit 5f56af2
File tree
99 files changed
+4398
-552
lines changed- config
- pimcore
- export
- assets
- documents
- elements
- objects
- import
- assets
- documents
- objects
- docs/images
- public
- css
- icons
- js
- src
- Command
- Base
- Controller/Admin
- Base
- Converter
- Documents
- Export
- Import
- EventListener
- Export
- Service
- Import
- Factory
- Model
- Asset
- Document
- Object
- Populator
- Serializer
- Toolbox/Repository
- tests
- Integration
- Export
- __snapshots__
- Import
- Unit
- Controller/Admin
- Converter
- app/config
- translations
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
99 files changed
+4398
-552
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
24 | 36 | | |
25 | 37 | | |
26 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
27 | 80 | | |
| 81 | + | |
28 | 82 | | |
| 83 | + | |
29 | 84 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
48 | 105 | | |
49 | 106 | | |
50 | 107 | | |
51 | 108 | | |
52 | | - | |
53 | | - | |
54 | 109 | | |
55 | 110 | | |
56 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
57 | 165 | | |
58 | 166 | | |
59 | 167 | | |
| |||
74 | 182 | | |
75 | 183 | | |
76 | 184 | | |
77 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
78 | 191 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | | - | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
0 commit comments