get DTS index working
%Yt9KsaLudutODj8jP3lwQpiAWBPW2ObzH3d+BxMVYjM=.sha256
master
from all-types
get DTS index working
work around %b+QdyLF... / %34gUfls... where the DTS index doesn't get picked because it has 2 elements while the other index has 3 (i think flumeview-query's score function always prefers an index with the most elements), by adding key
to the index.
this increases the size of the index on my computer (du -sh ~/.ssb/flume/backlinks
) from 17M to 27M, which i am okay with in this situation.
this patch also bumps the index version, so that flume* will rebuild the index. however, i get this error when it tries to do that: %JmsEi5u... , so i manually moved away the old db.
cc @mmckegg
Didn't see this until now, but I just added a opts.index
to ssb-backlinks that allows you to override which index to use.
Example from patchcore:
return api.sbot.pull.backlinks(extend(opts, {
index: 'DTS', // HACK: force index since flumeview-query is choosing the wrong one
query: [
{$filter: filter}
]
}))
cool, that works!
@cel Oh by the way, I'm happy to accept PRs via git-ssb, but unfortunately the current Patchwork doesn't show mentions for git-ssb messages. So for now, can you also send me a PM with a link to the issue?
Hopefully figure out a better to solution to this soon!
@mmckegg
would Patchwork show you a mention of your id if it is in reply to a git-update
or pull-request
or issue
message?
@cel would patchfoo? I am asking for a reason :)
@regular yes, patchfoo's mentions page should show all mentions of your id
ssb-backlinks expected for mentions
sbot plugins.install ssb-backlinks
.ssb/node_modules/ssb-backlinks/index.js:21
return ssb._flumeUse(
^
TypeError: ssb._flumeUse is not a function
at Object.exports.init (/home/johnny/.ssb/node_modules/ssb-backlinks/index.js:21:14)
at /usr/local/lib/node_modules/scuttlebot/node_modules/secret-stack/api.js:27:28
at Array.forEach (native)
at create (/usr/local/lib/node_modules/scuttlebot/node_modules/secret-stack/api.js:26:20)
at U4cM2R8x+cHnwYSRW5Qytus89XrA9etJFg2mUXZ8UNw= (/usr/local/lib/node_modules/scuttlebot/sbot.js:36725:16)
at load (/usr/local/lib/node_modules/scuttlebot/sbot.js:11:26)
at prelude (/usr/local/lib/node_modules/scuttlebot/sbot.js:23:10)
at Object.<anonymous> (/usr/local/lib/node_modules/scuttlebot/sbot.js:24:3)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.runMain (module.js:590:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
@johnny looks like you need to update to scuttlebot@10
ITS TIME
Installed 10, ran sbot server, got error, deleted ssb-ws from plugins dir, ran sbot server, got same error:
Error: already loaded plugin named:ws
at Object.module.exports.loadUserPlugins (/usr/local/lib/node_modules/scuttlebot/plugins/plugins.js:184:13)
at Object.<anonymous> (/usr/local/lib/node_modules/scuttlebot/bin.js:54:32)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.runMain (module.js:590:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
deleting plugins might be a bit rough @johnny try uninstalling using sbot plugins.uninstall ssb-ws
or going into the ~/.ssb/config
and deleting ssb-ws and any other unwanted plugins from there.
Which client at you using by the way (I presume not patchwork)
Built with git-ssb-web