Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/release/3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kieranties committed Nov 24, 2020
2 parents ab7b470 + a67b850 commit be5b92a
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 25 deletions.
15 changes: 10 additions & 5 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# GitVersion.yml
mode: ContinuousDelivery
next-version: 3.0
ignore:
sha: []
mode: ContinuousDeployment
next-version: 3.2
branches:
master:
mode: ContinuousDelivery
pull-request:
tag: pr
increment: None
develop:
tag: alpha1
3 changes: 1 addition & 2 deletions Packages.props
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Project>
<PropertyGroup Label="Dependency Versions">
<_ComponentHost>2.0.0-alpha-14</_ComponentHost>
<_AutoFixture>4.11.0</_AutoFixture>
<_CluedIn>3.0.0-netcore.*</_CluedIn>
<_CluedIn>3.2.0-*</_CluedIn>
</PropertyGroup>

<ItemGroup>
Expand Down
20 changes: 6 additions & 14 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,24 @@ name: $(Date:yyyyMMdd)$(Rev:.r)
trigger:
branches:
include:
- master
- develop
tags:
include:
- v*
paths:
exclude:
- '*.md'
- master
- release/*

pr:
branches:
include:
- develop
- master
- release/*
paths:
exclude:
- '*.md'

resources:
repositories:
- repository: templates
type: github
name: CluedIn-io/AzurePipelines.Templates
endpoint: 'CluedIn-io'
ref: refs/heads/refactor

pool:
vmImage: 'windows-latest'
Expand All @@ -40,6 +33,8 @@ variables:
value: true
- name: DOTNET_CLI_TELEMETRY_OPTOUT
value: true
- name: buildConfiguration
value: Release

steps:

Expand All @@ -53,7 +48,4 @@ steps:
env:
NUGET_KEY: $(nuget.key)

- template: crawler.netcore.build.yml@templates

- template: documentation.publish.yml@templates

- template: crawler.build.yml@templates
5 changes: 5 additions & 0 deletions docs/3.2.0-release-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Fixes
+ Update extended metadata

### Features
+ Support netcore and CluedIn 3.2.0+
6 changes: 6 additions & 0 deletions src/ExternalSearch.Providers.KnowledgeGraph.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<None Remove="Resources\knowledgegraph.jpg" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\knowledgegraph.jpg" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CluedIn.ExternalSearch" />
</ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions src/KnowledgeGraphExternalSearchProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ public partial class KnowledgeGraphExternalSearchProvider : ExternalSearchProvid
}
.Select(t => t.ToLowerInvariant())
.Distinct()
.ToHashSet();
.ToHashSetEx();

/**********************************************************************************************************
* CONSTRUCTORS
Expand Down Expand Up @@ -1248,7 +1248,7 @@ public override IEnumerable<IExternalSearchQuery> BuildQueries(ExecutionContext
{
var values = organizationName.GetOrganizationNameVariants()
.Select(NameNormalization.Normalize)
.ToHashSet();
.ToHashSetEx();

foreach (var value in values.Where(v => !nameFilter(v)))
yield return new ExternalSearchQuery(this, entityType, ExternalSearchQueryParameter.Name, value);
Expand Down Expand Up @@ -1279,7 +1279,7 @@ public override IEnumerable<IExternalSearchQueryResult> ExecuteSearch(ExecutionC
name = HttpUtility.UrlEncode(name);

var client = new RestClient("https://kgsearch.googleapis.com");

var request = new RestRequest(string.Format("v1/entities:search?query={0}&key={1}&limit=10&indent=True", name ?? uri, "AIzaSyA_jYkIzEp_8w90K70KQYuoKLrLuOf1wZA"), Method.GET);

var response = client.ExecuteTaskAsync<KnowledgeResponse>(request).Result;
Expand Down Expand Up @@ -1432,7 +1432,7 @@ private void PopulateMetadata(IEntityMetadata metadata, IExternalSearchQueryResu

public string Icon { get; } = "Resources.knowledgegraph.jpg";
public string Domain { get; } = "https://developers.google.com/knowledge-graph";
public string About { get; } = "Knowledge Graph is enricher which allows you to find entities using Google Knowledge Graph API";
public string About { get; } = "Knowledge Graph is an enricher which allows you to find entities using the Google Knowledge Graph API";
public AuthMethods AuthMethods { get; } = null;
public IEnumerable<Control> Properties { get; } = null;
public Guide Guide { get; } = null;
Expand Down

0 comments on commit be5b92a

Please sign in to comment.