Separate sort roles and filters
ClosedPublic

Authored by apol on Nov 2 2016, 5:54 PM.

Details

Summary

They're semantically two different things.

Readability

Don't treat filters as specific cases

Make it possible to query kns entries by their unique id

Diff Detail

Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
apol updated this revision to Diff 7838.Nov 2 2016, 5:54 PM
apol retitled this revision from to Separate sort roles and filters.
apol updated this object.
apol edited the test plan for this revision. (Show Details)
apol added reviewers: Frameworks, leinir, mart.
mart edited edge metadata.Nov 3 2016, 12:20 PM

to me looks good, is probably better to wait the merge by dan?

src/core/provider_p.h
63 ↗(On Diff #7838)

EntryId?

leinir edited edge metadata.Nov 3 2016, 2:06 PM

It would make fine sense to merge this in already (i'll merge it into the branch), as this is, of course, fairly important to get in, and there are things in my branch which may need some further discussions before a final merge (though i hope it's more a case of "woop, do the thing!" ;) ). So... thumbs up from here, all looks fine to me :)

src/core/provider_p.h
63 ↗(On Diff #7838)

hmm... had a quick think there, and there's a small semantic difference: A filter on EntryID would potentially (in my head at least) filter on whatever you handed it, so filtering by EntryID "123" would find both "123" and "1234", whereas something filtering by ExactEntryID "123" would find only "123"... but it /is/ a very small difference...

apol updated this revision to Diff 7864.Nov 3 2016, 2:23 PM
apol edited edge metadata.

Update enum entry name

leinir accepted this revision.Nov 3 2016, 2:48 PM
leinir edited edge metadata.

Looks good to me! :)

This revision is now accepted and ready to land.Nov 3 2016, 2:48 PM
apol closed this revision.Nov 3 2016, 4:01 PM