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

Close #706 improve loops #709

Merged
merged 11 commits into from
Jul 17, 2023
Merged

Close #706 improve loops #709

merged 11 commits into from
Jul 17, 2023

Conversation

plocket
Copy link
Collaborator

@plocket plocket commented Jun 6, 2023

This is a bit of a biggie and might actually deal with a bug I wasn't aware of with .target_number, which was inconsistent depending on whether the author defined .there_are_any or not.

I also wrote docs on how the flow works now.

Closes #706, improve loops.

Copy link
Collaborator

@BryceStevenWilley BryceStevenWilley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Splitting this PR into parts to describe my thoughts on each

  • the technical change to fix Improve using .target_number in Story Table #706: pretty good! I like the additions, and the changes aren't too bad.
  • documentation of the current looping stuff: I think this doesn't really work as intended; just from the ordering of the files in the PR, I read though this before reading over the code changes, and I found myself very confused. But after I read the code itself, it made a lot more sense. If it's helpful for you, we can leave it in, but if you wanted it to help other developers, I don't think it's going to do that, and we should improve it.
  • test refactors; I noted my thoughts in the comments, but I'm okay with these, even if I think we could do with better unit testing

lib/steps.js Show resolved Hide resolved
tests/unit_tests/ensureSpecialRows.test.js Outdated Show resolved Hide resolved
docassemble/ALKilnTests/data/questions/test_loops.yml Outdated Show resolved Hide resolved
docassemble/ALKilnTests/data/questions/test_loops.yml Outdated Show resolved Hide resolved
docs/story_tables.md Outdated Show resolved Hide resolved
lib/scope.js Outdated Show resolved Hide resolved
lib/scope.js Outdated Show resolved Hide resolved
lib/scope.js Outdated Show resolved Hide resolved
lib/scope.js Outdated Show resolved Hide resolved
lib/scope.js Outdated Show resolved Hide resolved
plocket and others added 11 commits July 17, 2023 07:28
Something about changing the same line in multiple ways...?

Co-authored-by: Bryce Willey <Bryce.Steven.Willey@gmail.com>

Fix typo 2. GitHub won't let me do more at one time.

Co-authored-by: Bryce Willey <Bryce.Steven.Willey@gmail.com>

Fix typo 3. GitHub won't let me do more at one time.

Co-authored-by: Bryce Willey <Bryce.Steven.Willey@gmail.com>

Fix typo 4. GitHub won't let me do more at one time.

Co-authored-by: Bryce Willey <Bryce.Steven.Willey@gmail.com>

Fix typo 5. GitHub won't let me do more at one time.

Co-authored-by: Bryce Willey <Bryce.Steven.Willey@gmail.com>

Fix typo 6. GitHub won't let me do more at one time.

Co-authored-by: Bryce Willey <Bryce.Steven.Willey@gmail.com>

Address typos 7. Apparently this was the problem.
Co-authored-by: Bryce Willey <Bryce.Steven.Willey@gmail.com>
@plocket plocket merged commit 169aec3 into v5 Jul 17, 2023
2 checks passed
@plocket plocket deleted the 706_loops branch July 17, 2023 11:46
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