Add ability to get the dragonflow data model

Bug #1734146 reported by Shachar Snapiri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DragonFlow
Fix Released
Undecided
Shachar Snapiri

Bug Description

Add the ability to get an easy view of the Dragonflow data model, plaintext, UML or JsonSchema

Changed in dragonflow:
assignee: nobody → Shachar Snapiri (snapiri)
Changed in dragonflow:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to dragonflow (master)

Fix proposed to branch: master
Review: https://review.openstack.org/522591

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/522599

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/522936

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/522946

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/522948

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/522951

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/523338

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on dragonflow (master)

Change abandoned by Shachar Snapiri (<email address hidden>) on branch: master
Review: https://review.openstack.org/522591
Reason: Squashed into base patch

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to dragonflow (master)

Fix proposed to branch: master
Review: https://review.openstack.org/523847

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/523848

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/523861

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/524071

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/524072

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to dragonflow (master)

Reviewed: https://review.openstack.org/522531
Committed: https://git.openstack.org/cgit/openstack/dragonflow/commit/?id=a5af8382580fbea57f7c7cce23facb757601c626
Submitter: Zuul
Branch: master

commit a5af8382580fbea57f7c7cce23facb757601c626
Author: Shachar Snapiri <email address hidden>
Date: Thu Nov 23 14:03:20 2017 +0200

    Add dragonflow model printers - first stage

    Add a parser for the dragonflow model and allow printing the model to
    stdout. In the next stages we want to add different representations as
    well: e.g. jsonschema, UML, etc.
    This is a standalone app, currently not taking any argument. We will add
    arguments in the future when more parsers will be added.

    Change-Id: I6cb92a676ed7ecf2f23a9c1c4b18ecf57fa409d8
    Partial-Bug: #1734146

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/522596
Committed: https://git.openstack.org/cgit/openstack/dragonflow/commit/?id=7d215f6b1157bb47a9684f384670a4867a35eaef
Submitter: Zuul
Branch: master

commit 7d215f6b1157bb47a9684f384670a4867a35eaef
Author: Shachar Snapiri <email address hidden>
Date: Thu Nov 23 18:20:18 2017 +0200

    Add support for writing output to a file

    Added command line arguments to allow saving the output to a file

    Change-Id: I3d460168c715fc38ebfa689349d43eed32cbb512
    Partial-Bug: #1734146

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on dragonflow (master)

Change abandoned by Shachar Snapiri (<email address hidden>) on branch: master
Review: https://review.openstack.org/522946
Reason: Squashed into another patch

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Shachar Snapiri (<email address hidden>) on branch: master
Review: https://review.openstack.org/523338
Reason: Squashed into another patch

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Shachar Snapiri (<email address hidden>) on branch: master
Review: https://review.openstack.org/523861
Reason: Squashed into another patch

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Shachar Snapiri (<email address hidden>) on branch: master
Review: https://review.openstack.org/524071
Reason: Squashed into another patch

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to dragonflow (master)

Fix proposed to branch: master
Review: https://review.openstack.org/525531

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to dragonflow (master)

Reviewed: https://review.openstack.org/522936
Committed: https://git.openstack.org/cgit/openstack/dragonflow/commit/?id=55e95a5a024fa202b08d6dff02bcd0bf87d64391
Submitter: Zuul
Branch: master

commit 55e95a5a024fa202b08d6dff02bcd0bf87d64391
Author: Shachar Snapiri <email address hidden>
Date: Sun Nov 26 07:45:34 2017 +0200

    Modified the parsing to be more memory efficient

    Removed the intermediate structure used during parsing. The printer now
    does not need to be aware of the model structure.
    The parser does the iteration over the fields and allows the printer to
    have no logic at all (no looping through the fields).
    This also saves memory and time as we do not re-create the whole model
    in our new structure, but rather go over the model only once.
    The EmbeddedField was not handled correctly.
    Add correct handling for it.

    Change-Id: I79d17533ac4beb0cb6007161de7aed5f5afa853a
    Partial-Bug: #1734146

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/522599
Committed: https://git.openstack.org/cgit/openstack/dragonflow/commit/?id=d292aeaf6626c6c258d708f5f9fa013fa09cb057
Submitter: Zuul
Branch: master

commit d292aeaf6626c6c258d708f5f9fa013fa09cb057
Author: Shachar Snapiri <email address hidden>
Date: Thu Nov 23 18:24:19 2017 +0200

    Add printer for PlantUML syntax

    Added command line argument (--uml) that prints the output to a PlantUML
    syntax.

    Change-Id: Ifa367af8879e302c225246231c215fb181c4020c
    Partial-Bug: #1734146

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/522948
Committed: https://git.openstack.org/cgit/openstack/dragonflow/commit/?id=4b0e5a121be4e834e98dd597be290126d67674a3
Submitter: Zuul
Branch: master

commit 4b0e5a121be4e834e98dd597be290126d67674a3
Author: Shachar Snapiri <email address hidden>
Date: Sun Nov 26 12:22:16 2017 +0200

    Add indexes and events to dragonflow model printer

    Add the ability to print the events and the indexes of a model in
    addition to the (already existing) fields.

    Change-Id: Iffcc7604e0c9426f0b262471b9a9292f7a809ace
    Partial-Bug: #1734146

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/522951
Committed: https://git.openstack.org/cgit/openstack/dragonflow/commit/?id=9d8146e54d0166453a69faa359c7cc254fd30798
Submitter: Zuul
Branch: master

commit 9d8146e54d0166453a69faa359c7cc254fd30798
Author: Shachar Snapiri <email address hidden>
Date: Sun Nov 26 12:59:45 2017 +0200

    Added 'required' field notation

    Added the information about reuquired fields.
    In the UML, the fields names are bold.

    Change-Id: Id595d946f578a3b37f28f3d66462d3c61fb70b3a
    Partial-Bug: #1734146

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/523847
Committed: https://git.openstack.org/cgit/openstack/dragonflow/commit/?id=7d56e9c7d911869095376f3d7910187b1160380b
Submitter: Zuul
Branch: master

commit 7d56e9c7d911869095376f3d7910187b1160380b
Author: Shachar Snapiri <email address hidden>
Date: Wed Nov 29 13:30:11 2017 +0200

    Use same print in all the printer classes

    Use a single print method to print to the output stream instead of
    specifying it in every print command.

    Change-Id: Iba5ca966a64edd02725d764d12a6e93b571af692
    Partial-Bug: #1734146

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to dragonflow (master)

Fix proposed to branch: master
Review: https://review.openstack.org/525907

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to dragonflow (master)

Reviewed: https://review.openstack.org/523848
Committed: https://git.openstack.org/cgit/openstack/dragonflow/commit/?id=e8a1ece4f4021cda8b5e9ec4fd181a169ffd7a97
Submitter: Zuul
Branch: master

commit e8a1ece4f4021cda8b5e9ec4fd181a169ffd7a97
Author: Shachar Snapiri <email address hidden>
Date: Wed Nov 29 13:36:10 2017 +0200

    Add JsonSchema printer

    Added OpenApiSchema json printer

    Change-Id: I2cfcaf1d2fbe87ea80362f620b12596c26d52d5e
    Partial-Bug: #1734146

Changed in dragonflow:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/524072
Committed: https://git.openstack.org/cgit/openstack/dragonflow/commit/?id=8dbb794cfec7fa02de5de2d1ec799541ee6469c6
Submitter: Zuul
Branch: master

commit 8dbb794cfec7fa02de5de2d1ec799541ee6469c6
Author: Shachar Snapiri <email address hidden>
Date: Thu Nov 30 08:11:50 2017 +0200

    Added documentation to the db-model app

    Added app usage instructions to the testing and debugging document.

    Change-Id: Ice0dc6c29f6afe0a383606156610e3cdb5fe06a5
    Closes-Bug: #1734146

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/525531
Committed: https://git.openstack.org/cgit/openstack/dragonflow/commit/?id=4a6a5be55a7565703d67134ba1ea72b098bf34fe
Submitter: Zuul
Branch: master

commit 4a6a5be55a7565703d67134ba1ea72b098bf34fe
Author: Shachar Snapiri <email address hidden>
Date: Tue Dec 5 13:16:23 2017 +0200

    Added reStructuredText model printer

    This one can be used to create rst documentation
    A simple viewer can be used at: http://rst.ninjs.org/?theme=nature

    Change-Id: Ieb056b867f7b2a38cbb858683a150b21a0655c97
    Partial-Bug: #1734146

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/525907
Committed: https://git.openstack.org/cgit/openstack/dragonflow/commit/?id=9adaca00fca2390c0344c92058587d2f4982bf0a
Submitter: Zuul
Branch: master

commit 9adaca00fca2390c0344c92058587d2f4982bf0a
Author: Shachar Snapiri <email address hidden>
Date: Wed Dec 6 08:51:50 2017 +0200

    Rename the json printer to jsonschema

    As per dimak's request on https://review.openstack.org/#/c/523848/ the
    json printer was renamed to jsonschema.
    Also, for ease of use added short-name arguments as well.

    Change-Id: I056bd459f22c2d1500f4d2539139f2f25a1e433e
    Partial-Bug: #1734146

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to dragonflow (master)

Fix proposed to branch: master
Review: https://review.openstack.org/546188

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to dragonflow (master)

Reviewed: https://review.openstack.org/546188
Committed: https://git.openstack.org/cgit/openstack/dragonflow/commit/?id=8b0b1a99eae1299225cc595a334935839af06908
Submitter: Zuul
Branch: master

commit 8b0b1a99eae1299225cc595a334935839af06908
Author: Shachar Snapiri <email address hidden>
Date: Tue Feb 20 17:34:43 2018 +0200

    Add indexed fields to df_model

    The fields that the indexes are translated into were not shown.
    Added the actual fields that the index names refer to.
    Also fixed an issue with jsonschema parser usage.

    Change-Id: I39340f4575d5508b90b92a814c6135c9aee6445e
    Partial-Bug: #1734146

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.