-
Notifications
You must be signed in to change notification settings - Fork 91
Limit fetched data to only some collections #112
Comments
You can using the visitor map concept. Essentially you create an object that has every node and edge you want to traverse. Take a look at the end of visitorMap.js. There you will see the full list of everything the crawler can currently traverse. For your case, you would create a
From there you can reference that the Fully get that this is not as easy as one might hope. Ideally the set of maps is something that comes from a configuration file or some such. We could totally do that and a PR to that effect would certainly be welcomed. |
A followup on this issue; I've been looking into this with the intention of using new visitor maps. Once I've worked it out, I'll put together a thing that allows supplying a JSON configuration file for a custom visitor map or similar, which will be nice. However, I don't fully understand it and so I have questions. Let's imagine that I plan to use a custom map as follows, by dropping this code into
How do I correctly queue a request to use that map? From the dashboard (or via the API) I can queue a request by passing an object with |
Phew, I'm going to have to dig into the code on this one. The feature (being able to spec maps) is there but has seen relatively little use. I'm pretty sure it's possible but will need to look carefully. You are on the right path (no pun intended) but there is likely a subtlety to the way the map path is spec'd in the request. |
It would be useful to only fetch some data from Github; for example, if I only need issues, pull_requests, and repos, to not have to fetch commits or issue_comments so as to reduce the amount I need to hit Github. Is this possible? The docs on policies seem to suggest that it might be doable, but I don't think I understand well enough how to do it; perhaps a doc clarification? (Or alternatively saying "you can't" would be OK here too.)
The text was updated successfully, but these errors were encountered: