Skip to content

Python/JS: Make most of the new library private#6200

Merged
codeql-ci merged 3 commits into
github:mainfrom
yoff:pythonJS-make-expbtlib-private
Jul 2, 2021
Merged

Python/JS: Make most of the new library private#6200
codeql-ci merged 3 commits into
github:mainfrom
yoff:pythonJS-make-expbtlib-private

Conversation

@yoff

@yoff yoff commented Jul 1, 2021

Copy link
Copy Markdown
Contributor

A new library was recently introduced. As much as possible of that should be made private.

@yoff yoff requested review from a team as code owners July 1, 2021 13:42
@yoff yoff added the no-change-note-required This PR does not need a change note label Jul 1, 2021
@aschackmull

Copy link
Copy Markdown
Contributor

Much more can be made private.

@yoff

yoff commented Jul 2, 2021

Copy link
Copy Markdown
Contributor Author

Much more can be made private.

Do you mean in other files or in the new file? I felt I could not hide previously exposed stuff in the javascript codebase, and I want the python files to be identical.

@yoff

yoff commented Jul 2, 2021

Copy link
Copy Markdown
Contributor Author

Ah, I guess I could make most classes private also..

@yoff

yoff commented Jul 2, 2021

Copy link
Copy Markdown
Contributor Author

Oh, and I missed all the typed predicates 🤦

yoff added 2 commits July 2, 2021 12:13
This mirrors `SuperlinearBacktracking.qll`
An alternative is to keep it private and import it again
in the query files.

@RasmusWL RasmusWL left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍 from the Python side

@esbena

esbena commented Jul 2, 2021

Copy link
Copy Markdown
Contributor

A new library was recently introduced.

The library is less new for JavaScript (~4-6 months?). Is this privatization a breaking change for JavaScript? Or did we already cross that bridge when the shared RegExp libraries for Python/JavaScript were introduced?

@aschackmull

Copy link
Copy Markdown
Contributor

Is this privatization a breaking change for JavaScript

I believe this code was recently hidden in a .ql file, so therefore implicitly private. But I haven't checked the details - I'm just drive-by commenting.

@yoff

yoff commented Jul 2, 2021

Copy link
Copy Markdown
Contributor Author

Is this privatization a breaking change for JavaScript

I believe this code was recently hidden in a .ql file, so therefore implicitly private. But I haven't checked the details - I'm just drive-by commenting.

That is correct, it was inside ReDoS.ql which has to import javascript. It defines the relevant ReDoSConfiguration and was pulled out so that the files can be identical.

@esbena esbena left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In that case: 👍 from JS

@codeql-ci codeql-ci merged commit 1d56748 into github:main Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

JS no-change-note-required This PR does not need a change note Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants