Skip to content
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

Provide a way to export/import all content #273

Closed
b1rger opened this issue Sep 7, 2023 · 1 comment · Fixed by #424 or #446
Closed

Provide a way to export/import all content #273

b1rger opened this issue Sep 7, 2023 · 1 comment · Fixed by #424 or #446
Assignees

Comments

@b1rger
Copy link
Contributor

b1rger commented Sep 7, 2023

There should be a way to export/import all content without creating new IDs

@b1rger
Copy link
Contributor Author

b1rger commented Nov 12, 2023

A way to do this is basically dumpdata apis_ontology apis_relations apis_metainfo --indent=2 --natural-foreign - maybe simply documenting this is enough. or we could create a mangement command that inherits from dumpdata, sets the needed options and instead of hardcoding apis_ontology lists all the relevant django apps

b1rger added a commit that referenced this issue Nov 20, 2023
This view provides a way to serialize the whole database using json -
getting a fixture with natural foreign keys. This fixture lets us
reimport the database in a new installation.

Closes: #273
b1rger added a commit that referenced this issue Nov 20, 2023
This view provides a way to serialize the whole database using json -
getting a fixture with natural foreign keys. This fixture lets us
reimport the database in a new installation.

Closes: #273
b1rger added a commit that referenced this issue Nov 20, 2023
This feature provides ways to serialize the data of an APIS instance to
be able to import it in a freshly installed instance later on.

The main logic is implemented in the `utils.helper.datadump_serializer`
method. It serializes the important models to json - with natural
foreign keys.

There is both a view ('/apisdumpdata.json') and an admin command
('apisdumpdata') that output the serialized data as HttpResponse or to
stdout.

Closes: #273
b1rger added a commit that referenced this issue Nov 20, 2023
This feature provides ways to serialize the data of an APIS instance to
be able to import it in a freshly installed instance later on.

The main logic is implemented in the `utils.helper.datadump_serializer`
method. It serializes the important models to json - with natural
foreign keys.

There is both a view ('/apisdumpdata.json') and an admin command
('apisdumpdata') that output the serialized data as HttpResponse or to
stdout.

Closes: #273
@b1rger b1rger self-assigned this Nov 30, 2023
b1rger added a commit that referenced this issue Nov 30, 2023
This feature provides ways to serialize the data of an APIS instance to
be able to import it in a freshly installed instance later on.

The main logic is implemented in the `utils.helper.datadump_serializer`
method. It serializes the important models to json - with natural
foreign keys.

There is both a view ('/api/dumpdata') and an admin command
('apisdumpdata') that output the serialized data as API Response or to
stdout.

Closes: #273
b1rger added a commit that referenced this issue Nov 30, 2023
This feature provides ways to serialize the data of an APIS instance to
be able to import it in a freshly installed instance later on.

The main logic is implemented in the `utils.helper.datadump_serializer`
method. It serializes the important models to json - with natural
foreign keys.

There is both a view ('/api/dumpdata') and an admin command
('apisdumpdata') that output the serialized data as API Response or to
stdout.

Closes: #273
b1rger added a commit that referenced this issue Dec 11, 2023
This feature provides ways to serialize the data of an APIS instance to
be able to import it in a freshly installed instance later on.

The main logic is implemented in the `utils.helper.datadump_serializer`
method. It serializes the important models to json - with natural
foreign keys.

There is both a view ('/api/dumpdata') and an admin command
('apisdumpdata') that output the serialized data as API Response or to
stdout.

Closes: #273
gythaogg pushed a commit that referenced this issue Dec 11, 2023
This feature provides ways to serialize the data of an APIS instance to
be able to import it in a freshly installed instance later on.

The main logic is implemented in the `utils.helper.datadump_serializer`
method. It serializes the important models to json - with natural
foreign keys.

There is both a view ('/api/dumpdata') and an admin command
('apisdumpdata') that output the serialized data as API Response or to
stdout.

Closes: #273
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant