Skip to content

Conversation

@elenatanasoiu
Copy link
Contributor

Came out of #2250 (comment)

This required moving the digForDatabaseItem & digForDatabaseWithSameLanguage methods into the SkeletonQueryWizard class.

In order to do this we had to:

  • extract some factories from the local-databases.test.ts file so we can set up a mock database manager
  • move the methods
  • adapt our tests

We're also:

  • renaming the methods to make them more consistent with other search methods for database items.

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.

And the tests for it. We can now re-use the factory from the previous commit.
To be consistent with other database item search methods, we're renaming
ours:

`digForDatabaseItem` -> `findDatabaseItemByNwo`
and
`digForDatabaseItemSameLanguage` -> `findDatabaseItemByLanguage`
This was an attempt to make the tests run in a shorter timeframe, but
we've gone with increasing the timeout to 40s.
@elenatanasoiu elenatanasoiu force-pushed the elena/improvements-to-wizard branch from a5b2d1c to a6ffb6b Compare April 12, 2023 09:38
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.

Thanks for cleaning this up!

Base automatically changed from elena/yer-a-lizard-query to main April 12, 2023 16:39
@elenatanasoiu elenatanasoiu merged commit eabcd00 into main Apr 12, 2023
@elenatanasoiu elenatanasoiu deleted the elena/improvements-to-wizard branch April 12, 2023 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants