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

fix(Git): issue with including unit-tests and protofiles #8095

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

gatzjames
Copy link
Contributor

Highlihts:

  • Updates the filters we pass to withDescendants in order to include unit-tests and proto-files inside test-suites and proto-directories
  • Fixes the issue where adding new tests/proto-files the result is not being shown in git status

@gatzjames gatzjames self-assigned this Oct 17, 2024
@CurryYangxx
Copy link
Member

I think we also need to deal with models.mockRoute.type

@gatzjames
Copy link
Contributor Author

gatzjames commented Oct 17, 2024

I think we also need to deal with models.mockRoute.type

Good one also added websocket payload.

Looking at the models one by one atm but let me know if you find any other model I haven't caught

@gatzjames gatzjames requested a review from a team October 17, 2024 11:28
@gatzjames gatzjames merged commit db1e3b2 into Kong:develop Oct 17, 2024
8 checks passed
@gatzjames gatzjames deleted the fix/nedbclient-filters branch October 17, 2024 13:32
const modelTypesWithinFolders = [models.request.type, models.grpcRequest.type, models.webSocketRequest.type];
const typeFilter = modelTypesWithinFolders.includes(type) ? [models.requestGroup.type, type] : [type];
if (modelTypesWithinFolders.includes(type)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

If we want to get all requests in a workspace, It's unintuitive that we need to pass [requestGroup, request] as the queryTypes argument to withDescendants and then filter out the requestGroups from result. Maybe we can do it within withDescendants method.

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.

4 participants