)]}'
{"pkg/document/filter_test.go":[{"author":{"_account_id":7769,"name":"Pentheus","display_name":"Alan Meadows","email":"alan.meadows@gmail.com","username":"alanmeadows"},"change_message_id":"526111cb7414b051ef13c4594452d046594bdc31","unresolved":false,"context_lines":[{"line_number":20,"context_line":"\t\texpectedDocs []string"},{"line_number":21,"context_line":"\t}{"},{"line_number":22,"context_line":"\t\t{"},{"line_number":23,"context_line":"\t\t\tfilter: `kind \u003d\u003d \"BareMetalHost\"`,"},{"line_number":24,"context_line":"\t\t\texpectedDocs: []string{"},{"line_number":25,"context_line":"\t\t\t\t\"metal3.io_v1alpha1_BareMetalHost|~X|master-0\","},{"line_number":26,"context_line":"\t\t\t\t\"metal3.io_v1alpha1_BareMetalHost|~X|master-1\","}],"source_content_type":"text/x-go","patch_set":10,"id":"3fa7e38b_24dc9515","line":23,"updated":"2020-02-13 16:23:37.000000000","message":"The most common use case I can think of for aggregate filtering is `json.path \u003d\u003d \"foo\" \u0026\u0026 has label/annotation \"bar\"` - just to clear my confusion, I don\u0027t think this would support that given we don\u0027t know the precise location of annotations/labels across all objects?","commit_id":"df314af67c99928cff7ffe49d91461a50db9b9c5"},{"author":{"_account_id":7185,"name":"Dmitry Ukov","email":"dukov@mirantis.com","username":"dukov"},"change_message_id":"20d593eeed7bf7656ffc650291dbb01557368425","unresolved":false,"context_lines":[{"line_number":20,"context_line":"\t\texpectedDocs []string"},{"line_number":21,"context_line":"\t}{"},{"line_number":22,"context_line":"\t\t{"},{"line_number":23,"context_line":"\t\t\tfilter: `kind \u003d\u003d \"BareMetalHost\"`,"},{"line_number":24,"context_line":"\t\t\texpectedDocs: []string{"},{"line_number":25,"context_line":"\t\t\t\t\"metal3.io_v1alpha1_BareMetalHost|~X|master-0\","},{"line_number":26,"context_line":"\t\t\t\t\"metal3.io_v1alpha1_BareMetalHost|~X|master-1\","}],"source_content_type":"text/x-go","patch_set":10,"id":"3fa7e38b_e7f43558","line":23,"in_reply_to":"3fa7e38b_0402b972","updated":"2020-02-14 07:47:51.000000000","message":"Updated filter with annotation example.\n\nall annotations/labels reside under metadata key and they have to be in a \u0027key: value\u0027 format. Annotations/labels for pods are defined in Deployment resource ( somewhere under spec.template.spec ....) can also be used to filter documents but you have to specify exact JSON path.","commit_id":"df314af67c99928cff7ffe49d91461a50db9b9c5"},{"author":{"_account_id":7769,"name":"Pentheus","display_name":"Alan Meadows","email":"alan.meadows@gmail.com","username":"alanmeadows"},"change_message_id":"ee36a96cac5519dd34fdbd1b74be22f15cab5657","unresolved":false,"context_lines":[{"line_number":20,"context_line":"\t\texpectedDocs []string"},{"line_number":21,"context_line":"\t}{"},{"line_number":22,"context_line":"\t\t{"},{"line_number":23,"context_line":"\t\t\tfilter: `kind \u003d\u003d \"BareMetalHost\"`,"},{"line_number":24,"context_line":"\t\t\texpectedDocs: []string{"},{"line_number":25,"context_line":"\t\t\t\t\"metal3.io_v1alpha1_BareMetalHost|~X|master-0\","},{"line_number":26,"context_line":"\t\t\t\t\"metal3.io_v1alpha1_BareMetalHost|~X|master-1\","}],"source_content_type":"text/x-go","patch_set":10,"id":"3fa7e38b_0402b972","line":23,"in_reply_to":"3fa7e38b_24dc9515","updated":"2020-02-13 16:25:48.000000000","message":".. in which case filtering would be a two step process.  Filter the bundle on a json.path expression followed by a bundle.GetByLabel or bundle.GetByAnnotation on the filteredBundle?","commit_id":"df314af67c99928cff7ffe49d91461a50db9b9c5"}]}
