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

UAReferenceContext - causes circular references #558

Closed
2 tasks done
mpostol opened this issue Mar 19, 2021 · 0 comments · Fixed by #561
Closed
2 tasks done

UAReferenceContext - causes circular references #558

mpostol opened this issue Mar 19, 2021 · 0 comments · Fixed by #561
Assignees
Labels
Bug Bug in the code.

Comments

@mpostol
Copy link
Owner

mpostol commented Mar 19, 2021

Describe the bug

  • ParentNode and IsForward are redundant. The problem is for IsForward=false the browse path calculation is buggy.
  • Reference - there is no need to preserve original data

To Reproduce

Steps to reproduce the behavior:
The problem has been discovered in #510 - there are circular reference created

Expected behavior

IsForward must not be changed, Set SourceNode and TargetNode accordingly.

See also

There is extracted model SemanticData\Tests\USNodeSetValidationUnitTestProject\XMLModels\ProblemsToReport\HasOrderedComponent

HasOrderedComponentCircularReference

@mpostol mpostol added the Bug Bug in the code. label Mar 19, 2021
@mpostol mpostol self-assigned this Mar 19, 2021
@mpostol mpostol added this to the SemanticData_6.1.3 milestone Mar 19, 2021
mpostol added a commit that referenced this issue Mar 20, 2021
- removed Reference property
- refactored UAReferenceContext
- Added UT
- UT +1:
mpostol added a commit that referenced this issue Mar 20, 2021
mpostol added a commit that referenced this issue Mar 20, 2021
mpostol added a commit that referenced this issue Mar 28, 2021
- working on inheritance chain to replace the ReferenceKindEnum
- UT 👍
mpostol added a commit that referenced this issue Mar 31, 2021
- fixed problem with GetBaseTypes methods.
- UT 👍
mpostol added a commit that referenced this issue Apr 2, 2021
- removing ReferenceKind and replacing by IsSubtypeOf
- working copy
- UT :11:
mpostol added a commit that referenced this issue Apr 3, 2021
-refactoring code
- fixed UT
- UT 👍
mpostol added a commit that referenced this issue Apr 4, 2021
- removed IsSubtypeOf - it is not longer used.
- UT 👍
mpostol added a commit that referenced this issue Apr 4, 2021
UAReferenceContext - causes circular references #558
mpostol added a commit that referenced this issue Apr 4, 2021
- removed IsSubtypeOf - it is not longer used.
- UT 👍
- fixes #558
mpostol added a commit that referenced this issue Apr 4, 2021
UAReferenceContext - causes circular references #558
mpostol added a commit that referenced this issue Apr 4, 2021
- after fixing the #558 generated the following mode. As prviously compiler cannot compile it because of the sequence of type declarations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug in the code.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant