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 #37224 - Force Hosts to have a comment #10079

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

adamruzicka
Copy link
Contributor

To prevent the nil -> empty string transition we would either have to:

  • check the incoming changes and discard the unwanted ones
  • ignore these transitions when creating audits
  • just force hosts to always have a comment

The last option felt like the least wrong one. This has an added benefit that searching for hosts without comment becomes somewhat easier.

To prevent the nil -> empty string transition we would either have to:
- check the incoming changes and discard the unwanted ones
- ignore these transitions when creating audits
- just force hosts to always have a comment

The last option felt like the least wrong one. This has an added benefit
that searching for hosts without comment becomes somewhat easier.
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

👍 to avoid nil vs empty string.

Copy link
Contributor

@pondrejk pondrejk left a comment

Choose a reason for hiding this comment

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

checked on patched stream snap, the ghost audit no longer appears

Copy link
Member

@ofedoren ofedoren left a comment

Choose a reason for hiding this comment

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

Thanks, all, let's get this in.

@ofedoren ofedoren merged commit 4c7f36e into theforeman:develop Mar 6, 2024
40 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
4 participants