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

Revert "Added empty string check" #15249

Merged
merged 1 commit into from Aug 24, 2023

Conversation

murrant
Copy link
Member

@murrant murrant commented Aug 24, 2023

Reverts #15235

fixes: #15240

@murrant murrant merged commit cfc9aca into master Aug 24, 2023
12 checks passed
@murrant murrant deleted the revert-15235-ShowIPwhenSNMPNameIsEmpty branch August 24, 2023 15:09
@librenms-bot
Copy link

This pull request has been mentioned on LibreNMS Community. There might be relevant details there:

https://community.librenms.org/t/23-9-0-changelog/22320/1

@MezentsevSPB
Copy link

Hello. This fix breaks the rules logic. The fact is that zero and null are neither the same thing. If nothing was specified in the parameter set, the value of null was written to the database. Now a zero is written there. This breaks the rules and imposes additional load on SQL queries. After editing and saving the parameters, null is overwritten with zero, which causes false positives of the rules.

@murrant
Copy link
Member Author

murrant commented Oct 24, 2023

This has nothing to do with writing to the database. If you have an issue, please open a ticket with a detailed explanation of the problem.

peejaychilds pushed a commit to peejaychilds/librenms that referenced this pull request Oct 26, 2023
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.

app/Models/Device.php
3 participants