Github user ran-z commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/72#discussion_r104309126
--- Diff: aria/modeling/orchestration.py ---
@@ -291,28 +297,35 @@ class ServiceInstanceModificationBase(ModelMixin):
context = Column(Dict)
created_at = Column(DateTime, nullable=False, index=True)
ended_at = Column(DateTime, index=True)
- modified_nodes = Column(Dict)
- node_instances = Column(Dict)
- status = Column(Enum(*STATES, name='deployment_modification_status'))
+ modified_node_templates = Column(Dict)
+ nodes = Column(Dict)
+ status = Column(Enum(*STATES, name='service_modification_status'))
@declared_attr
- def service_instance_fk(cls):
- return cls.foreign_key('service_instance')
+ def service(cls):
+ return cls.many_to_one_relationship('service',
+ backreference='modifications')
@declared_attr
- def service_instance(cls):
- return cls.many_to_one_relationship('service_instance',
- backreference='modifications')
+ def service_name(cls):
--- End diff --
What's with changing "ServiceInstance" to "Service" all around?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---