git ssb

0+

Matt McKegg / ssb-backlinks



get DTS index working

%Yt9KsaLudutODj8jP3lwQpiAWBPW2ObzH3d+BxMVYjM=.sha256
Closed cel wants to merge commits into master from all-types
cel · 6/13/2017, 5:47:36 PM

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

%CoRaVRWYmwF/ywtUqqBBb4P9N8zDn+JltO9t1FQJaHE=.sha256 Matt McKegg · 6/14/2017, 5:20:41 AM

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}
        ]
      }))
%FRrPYZMNIYVQ7r1D1H6cwnMxncHkD9v7RJMmy9w/mP4=.sha256 cel · 6/14/2017, 5:23:37 AM

cool, that works!

%Rs9PypYLVjA97XFMVFCkwk1lcBmZKd4IcSEsO8N8rlQ=.sha256 cel closed this pull request · 6/14/2017, 5:25:03 AM
%4wxZNgwzP0qAgbbuvJJ7SusCtNXvEb5f6/blKB8SPtY=.sha256 Matt McKegg · 6/14/2017, 7:12:08 AM

@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!

%8mi63o3UzEghp6LbZLYZHk8kcNQ4UO0wurn7HQwE8Qo=.sha256 cel · 6/14/2017, 6:32:52 PM

@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?

%WaLi1i/OPjrXoPXacy2F0ABx2wcwbSkWglLLxcdOebE=.sha256 regular · 6/14/2017, 7:15:44 PM

@cel would patchfoo? I am asking for a reason :)

%3HFrC1q2iVSNuyBL6Hg0lk36cgaixyxSWhnUZvlcfKk=.sha256 cel · 6/14/2017, 7:18:24 PM

@regular yes, patchfoo's mentions page should show all mentions of your id

%DUZcT4CKVS1exA8Zu1jh0iqI9DzSrSTo5por1H7xwCQ=.sha256 cheerbitch · 6/14/2017, 7:59:12 PM

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)
%ZK5b2xFJbrTqk/LWmszzevysXYPtA3kBuKK4XaUjspU=.sha256 Dominic · 6/14/2017, 10:58:42 PM

@johnny looks like you need to update to scuttlebot@10

%qj9OU8khJJm2uVgSav+lfEPLMG+xMxx4y06HEyrugJA=.sha256 cheerbitch · 6/17/2017, 4:48:43 PM

ITS TIME

%hVfMUnH92xZ/q2k9KXAlKcYb3HPgZ28WQNQq+xCtuy8=.sha256 cheerbitch · 6/17/2017, 8:23:42 PM

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)
%iIFukvc01ypp03wG/vWb3jtAz+IETGt2VeLMKD6yG34=.sha256 mixmix · 6/18/2017, 7:22:46 AM

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)

cel mentioned this pull request in @kas @noffle @arj `ssb-private` indexes messages only by received timestamp and (author + type + received timestamp). The `/private` page in

Built with git-ssb-web