Skip to content

Conversation

@aeisenberg
Copy link
Contributor

@aeisenberg aeisenberg commented Mar 17, 2024

When importing from a directory, check for testproj

Use the testproj style import when using the folder icon to import a
database. This means that if the database directory ends with testproj
copy the database into workspace storage and make it available for
re-importing when the origin database changes.

Safely check for out of date databases

When checking to re-import test databases, if the target database is
missing or otherwise unavailable, avoid the check and just continue.

This avoids a bug where a user would delete a test database and there
would be an error when trying to run a query.

Ensure database sources are zipped on re-import

(Commit-by-commit review is recommended).

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

When checking to re-import test databases, if the target database is
missing or otherwise unavailable, avoid the check and just continue.

This avoids a bug where a user would delete a test database and there
would be an error when trying to run a query.
Use the testproj style import when using the folder icon to import a
database. This means that if the database directory ends with `testproj`
copy the database into workspace storage and make it available for
re-importing when the origin database changes.
@aeisenberg aeisenberg requested a review from a team as a code owner March 17, 2024 18:34
@aeisenberg aeisenberg requested a review from koesie10 March 17, 2024 18:36
@aeisenberg
Copy link
Contributor Author

@koesie10 would you be able to review this?

@aeisenberg aeisenberg changed the title Two minor improvements to testproj import Three minor improvements to testproj import Mar 17, 2024
Copy link
Member

@koesie10 koesie10 left a comment

Choose a reason for hiding this comment

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

LGTM

@aeisenberg aeisenberg merged commit 4deae2f into main Mar 18, 2024
@aeisenberg aeisenberg deleted the aeisenberg/ignore-missing-database branch March 18, 2024 19:47
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