Skip to content

Test attribute assignment and reassignment #276

Open
@flyingsilverfin

Description

@flyingsilverfin

Problem to Solve

We currently have a set of errors/gap in functionality and documentation to do with moving 'has' attribute ownerships around.

Current Workaround

We can currently do everything one would expect by creating a value concept first:

match $x isa person, has name $name; ?n = $name;
insert $x isa person, has nickname ?n;

Proposed Solution

We should complete the following set of tests in both 'match', 'insert', and 'delete' clauses if they don't already exist:

$x has $attr;
$x has name $attr;
$x has name = "name";
$x has name = $name;
$x has name = ?name;

In particular, we should complete the coverage for cases where the attribute value is 'matched' before, or updated before (in an 'update' query).

Additional Information

We should validate it's possible to move an attribute value from one owned type to another owned type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions