-
Notifications
You must be signed in to change notification settings - Fork 107
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
Issue 524 remove redundant dag cycle check #526
Issue 524 remove redundant dag cycle check #526
Conversation
Codecov Report
@@ Coverage Diff @@
## master #526 +/- ##
============================================
- Coverage 53.17% 53.13% -0.05%
- Complexity 3126 3128 +2
============================================
Files 245 245
Lines 13370 13374 +4
Branches 2572 2573 +1
============================================
- Hits 7110 7106 -4
- Misses 5429 5441 +12
+ Partials 831 827 -4
Continue to review full report at Codecov.
|
Hi @lognaturel and @ggalmazor. I’ll be happy to review this, but given this is unfamiliar code I wonder how thorough I should be. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that after all keeping #528 here makes the most sense and will be easier to deal with. I've moved comments from there to here.
Couple of small things. The most important is to make sure #526 (comment) is right. If I didn't get that right I should spend more time with it.
src/main/java/org/javarosa/core/model/condition/ConditionAction.java
Outdated
Show resolved
Hide resolved
Thanks for looking at this, @dcbriccetti! I think this one @ggalmazor and I can finish up. It's relatively low risk. What would be really fantastic to get your sanity check on is performance analysis of #523. I talked to @ggalmazor today and we now agree that my concerns about memory usage were probably overblown. He's going to write up some analysis and that would be great for you to review. |
Yes! The current understanding is that collections reuse object references, which should let us have many more collections (instead of just a single reused collection that gets passed through all the layers) without a noticeable impact in memory usage. |
…nce and throw an exception if this happens
…rable can actually trigger them in cascade
`/data/group[position() = position(current()/..)]/a` is equivalent to `../a`
OK, I think the PR is ready for you, @lognaturel :) |
Closes #524
This PR is built on top of #528 and starts in commit 49bb628
What has been done to verify that this works as intended?
Run the automated tests
Why is this the best possible solution? Were any other approaches considered?
This is a straightforward change:
How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?
There shouldn't be any behavior change.
Do we need any specific form for testing your changes? If so, please attach one.
No.
Does this change require updates to documentation? If so, please file an issue here and include the link below.
No.