-
Notifications
You must be signed in to change notification settings - Fork 64
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
search with two 'conditional' yields no record #290
Comments
This is where to look https://github.com/salopensource/sal/blob/master/search/views.py#L108 |
Who wants this one? I’m about to go on paternity so I’m not going to get to start it. @jokdbx do you want to attempt this? |
I will try to look at it... |
I'm interested in getting this issue fixed. I do scripting, but not really programming. Looking at the code pointed out by Graham looks like something I might be able to figure out. I'd at least like to try. A few questions to help me get started.
What is the best way to troubleshoot this? I have SAL running in Docker and I created a pgadmin Docker instance so I can look at the database. I figured the first thing I'd want to do is look at the SQL Query that gets submitted for a search with multiple Conditions to see if the SQL Query is right and the output is wrong, or if the SQL Query is wrong to begin with. How would I do that? What tools would I need, and would they need to be installed in Docker or on a local machine. I have SAL running in Docker on a Linux Virtual Machine. Docker is not running on my Linux workstation. I'd really like to understand how to diagnose programs rather than individual scripts in hopes of being able to contribute. Thanks for the great program. |
It’s roughly around that area as my best guess. The dev setup is documented at https://github.com/salopensource/sal/wiki/Developer-Installation |
I followed the directions and got SAL setup along with a client to report in. However, there is a problem with the installation. When you go to create a search, everything looks normal until you change 'Search Item' from 'Machine', then nothing is populated in 'Search Field'. If you reselect 'Machine', the 'Search Field' remains empty. The 'search_searchfieldcache' table is empty. This is after a munki and SAL run. |
i am trying to setup a search in sal for a custom condition we have defined, and for os_version_minor to a specific version. It looks like if i use a fact and a condition in my search, things are found, but if i use two stacked conditions, it doesn't yield any results.
The text was updated successfully, but these errors were encountered: