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

correct conditions #504

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

correct conditions #504

wants to merge 6 commits into from

Conversation

olivroy
Copy link
Collaborator

@olivroy olivroy commented Nov 9, 2023

Not sure what the implications are of that.

Doesn't seem to affect tests. but I thought I'd single those out as they could influence the condition checking.

The first 1 is trivial. but maybe the conditions in traversals could influence some calculations.

Edit: If you have an idea for a test, I wouldn`t mind adding on. The coverage suggests the cases were not covered before and after this change https://app.codecov.io/gh/rich-iannone/DiagrammeR/pull/504/blob/R/trav_in_until.R

I added another change, but let me know if you think it is correct or not, maybe you only meant to test for length(from_column)?

@olivroy olivroy marked this pull request as draft November 10, 2023 01:31
@olivroy olivroy marked this pull request as ready for review November 10, 2023 14:51
olivroy added a commit to olivroy/DiagrammeR that referenced this pull request Nov 14, 2023
rich-iannone pushed a commit that referenced this pull request Nov 16, 2023
* Refactoring conditions in render_graph

* Refactor `render_graph()` code.

* Lint + Improve test coverage

* Add back WS

* Revert logical changes and put them in #504

* More linting

* small adjustments

* Corrections

* Correct conditions

* WS change revert

* Revert changes made in #507

* WS

* WS
@rich-iannone
Copy link
Owner

Sorry for the delay on this. And thanks for fixing these crazy statements! I have to revisit this soon to see if this still works as intended with the fix. It could indeed be that the bugged version works and there's not enough testing to see if the fixes here result in a regression.

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

Successfully merging this pull request may close these issues.

2 participants