Bug 1678300
Summary: | Rename default search definition for templates | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Ranjan Kumar <rankumar> |
Component: | Search | Assignee: | Marek Hulan <mhulan> |
Status: | CLOSED ERRATA | QA Contact: | Omkar Khatavkar <okhatavk> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.5.0 | CC: | c.mcgregor, egolov, kgaikwad, mhulan, rankumar |
Target Milestone: | 6.6.0 | Keywords: | Reopened, Triaged |
Target Release: | Unused | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | foreman-1.22.0-0 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-10-22 19:48:20 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ranjan Kumar
2019-02-18 13:05:12 UTC
Does it work if you search like 'name ~ "TEST default"'? Note that default here relates also to "default" checkbox. You need to be a bit more explicit in the search syntax in this case. Marek, But the same works fine in Satellite 6.3.5 and the "default" checkbox is also present in 6.3.5 > But the same works fine in Satellite 6.3.5 and the "default" checkbox is also present in 6.3.5 because by that time, we didn't have the default attribute available for searching, it's not always a bug if something behaved differently in previous version :-) In your example > hammer template list --search 'UNSW def' it defacto means search "name ~ UNSW or name ~ def" which obviously works in your second example > hammer template list --search 'UNSW default' the default is a new keyword, referring to value of "default" checkbox of a template. If you want to search for templates that contain either UNSW or default word in their name, do it this way > hammer template list --search 'name ~ UNSW or name ~ default' if you wanted to find all templates that contain "UNSW default" in their name, do it this way > hammer template list --search 'name ~ "UNSW default"' I tested all above and it works just fine. I don't think there's any bug here, so I'm closing this. Please let me know if I missed something. After a discussion with Ranjan, I'm reopening. Because people usually don't search based on default attribute but rather name, it's still advised to be explicit and use "name ~ value", but it's probably worth aliasing the "default" attribute to default_template. That way generic search term like "Kickstart default" would work correctly. Created redmine issue https://projects.theforeman.org/issues/26083 from this bug Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/26083 has been resolved. > hammer --no-headers --csv template list --search "default" | wc -l 62 > hammer --no-headers --csv template list --search "defaul" | wc -l 62 > hammer template list --search 'Kickstart default' | wc -l 18 > hammer template list --search 'Kickstart default' | wc -l 18 Verified with Satellite 6.5 with Snap4. It's working fine 'defaul' and 'default' keywords. Sorry, It was Satellite 6.6 with Snap4 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2019:3172 |