Skip to content

Commit

Permalink
Update data_source to data_source_description in content matches (#993)
Browse files Browse the repository at this point in the history
*  For the contentmatches endpoint change the name of the field
   from `data_source` to `data_source_description` to align with
   the changes in API

Co-authored-by: Ansible-lightspeed-Bot <[email protected]>
  • Loading branch information
ganeshrn and Ansible-lightspeed-Bot authored Oct 20, 2023
1 parent 5c3f39a commit f989a31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/features/lightspeed/contentMatchesWebview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export class ContentMatchesWebview implements vscode.WebviewViewProvider {
<ul>
<li>URL: <a href=${contentMatchResponse.repo_url}>${contentMatchResponse.repo_url}</a></li>
<li>Path: ${contentMatchResponse.path}</li>
<li>Data Source: ${contentMatchResponse.data_source}</li>
<li>Data Source: ${contentMatchResponse.data_source_description}</li>
<li>License: ${contentMatchResponse.license}</li>
<li>Score: ${contentMatchResponse.score}</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/lightspeed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export interface IContentMatchParams {
repo_url: string;
path: string;
license: string;
data_source: string;
data_source_description: string;
score: number;
}

Expand Down

0 comments on commit f989a31

Please sign in to comment.