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

[Chore] Factor out code from wizard_structure #712

Merged
merged 3 commits into from
Sep 22, 2023

Conversation

krendelhoff2
Copy link
Member

Description

This is preparatory PR for the #568.

Related issue(s)

Resolves #

Related changes (conditional)

  • I checked whether I should update the README

  • I checked whether native packaging works, i.e. native binary packages
    can be successfully built.

Stylistic guide (mandatory)

Copy link
Contributor

@pasqu4le pasqu4le left a comment

Choose a reason for hiding this comment

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

These all look like improvements to be 👍

One minor nitpick, all 3 commit messages start with:

Problem: wizard_structure contains too much definitions

but AFAIK "many" should be used here instead of "much".

@krendelhoff2 krendelhoff2 force-pushed the krendelhoff/chore-refactor-baking branch from 3e3b4a7 to f9251cd Compare September 22, 2023 10:24
Problem: `wizard_structure` module contains too many definitions,
which became hard to maintain.

Solution: Factor out utils into separate module.
Problem: wizard_structure contains too many definitions, which
became hard to maintain.

Solution: Put all validators under `validators` module. Strip
`_validator` from its functions, since they are supposed to be called
with module qualified. Add typing information to the `Validator` class.
Problem: wizard_structure contains too many definitions, which
became hard to maintain.

Solution: Put all common steps-related code under `steps` module.
@krendelhoff2 krendelhoff2 force-pushed the krendelhoff/chore-refactor-baking branch from f9251cd to d7eda94 Compare September 22, 2023 10:31
@krendelhoff2 krendelhoff2 merged commit 2cfd028 into master Sep 22, 2023
@krendelhoff2 krendelhoff2 deleted the krendelhoff/chore-refactor-baking branch September 22, 2023 11:13
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