Skip to content

Conversation

@max-schaefer
Copy link
Contributor

While hopefully portals will soon be superseded by API graphs, we are still using them in an OCTO project. To facilitate experiments, I would like to upstream three extensions we made to the library.

Note that the portals library is not used by any of our production queries or libraries, so these changes will not affect them in any way.

Max Schaefer added 4 commits July 9, 2020 09:08
This iterates the existing `getBasePortal()` predicate `i` times.
Previously, we only considered an import relevant to portals if the path it imported was declared as a dependency. This falls down for deep imports where a specific module inside the package is imported rather than the default entry point, for imports of built-in modules like `fs`, and in cases where a developer simply forgets to declare a dependency.

So instead we now consider all imports relevant whose path does not start with a dot or a slash.
@max-schaefer max-schaefer requested a review from a team July 9, 2020 08:28
Copy link
Contributor

@esbena esbena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@semmle-qlci semmle-qlci merged commit e167b87 into github:master Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants