HUE-1660 [core] Export/import all stored scripts

Review Request #4279 — Created March 21, 2014 and updated

abec
old-hue-rw
HUE-1660
hue
enricoberti, romain
commit 4af3eec039b7afa8d799f3fa5d574b26a7fa5ba9
Author: Abraham Elmahrek <abraham@elmahrek.com>
Date:   Thu Mar 6 17:10:49 2014 -0800

    HUE-1660 [core] Export/import all stored scripts
    
    Added model_to_dict to django_util.
    Provided UUIDs for document to easily serialize, deserialize, and remove dup docs.
    Natural key and parent key serialization provided through dependency resolution.
    
    Create a new set of serializers and deserializers using:
    - Serialization class similar to Meta class in models
    - Dependency lists and "retro" dependency lists
    - Primary key serialization using 'key' and 'from_key' methods
    
    Dependency resolution takes place in a series of steps:
    1. reorder objects being imported via heap algorithm
    2. resolve dependencies after creating objects
    3. save objects after resolving dependencies
    4. resolve retro dependencies

:000000 100644 0000000... 2fba62f... A	apps/beeswax/src/beeswax/migrations/0009_auto__add_field_savedquery_uid.py
:000000 100644 0000000... 4f7d2b6... A	apps/beeswax/src/beeswax/migrations/0010_initial_uuid_values.py
:100644 100644 c5dbbef... bd9bec8... M	apps/beeswax/src/beeswax/models.py
:100644 100644 d511064... c0a6ca0... M	apps/jobsub/src/jobsub/views.py
:100644 100644 8a84d29... f2ee343... M	apps/oozie/src/oozie/importlib/workflows.py
:100644 100644 a18c953... 516a27b... M	apps/oozie/src/oozie/models.py
:100644 100644 fb6880d... b88a3b9... M	apps/oozie/src/oozie/utils.py
:100644 100644 68e4882... 3df7e31... M	apps/oozie/src/oozie/views/api.py
:100644 100644 5c2fbc6... c4b3b7c... M	apps/oozie/src/oozie/views/editor.py
:100644 100644 c2c16b4... e37f558... M	desktop/core/src/desktop/api.py
:100644 100644 387da65... 0ec4497... M	desktop/core/src/desktop/api_tests.py
:000000 100644 0000000... 393f2fc... A	desktop/core/src/desktop/forms.py
:000000 100644 0000000... edc5c4d... A	desktop/core/src/desktop/lib/django_serializers.py
:100644 100644 3c6085d... 6bb878b... M	desktop/core/src/desktop/lib/django_util.py
:000000 100644 0000000... 4d3791e... A	desktop/core/src/desktop/migrations/0008_auto__add_field_document_uid.py
:000000 100644 0000000... 37ca870... A	desktop/core/src/desktop/migrations/0009_initial_uuid_values.py
:100644 100644 4638ad7... 4ef7836... M	desktop/core/src/desktop/models.py
:100644 100644 c1cf64a... caa60e4... M	desktop/core/src/desktop/templates/home.mako
:100644 100644 f565b40... 35bbc84... M	desktop/core/src/desktop/urls.py
:100644 100644 7fd679a... 1c6ee54... M	desktop/core/src/desktop/views.py
Can import and export examples.

Prototype #3
Loading...