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 init pkg deploy via ui #900

Merged

Conversation

Noxsios
Copy link
Contributor

@Noxsios Noxsios commented Oct 13, 2022

Description

There is currently a disconnect between the UI and the CLI experience when zarf initing. This is because the flow of zarf init does not strictly follow the same flow that zarf package deploy does. ZarfDeployOptions != ZarfInitOptions.

This PR patches the overall API request flow, but does not add the missing options from ZarfInitOptions to the UI. Further discussion is needed in that area.

Related Issue

Fixes #882

Type of change

  • Bug fix (non-breaking change which fixes an issue)

@Noxsios Noxsios linked an issue Oct 13, 2022 that may be closed by this pull request
@Noxsios Noxsios changed the title fix init pkg deploy via ui WIP: fix init pkg deploy via ui Oct 13, 2022
@Noxsios Noxsios changed the title WIP: fix init pkg deploy via ui fix init pkg deploy via ui Oct 13, 2022
@mike-winberry
Copy link
Contributor

Validation that fix is working on my machine.

Screen.Recording.2022-10-13.at.11.34.40.AM.mov

Copy link
Contributor

@jeff-mccoy jeff-mccoy left a comment

Choose a reason for hiding this comment

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

Overall lgtm, one minor thing we should keep an eye on is the use of default initializers in the frontend, they aren't synced in anyway to the usage in the cmd package so could diverge if we're not careful. I don't have a great solution though rn to make it cleaner without a larger refactor on how we split business / presentation logic for the TUI and GUI.

@jeff-mccoy jeff-mccoy enabled auto-merge (squash) October 13, 2022 20:28
@jeff-mccoy jeff-mccoy merged commit 78460bc into master Oct 13, 2022
@jeff-mccoy jeff-mccoy deleted the 882-ui-not-deploying-optional-components-in-init-package branch October 13, 2022 20:28
Noxsios added a commit that referenced this pull request Mar 8, 2023
## Description

There is currently a disconnect between the UI and the CLI experience
when `zarf init`ing. This is because the flow of `zarf init` does not
strictly follow the same flow that `zarf package deploy` does.
`ZarfDeployOptions != ZarfInitOptions`.

This PR patches the overall API request flow, but does not add the
missing options from `ZarfInitOptions` to the UI. Further discussion is
needed in that area.

<!-- Please include a summary of the change. Any relevant motivation or
context is also helpful, as well as any dependencies that are required
for this change -->

## Related Issue

<!--- This project prefers to accept pull requests related to open
issues -->
<!--- If suggesting a new feature or change, please discuss it in an
issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps
to reproduce -->

Fixes #882 

## Type of change

<!-- Please delete options that are not relevant -->

- [x] Bug fix (non-breaking change which fixes an issue)
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.

UI not deploying optional components in init package
3 participants