• Robert Knight's avatar
    Rewrite and simplify view-filter service. · a2373770
    Robert Knight authored
    Rewrite the view filter service to make it easier to verify and fix a
    bug in the handling of "any" queries:
    
    The input filter object representing the parsed search query is
    translated into a tree of filter primitives, where each primitive is
    either a TermFilter that tests whether an annotation matches a single
    (field, term) or a BinaryOpFilter that combines other filters using AND
    or OR operators. The list of annotations are then matched against the
    tree's root filter.
    
    This system allows a nicer representation of "any" field queries by
    expanding a query such as "foo bar" into:
    
      (quote:foo OR text:foo OR ...) AND (quote:bar OR text:bar OR ...)
    
    In the process a mistake was uncovered in a test case for the "any"
    filter which incorrectly allowed the previous broken implementation to
    pass.
    a2373770
Name
Last commit
Last update
..
components Loading commit data...
directive Loading commit data...
filter Loading commit data...
reducers Loading commit data...
templates Loading commit data...
test Loading commit data...
util Loading commit data...
vendor Loading commit data...
analytics.js Loading commit data...
annotation-mapper.js Loading commit data...
annotation-metadata.js Loading commit data...
annotation-ui.js Loading commit data...
app.js Loading commit data...
auth.js Loading commit data...
build-thread.js Loading commit data...
date-util.js Loading commit data...
drafts.js Loading commit data...
events.js Loading commit data...
features.js Loading commit data...
flash.js Loading commit data...
form-respond.coffee Loading commit data...
frame-sync.js Loading commit data...
ga.js Loading commit data...
get-api-url.js Loading commit data...
groups.js Loading commit data...
host-config.js Loading commit data...
live-reload-client.js Loading commit data...
local-storage.js Loading commit data...
markdown-commands.js Loading commit data...
media-embedder.js Loading commit data...
oauth-auth.js Loading commit data...
permissions.js Loading commit data...
query-parser.coffee Loading commit data...
raven.js Loading commit data...
render-markdown.js Loading commit data...
retry-util.js Loading commit data...
root-thread.js Loading commit data...
search-client.js Loading commit data...
search-filter.js Loading commit data...
service-config.js Loading commit data...
service-url.js Loading commit data...
session.js Loading commit data...
store.js Loading commit data...
stream-filter.coffee Loading commit data...
streamer.js Loading commit data...
tabs.js Loading commit data...
tags.js Loading commit data...
time.js Loading commit data...
ui-constants.js Loading commit data...
unicode.js Loading commit data...
view-filter.js Loading commit data...
virtual-thread-list.js Loading commit data...
websocket.js Loading commit data...