-
Notifications
You must be signed in to change notification settings - Fork 54
Export and Import of Projects, update and refactor for cli and drf #1394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 3.0.0/release
Are you sure you want to change the base?
Conversation
Import with memberships is only supported via the management command for now. Other notes: |
remove separate debounced components
* create Tile, TileGrid helper components * add API entries * add css
* fix form
* use form components * implement debounce fetch and save
* add ProjectDelete
* add actions
* add TODOs
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
…and use django FileSystemStorage Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
ffd5955 to
b337a73
Compare
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
Signed-off-by: David Wallace <david.wallace@tu-darmstadt.de>
|
For import plugins: |
bed62c2 to
f10eac0
Compare
Description
This PR updates and refactors the project export management command and adds a project import command.
Initially, It was GPT generated because many parts of the RDMO import functions were not easily re-usable for a management command. However the code has been re-evaluated and re-factored to fit better in the rdmo code base.
An extra added functionality is, the export and import of the project members (
--include-memberships), it currently creates an extra JSON file with the memberships but it probably should be integrated to the export format (like XML). In another instance the users can then be created or retrieved via email addresses.As a side note, for when using a socialaccount provider, that would require an extra "existing account adapter" that lets a social login be connected to the existing user via the verified email address for example.
This PR should aim to refactor the RDMO project export and import functions so that they can easily be re-used for these CLI commands and for the DRF endpoints.
CLI, management commands
The
import_projectscommand:and
export_projects:Two methods
render_memberandrender_member_userwere added to the XML renderer.The memberships can be exported to the xml and will look like this:
Try out locally:
DRF, endpoints and actions
For exporting an existing project:
api/v1/projects/projects/<pk>/export/<export_format>For project creation with an import
/api/v1/projects/projects/{id}/import-create-preview/api/v1/projects/projects/{id}/import-create-confirm/For updating an existing project with an import
/api/v1/projects/projects/{id}/import-update-preview/api/v1/projects/projects/{id}/import-update-confirm/Related issues are #1277 #1357