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

Fix docs around run #131

Merged
merged 2 commits into from
Oct 3, 2024
Merged

Fix docs around run #131

merged 2 commits into from
Oct 3, 2024

Conversation

ekosz
Copy link
Contributor

@ekosz ekosz commented Oct 3, 2024

This PR fixes #128 and a small test that was warning. It mostly focuses on correcting the documentation around how the anonymous run function should be used within a step.

Contributor checklist

  • Bug fixes include regression tests
  • Documentation changes

@ekosz ekosz changed the title Ek/fix run docs Fix docs around run Oct 3, 2024
lib/reactor/dsl/step.ex Outdated Show resolved Hide resolved
lib/reactor/dsl/step.ex Outdated Show resolved Hide resolved
lib/reactor/dsl/step.ex Outdated Show resolved Hide resolved
Copy link
Contributor

@zachdaniel zachdaniel left a comment

Choose a reason for hiding this comment

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

Small readability suggestion, but only if you agree. Its pretty much the same thing regardless.

@ekosz
Copy link
Contributor Author

ekosz commented Oct 3, 2024

Sounds good! Sorry still new to Elixir and it's documentation patterns. I'll update the PR

ekosz added 2 commits October 3, 2024 14:50
The docs incorrectly suggested and showed usages of `run` with arity 3.
But `run` only allows for arity 1 and 2. This patch updates the docs to
show the correct usage and labeling for the function.

Fixes ash-project#128
This test was warning when run. It unfortunately was getting a false
positive as written due to calling `.name` on a atom rather than getting
the `:name` property of the `:current_step` map.

This change fixes the test and looks for the correct error message.
@ekosz
Copy link
Contributor Author

ekosz commented Oct 3, 2024

All set

@zachdaniel
Copy link
Contributor

I'm actually not sure my suggestion was conventional or not. Either way, its right now when it was wrong before, 🙇

@zachdaniel zachdaniel merged commit 192920a into ash-project:main Oct 3, 2024
16 checks passed
@ekosz ekosz deleted the EK/fix-run-docs branch October 4, 2024 05:25
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.

Reactor compiler errors when using run/3 function
2 participants