Reset a change to an object the same session deletes to NULL
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 22/100
Research direction
The behavior is a data property change being reset to NULL when the object it points to is deleted in the same session; the payload names no source files. Start from the lsFusion LSF example in the issue body to reproduce the status(t) case, then look for the session change-handling code in the Java platform sources that decides which saved value a property falls back to on DELETE. Done means the example yields status(t) = NULL for the reset case while the dropValueChangesBackwardCompatibility setting restores the old result.
Written by the indexing model from the issue text.
Description
Description
When an object is deleted, a data property whose value it was reads NULL. A change of the property made in the same session to that object was dropped instead, and the property read its saved value again:
CLASS Status;
CLASS Task;
status = DATA Status (Task);
// t is saved with the status s, x is another status
status(t) <- x;
DELETE x;
// was: status(t) = s, nothing changed; now: status(t) = NULL, as for a task saved with x
Such a change is now reset to NULL as well. An application can notice it only where the saved value of the property is another object: a NONULL property fails the apply as not set, an object with a NONULL DELETE property moved under the deleted object is deleted with it, events and constraints on CHANGED / DROPPED of the property fire, forms show no value. The previous behavior is available with the dropValueChangesBackwardCompatibility setting.
Reason
Reading the saved value again was no undo of the change: the session's earlier changes of the property were lost with it (status(t) <- NULL; status(t) <- x; DELETE x; brought the saved status back), a NONULL property passed with a value nobody chose, and a form kept showing the saved option after the picked one was deleted.
- Dominant language
- Java
- Stars
- 214
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lsfusion/platform
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
Difficulty 3/5 1-2 days Newbie friendliness 62/100
All issues in lsfusion/platform
Similar issues
-
account assessment course feature lecture
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
app:learninggoalhub enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
PropertyResolver fails on JDK classes with a non-public field named like the propertyPossibly taken @vaibhavgupta443 claimed this today. Opengood first issue
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
apache/wicket#1991 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100