Skip to content

fix: improved poor search in connector type list#1670

Merged
wtrocki merged 2 commits intomainfrom
fix-connector-type-list
Jul 22, 2022
Merged

fix: improved poor search in connector type list#1670
wtrocki merged 2 commits intomainfrom
fix-connector-type-list

Conversation

@jackdelahunt
Copy link
Contributor

Should now have a better search, still doesn't use ID .

Verification Steps

  1. Do x
  2. Do y

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation change
  • Other (please specify)


if opts.search != DefaultSearch {
query := fmt.Sprintf("name like %[1]s or label like %[1]s or description like %[1]s", opts.search)
query := fmt.Sprintf("name like %[2]s%[1]s%[2]s or label like %[2]s%[1]s%[2]s or description like %[2]s%[1]s%[2]s", opts.search, "%")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Label doesn't exist :D
We are missing id :D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing label, but id does not work either adding it makes every request not work

@wtrocki wtrocki merged commit e8aed90 into main Jul 22, 2022
@wtrocki wtrocki deleted the fix-connector-type-list branch July 22, 2022 09:06
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