Improve autocompletion for raw tag editor (closes #2748)

* Don't shorten the user's query
* Drop pouplar key threshold from 10000 to 5000
* Always show key if it has a wiki page (`d.in_wiki`)
This commit is contained in:
Bryan Housel
2015-09-27 22:39:41 -04:00
parent 0d71d5fd27
commit c592acb759
2 changed files with 6 additions and 15 deletions
+3 -3
View File
@@ -25,11 +25,11 @@ describe("iD.taginfo", function() {
server.respond();
expect(query(server.requests[0].url)).to.eql(
{query: "ame", page: "1", rp: "10", sortname: "count_all", sortorder: "desc"});
{query: "amen", page: "1", rp: "10", sortname: "count_all", sortorder: "desc"});
expect(callback).to.have.been.calledWith(null, [{"value":"amenity"}]);
});
it("filters only popular nodes", function() {
it("filters only popular keys", function() {
var callback = sinon.spy();
taginfo.keys({query: "amen"}, callback);
@@ -42,7 +42,7 @@ describe("iD.taginfo", function() {
expect(callback).to.have.been.calledWith(null, [{"value":"amenity"}]);
});
it("filters only popular nodes with an entity type filter", function() {
it("filters only popular keys with an entity type filter", function() {
var callback = sinon.spy();
taginfo.keys({query: "amen", filter: "nodes"}, callback);