1.8b1: Can't filter servers by owner correctly if owner is subset of another owner
Bug #1441864 reported by
Larry Michel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
MAAS | ||||||
1.8 |
Fix Released
|
Low
|
Blake Rouse |
Bug Description
We have following list of owners:
oil, oil-slave-1, oil-slave-2, ..., oil-slave-9, oil-slave-10, oil-slave-11, oil-slave-12
It works for oil-slave-2 to oil-slave-12 but does not work for oil. oil returns all nodes deployed by owners in that list and oil-slave-1 returns all servers deployed by oil-slave-1, oil-slave-10, oil-slave-11 and oil-slave-12
Related branches
lp:~blake-rouse/maas/fix-1441864
- Mike Pontillo (community): Approve
-
Diff: 309 lines (+140/-19)6 files modifiedsrc/maasserver/static/js/angular/controllers/nodes_list.js (+2/-2)
src/maasserver/static/js/angular/controllers/tests/test_nodes_list.js (+2/-2)
src/maasserver/static/js/angular/filters/nodes.js (+37/-11)
src/maasserver/static/js/angular/filters/tests/test_nodes.js (+23/-0)
src/maasserver/static/js/angular/services/search.js (+25/-4)
src/maasserver/static/js/angular/services/tests/test_search.js (+51/-0)
Changed in maas: | |
milestone: | 1.8.0 → 1.9.0 |
Changed in maas: | |
status: | Triaged → In Progress |
assignee: | nobody → Blake Rouse (blake-rouse) |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
no longer affects: | maas |
To post a comment you must log in.
I don't want to match specifically on a term in a search because it makes the live search sucky. Example being if the owner is "oil" and I start typing "owner:o" and nothing shows up until I get to "owner:oil".
Only way I can think about fixing this is to:
1. Rename your users. :-)
OR
2. We give a specifier saying it needs to be an exact match. Like "owner:=oil". Don't know if I really like the "=" maybe come up with something better.