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

Fixes #37439 - API 'build_pxe_default' with taxonomies #10160

Merged

Conversation

stejskalleos
Copy link
Contributor

@stejskalleos stejskalleos commented May 13, 2024

The hammer template build-pxe-default command works only when no organization or location is passed.

The fix is to skip :find_optional_nested_object for the build_pxe_default action, as it does not make sense here.

How to test

  • Proxy 1 in Default Organization & Default location
  • Proxy 2 in Second Organization & Second location
  • Run
hammer template build-pxe-default
hammer template build-pxe-default --organization-title "Default Organization" --location-title "Default Location"
hammer template build-pxe-default --organization-title "Second Organization" --location-title "Second Location"

Check that it works fine

Copy link
Member

@ShimShtein ShimShtein left a comment

Choose a reason for hiding this comment

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

Can we also add a test to make sure we are able to build default menu without taxonomies specified explicitly?

Besides that, looks good.

The 'hammer template build-pxe-default' command works
only when no organization or location is passed.

The fix is to skip ':find_optional_nested_object' for the
'build_pxe_default' action, as it does not make any sense here.
@stejskalleos
Copy link
Contributor Author

stejskalleos commented May 17, 2024

Can we also add a test to make sure we are able to build default menu without taxonomies specified explicitly?

I kept the original one (without taxonomies) and added new one with them.

@stejskalleos
Copy link
Contributor Author

@ShimShtein can we merge?

@ShimShtein ShimShtein merged commit bd975f9 into theforeman:develop May 22, 2024
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants