Skip to content

Remove code to start a remote query run#2068

Merged
koesie10 merged 1 commit intomainfrom
koesie10/remove-run-remote-query
Feb 13, 2023
Merged

Remove code to start a remote query run#2068
koesie10 merged 1 commit intomainfrom
koesie10/remove-run-remote-query

Conversation

@koesie10
Copy link
Copy Markdown
Member

This removes the runRemoteQuery method on the remote queries manager, all code that calls it and code which is now dead.

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.

This removes the `runRemoteQuery` method on the remote queries manager,
all code that calls it and code which is now dead.
@koesie10 koesie10 marked this pull request as ready for review February 13, 2023 13:41
@koesie10 koesie10 requested review from a team as code owners February 13, 2023 13:41
@koesie10 koesie10 mentioned this pull request Feb 13, 2023
3 tasks
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. I think we can remove some more code but appreciate we may not want to do that in this PR.

import { Credentials } from "../common/authentication";
import { RepositorySelection } from "./repository-selection";
import { Repository } from "./shared/repository";
import { RemoteQueriesResponse } from "./gh-api/remote-queries";
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.

Can we also delete this?

import { RepositorySelection } from "./repository-selection";
import { Repository } from "./shared/repository";
import { RemoteQueriesResponse } from "./gh-api/remote-queries";
import { submitRemoteQueries } from "./gh-api/gh-api-client";
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.

Shall we clean up gh-api-client as well from remote query related stuff?

@koesie10
Copy link
Copy Markdown
Member Author

@charisk Thanks for the review! We can definitely remove a lot more code, but I think it's easier to split it up in more PRs so it can be reviewed more easily. We have a few issues that are related to cleaning up all remote queries code that is remaining after removing the code specified in separate issues.

@koesie10 koesie10 merged commit e5a48fb into main Feb 13, 2023
@koesie10 koesie10 deleted the koesie10/remove-run-remote-query branch February 13, 2023 14:46
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.

2 participants