Skip to content

Starcke/fetch queries out of view#2750

Merged
starcke merged 3 commits intomainfrom
starcke/fetch-queries-out-of-view
Aug 25, 2023
Merged

Starcke/fetch queries out of view#2750
starcke merged 3 commits intomainfrom
starcke/fetch-queries-out-of-view

Conversation

@starcke
Copy link
Copy Markdown
Contributor

@starcke starcke commented Aug 25, 2023

Replace this with a description of the changes your pull request makes.

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.

@starcke starcke force-pushed the starcke/fetch-queries-out-of-view branch from b9d1bb9 to 9543ab3 Compare August 25, 2023 07:50
@starcke starcke marked this pull request as ready for review August 25, 2023 08:35
@starcke starcke requested a review from a team as a code owner August 25, 2023 08:35
import { redactableError } from "../common/errors";
import { readQueryResults, runQuery } from "./external-api-usage-queries";
import {
readQueryResults,
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.

Should this also be renamed? e.g. readExternalApiQueryResults

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.

I think it is not used in the view anymore, so I think it makes sense to just be readQueryResults. But I am also happy to rename it.

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.

Oh why is it imported then? 🤔

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.

Sorry I can't read a diff right 🤦 it looks like we can remove the export from that function though.

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.

I had problems with the test not being able to call it then, but maybe I am missing something?

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.

Ah, no you're not! So technically the function shouldn't be exported because it's not used by other places in the extension code. And tests shouldn't be testing that directly, but ideally should go through the entry point to the module rather than this function.

That might be a bit of a faff atm though so I'm happy for us to take it on at tech debt.

@starcke starcke merged commit 0433f89 into main Aug 25, 2023
@starcke starcke deleted the starcke/fetch-queries-out-of-view branch August 25, 2023 11:25
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