Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test attribute assignment and reassignment #276

Open
flyingsilverfin opened this issue Jan 22, 2024 · 0 comments
Open

Test attribute assignment and reassignment #276

flyingsilverfin opened this issue Jan 22, 2024 · 0 comments

Comments

@flyingsilverfin
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant