glare/glare/objects
Idan 26e4184c8d Add patch info to pre_upload_hook.
We got a specific case in which this change
is needed:

An aritifact type that only one instance is
allowed to be in 'active' status.

To enforce that we want to use pre_update_hook,
and check if there is any other artifact in 'active' status.
To do so we need json_patch info (we need to know if the json_patch
change status to "active" or "deactivated". 

This change aim to suuport this case and also support backward 
compatibility.


With this background, if the a user update 'active' artifact
to be with status "deactivated", we must know the patch info.

Change-Id: I6e85ff89144ca6d3a69c7a240de3f41bd1d999e7
2019-01-03 15:19:23 +00:00
..
meta validate folder data before saving it in database 2018-10-23 20:45:09 +05:30
__init__.py Glare Code 2016-08-05 18:59:44 +03:00
all.py Moved display_type_name attribute to to each artifact detail object 2018-05-08 11:50:54 +05:30
base.py Add patch info to pre_upload_hook. 2019-01-03 15:19:23 +00:00
heat_environment.py Added display_type_name field in BaseArtifact 2018-03-19 20:24:00 +05:30
heat_template.py Added display_type_name field in BaseArtifact 2018-03-19 20:24:00 +05:30
image.py Added display_type_name field in BaseArtifact 2018-03-19 20:24:00 +05:30
murano_package.py Added display_type_name field in BaseArtifact 2018-03-19 20:24:00 +05:30
secret.py Added display_type_name field in BaseArtifact 2018-03-19 20:24:00 +05:30
tosca_template.py Added display_type_name field in BaseArtifact 2018-03-19 20:24:00 +05:30