Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0351F200C83 for ; Sun, 28 May 2017 10:27:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 01B82160BD8; Sun, 28 May 2017 08:27:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 49550160BB1 for ; Sun, 28 May 2017 10:27:08 +0200 (CEST) Received: (qmail 73150 invoked by uid 500); 28 May 2017 08:27:07 -0000 Mailing-List: contact issues-help@ariatosca.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ariatosca.incubator.apache.org Delivered-To: mailing list issues@ariatosca.incubator.apache.org Received: (qmail 73140 invoked by uid 99); 28 May 2017 08:27:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 May 2017 08:27:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BEF1AC12E0 for ; Sun, 28 May 2017 08:27:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id lDuaGEgAUQIz for ; Sun, 28 May 2017 08:27:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 2932A5FCE2 for ; Sun, 28 May 2017 08:27:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 4CEDAE0373 for ; Sun, 28 May 2017 08:27:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0A0B621B56 for ; Sun, 28 May 2017 08:27:04 +0000 (UTC) Date: Sun, 28 May 2017 08:27:04 +0000 (UTC) From: "Maxim Orlov (JIRA)" To: issues@ariatosca.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ARIA-262) Inconsistent ARIA attributes behavior MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 28 May 2017 08:27:09 -0000 [ https://issues.apache.org/jira/browse/ARIA-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maxim Orlov updated ARIA-262: ----------------------------- Description: ARIA provides sugaring for node attributes. However this sugaring is somewhat limited, as it sugars ctx accessed attributes. e.g. Under NodeOperationContext {{ctx.node.attributes}} has a dict-like behavior, where the value is another object with a dict-like behavior. This is provided by the sugaring. However {{ctx.node.relationships[0].target_node.attributes}} provides a dict where the value is of type Parameter, accessing the value of this Parameter require `param. This creates inconsistency with regards to access to attributes. There are several possible solutions: 1. Enable sugaring on the model level. this will effectively make the creation of Parameter implicit, but this will be possible throughout the entire code (not only under context). 2. Enable sugaring by tapping to sqla events and altering the return values. was: ARIA provides sugaring for node attributes. However this sugaring is somewhat limited, as it sugars ctx accessed attributes. e.g. Under NodeOperationContext {{ctx.node.attributes}} has a dict-like behavior, where the value is another object with a dict-like behavior. This is provided by the sugaring. However {{ctx.node.relationships[0].target_node.attributes` provides a dict where the value is of type Parameter, accessing the value of this Parameter require `param. This creates inconsistency with regards to access to attributes. There are several possible solutions: 1. Enable sugaring on the model level. this will effectively make the creation of Parameter implicit, but this will be possible throughout the entire code (not only under context). 2. Enable sugaring by tapping to sqla events and altering the return values. > Inconsistent ARIA attributes behavior > ------------------------------------- > > Key: ARIA-262 > URL: https://issues.apache.org/jira/browse/ARIA-262 > Project: AriaTosca > Issue Type: Story > Reporter: Maxim Orlov > > ARIA provides sugaring for node attributes. However this sugaring is somewhat limited, as it sugars ctx accessed attributes. e.g. Under NodeOperationContext {{ctx.node.attributes}} has a dict-like behavior, where the value is another object with a dict-like behavior. This is provided by the sugaring. > However {{ctx.node.relationships[0].target_node.attributes}} provides a dict where the value is of type Parameter, accessing the value of this Parameter require `param. This creates inconsistency with regards to access to attributes. > There are several possible solutions: > 1. Enable sugaring on the model level. this will effectively make the creation of Parameter implicit, but this will be possible throughout the entire code (not only under context). > 2. Enable sugaring by tapping to sqla events and altering the return values. -- This message was sent by Atlassian JIRA (v6.3.15#6346)