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

Simplify next state handling only return state name #66

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

agrare
Copy link
Member

@agrare agrare commented Jul 18, 2023

The State classes don't need to return the next state object, just the name. The Workflow class can lookup the state object by the name since it owns the hash of state objects.

Previously the State#run! method had to look the state object up from the workflow object, this cleans that access pattern up.

The State classes don't need to return the next state object, just the
name.  The Workflow class can lookup the state object by the name since
it owns the hash of state objects.
@agrare agrare force-pushed the simplify_next_state_handling branch from 66b0c21 to f5937e1 Compare July 20, 2023 13:51
@agrare agrare mentioned this pull request Jul 20, 2023
1 task
@miq-bot
Copy link
Member

miq-bot commented Jul 20, 2023

Checked commit agrare@f5937e1 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint
4 files checked, 0 offenses detected
Everything looks fine. ⭐

@kbrock kbrock merged commit 3884e96 into ManageIQ:master Jul 20, 2023
5 checks passed
@agrare agrare deleted the simplify_next_state_handling branch July 20, 2023 14:25
agrare added a commit that referenced this pull request Jul 24, 2023
Fixed
- Don't pick up real KUBECONFIG for tests (#73)
- Fix double json.parse and context default value (#69)

Added
- Configure Renovate (#46)

Changed
- Simplify next state handling (#66)
- Refactor Input/Output path handling (#68)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants