ariatosca-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (ARIA-165) Make node name suffix UUIDs become more readable
Date Tue, 09 May 2017 07:54:04 GMT


ASF GitHub Bot commented on ARIA-165:

Github user mxmrlv commented on a diff in the pull request:
    --- Diff: aria/modeling/ ---
    @@ -549,9 +549,13 @@ def as_raw(self):
                 ('requirement_templates', formatting.as_raw_list(self.requirement_templates))))
         def instantiate(self, container):
    -        context = ConsumptionContext.get_thread_local()
             from . import models
    -        name = context.modeling.generate_node_id(
    +        if self.nodes:
    +            latest_node_index = self.nodes[-1].name.rsplit('_', 1)[1]
    --- End diff --
    Pretty sure sql orders according to the indexed column

> Make node name suffix UUIDs become more readable
> ------------------------------------------------
>                 Key: ARIA-165
>                 URL:
>             Project: AriaTosca
>          Issue Type: Story
>            Reporter: Ran Ziv
>            Assignee: Maxim Orlov
>            Priority: Minor
> Node names are currently constructed of the node template name with a UUID suffix. While
this makes the node name unique across all services, it also makes the node names less readable,
and since nodes are already unique via their ID, it might be better to use a different type
of suffix.
> One option would be to generate a shorter, no capital letters string, which would be
more readable, and (in very high probability) unique in a single service.
> Another option would be to go for a running number suffix for each node of a given node
template, which could be simple, unique and readable.

This message was sent by Atlassian JIRA

View raw message