JetSetter icon indicating copy to clipboard operation
JetSetter copied to clipboard

Enhancement Request: Manually Specify Which Sessions to Watch

Open eliasthompson opened this issue 10 years ago • 4 comments

So I'm building a large app. Lots of collections and lots of sessions. These days I only need to actively monitor a handful of them. I know that Mongol allows you to specify which collections to watch, and I was wondering if JetSetter has functionality that lets you do the same. It's very possible that Google has failed me in finding some doc that specifies all the options you can set with a JetSetter/Mongol/MeteorToys Session, but I haven't been able to find a way to do it. Is it possible yet? And, if not, would it be possible to add this functionality at some point int he future?

eliasthompson avatar Jun 25 '15 10:06 eliasthompson

have you considered using different Reactive Dictionaries to break up the Session variables? It works much like with Mongo collections

msavin avatar Aug 07 '15 13:08 msavin

Basically what I came up with after some Googling and looking at how Mongol now uses reactive dictionaries is this:

Package['meteortoys:toykit'].MeteorToysDict.set('JetSetter', [
    'some',
    'session',
    'names',
    'go',
    'here']);

Some times it works, some times it doesn't. When it does, it reverts back to showing all the sessions after a while (that may be related to a seperate issue (https://github.com/msavin/Mongol/issues/90) we've been having in this app specifically). I'll try this in another app to see if I get the desired result or not, but is that what you meant by using different reactive dictionaries or did you mean something different?

eliasthompson avatar Aug 07 '15 20:08 eliasthompson

An addition bit of info that I just noticed remembered: When JetSetter does show only the specified sessions successfully, this shows up in the console:

eliasthompson avatar Aug 12 '15 21:08 eliasthompson

Hey Elias - I think I have a place to hook this in, but no guarantees yet.

msavin avatar Oct 23 '15 22:10 msavin