Skip to content

Move Discovery class into common folder#2414

Merged
shati-patel merged 2 commits intomainfrom
shati-patel/discover-queries
May 10, 2023
Merged

Move Discovery class into common folder#2414
shati-patel merged 2 commits intomainfrom
shati-patel/discover-queries

Conversation

@shati-patel
Copy link
Copy Markdown
Contributor

We'll also use this for discovering query files for the new Queries panel (see #2412)

Checklist

N/A

  • 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.

We'll also use this for discovering query files for the new Queries panel
@shati-patel shati-patel requested a review from a team as a code owner May 10, 2023 13:56
Copy link
Copy Markdown
Contributor

@charisk charisk left a comment

Choose a reason for hiding this comment

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

LGTM, just one comment!

@@ -1,5 +1,5 @@
import { DisposableObject } from "../pure/disposable-object";
import { extLogger } from "../common";
import { extLogger } from ".";
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.

Let's try and avoid this since we're already within the same module. Otherwise following the dependencies gets a bit circular.

Suggested change
import { extLogger } from ".";
import { extLogger } from "./logging/logger";

Warning: browser coding!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Makes sense 🧠

@shati-patel shati-patel enabled auto-merge (squash) May 10, 2023 16:04
@shati-patel shati-patel merged commit d0ca885 into main May 10, 2023
@shati-patel shati-patel deleted the shati-patel/discover-queries branch May 10, 2023 16:58
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.

2 participants