Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push QL pack details creation to commands #3262

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

charisk
Copy link
Contributor

@charisk charisk commented Jan 22, 2024

Pushes creating QlPackDetails even further up the stack - where details will be decided, which is nearer the commands.

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.

@charisk charisk requested a review from a team as a code owner January 22, 2024 14:23
Copy link
Contributor

@robertbrignull robertbrignull left a comment

Choose a reason for hiding this comment

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

Ok by me to merge if this is the order you want to do it, though alternatives are also fine with me.

The general idea of defining QlPackDetails earlier and passing it through makes sense to me.

What's a little odd is that it requires adding TODO comments and walking back some of the changes we made for supporting multiple queries. I expect the very next change will be to re-revert these changes when we add multi-query support into QlPackDetails.

Would it be easier and require fewer steps to convert QlPackDetails to support multiple queries first or in this PR as well?

@charisk
Copy link
Contributor Author

charisk commented Jan 23, 2024

Ok by me to merge if this is the order you want to do it, though alternatives are also fine with me.

The general idea of defining QlPackDetails earlier and passing it through makes sense to me.

What's a little odd is that it requires adding TODO comments and walking back some of the changes we made for supporting multiple queries. I expect the very next change will be to re-revert these changes when we add multi-query support into QlPackDetails.

Would it be easier and require fewer steps to convert QlPackDetails to support multiple queries first or in this PR as well?

Agree, either approach is fine. It's a bit odd either way - we either use queryFiles and only allow a single file later on, or we have some TODOs 🤷 I'm going to go ahead with this for now and build on it.

@charisk charisk merged commit 9285b02 into main Jan 23, 2024
14 checks passed
@charisk charisk deleted the charisk/push-up-ql-pack-details branch January 23, 2024 10:17
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