Skip to content

JS: Downgrade ast_node_symbol relation #9679

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2022

Conversation

asgerf
Copy link
Contributor

@asgerf asgerf commented Jun 23, 2022

Avoids introducing a DB inconsistency when downgrading

@asgerf asgerf added JS no-change-note-required This PR does not need a change note labels Jun 23, 2022
@asgerf asgerf requested a review from a team as a code owner June 23, 2022 08:19
Copy link
Contributor

@nickrolfe nickrolfe left a comment

Choose a reason for hiding this comment

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

The downgrade makes sense to me - it drops ast_node_symbol tuples where the node is an @external_module_declaration.

I ran a few hundred of the JS qltests on an old checkout of github/codeql, from before the dbscheme change, using a dist that includes the recent extractor and dbchanges, as well as this downgrade script. They passed, and I observed this downgrade script being applied in the output of codeql test run -vv ....

@asgerf asgerf merged commit 298f4ab into github:main Jun 23, 2022
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants