ariatosca-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARIA-132) Models cascading deletion raises constraint errors
Date Tue, 28 Mar 2017 11:26:41 GMT

    [ https://issues.apache.org/jira/browse/ARIA-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15944982#comment-15944982
] 

ASF GitHub Bot commented on ARIA-132:
-------------------------------------

Github user mxmrlv commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/84#discussion_r108395116
  
    --- Diff: aria/modeling/service_template.py ---
    @@ -1644,6 +1935,52 @@ def node_template_fk(cls):
     
         # endregion
     
    +    # region association proxies
    +
    +    # endregion
    +
    +    # region one_to_one relationships
    +
    +    # endregion
    +
    +    # region one_to_many relationships
    +
    +    @declared_attr
    +    def artifacts(cls):
    +        return relationship.one_to_many(cls, 'artifact')
    +
    +    # endregion
    +
    +    # region many_to_one relationships
    +
    +    @declared_attr
    +    def node_template(cls):
    +        return relationship.many_to_one(cls, 'node_template')
    +
    +    @declared_attr
    +    def type(cls):
    +        return relationship.many_to_one(cls, 'type', back_populates=False)
    +
    +    # endregion
    +
    +    # region many_to_many relationships
    +
    +    @declared_attr
    +    def properties(cls):
    +        return relationship.many_to_many(cls, 'parameter', prefix='properties', dict_key='name')
    +
    +    # endregion
    +
    +    description = Column(Text)
    +    source_path = Column(Text)
    +    target_path = Column(Text)
    +    repository_url = Column(Text)
    +    repository_credential = Column(modeling_types.StrictDict(basestring, basestring))
    +
    +
    --- End diff --
    
    remove


> Models cascading deletion raises constraint errors
> --------------------------------------------------
>
>                 Key: ARIA-132
>                 URL: https://issues.apache.org/jira/browse/ARIA-132
>             Project: AriaTosca
>          Issue Type: Bug
>            Reporter: Ran Ziv
>            Assignee: Maxim Orlov
>            Priority: Critical
>
> Models whose deletion should cascade to additional models currently don't behave this
way and instead raise constraint errors



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message