Skip to content

feat: add full name to remote api#5724

Merged
abeizn merged 2 commits into
apache:mainfrom
merico-ai:kw-add-fullname-to-remotesearch
Jul 25, 2023
Merged

feat: add full name to remote api#5724
abeizn merged 2 commits into
apache:mainfrom
merico-ai:kw-add-fullname-to-remotesearch

Conversation

@klesh
Copy link
Copy Markdown
Contributor

@klesh klesh commented Jul 21, 2023

Summary

it is basically unusable when trying to search github repos and add them

5426a33c-3d99-4b4d-aa0e-0d3cf499962c

This PR add a new field named fullName to deal with the situation.

for plugins that don't have parent folders, fullName = name, like sonarqube, jira, etc
for plugins that have parent folders, fullName = parent folders / name, like github, gitlab, jenkins, etcs

Self test

I tested on most of the data source that I have access to. bitbucket, jira , gitlab, github, jenkins

Screenshots

Snipaste_2023-07-21_17-00-04 Snipaste_2023-07-21_17-26-23 Snipaste_2023-07-21_17-35-48 Snipaste_2023-07-21_17-42-15 Snipaste_2023-07-21_17-54-45 Snipaste_2023-07-21_17-58-30

}

func (t TestFakeGitlabRepo) ScopeFullName() string {
return ""
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.

return t.FullName?

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.

It doesn't matter, beside, there is no such field in the test case

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.

okay

@abeizn
Copy link
Copy Markdown
Contributor

abeizn commented Jul 25, 2023

where is the related issue?

@klesh
Copy link
Copy Markdown
Contributor Author

klesh commented Jul 25, 2023

where is the related issue?

The problem was described in the PR description together.

Copy link
Copy Markdown
Contributor

@abeizn abeizn left a comment

Choose a reason for hiding this comment

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

lgtm

@abeizn abeizn merged commit d870116 into apache:main Jul 25, 2023
abeizn pushed a commit that referenced this pull request Jul 25, 2023
* feat: add full name to remote api

* fix: unit test
@abeizn abeizn added the cherrypick-completed Use this alongside needs-cherrypick-* labels after the PR has been cherrypicked. label Jul 25, 2023
klesh pushed a commit that referenced this pull request Jul 25, 2023
* feat: add full name to remote api

* fix: unit test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherrypick-completed Use this alongside needs-cherrypick-* labels after the PR has been cherrypicked. needs-cherrypick-v0.18

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants