Skip to content

Commit cef17b9

Browse files
committed
Merge branch '2.x' into fix/2.x-termvector-filters
2 parents 466fab8 + 1d8019f commit cef17b9

File tree

292 files changed

+2715
-1940
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

292 files changed

+2715
-1940
lines changed

NuGet.config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<configuration>
33
<packageSources>
44
<add key="Temp DiffPlex Feed" value="https://www.myget.org/F/diffplex-temp/api/v3/index.json" />
5+
<add key="Xunit myget" value="https://www.myget.org/F/xunit/api/v3/index.json" />
56
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
67
</packageSources>
7-
</configuration>
8+
</configuration>

build.bat

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ SET VERSION=
2323
SET ESVERSIONS=
2424
SET SKIPTESTS=0
2525
SET APIKEY=
26+
SET APIKEYPROVIDED="<empty>"
2627
SET FEED="elasticsearch-net"
2728

2829
IF /I "%1"=="skiptests" (
@@ -50,12 +51,15 @@ IF /I "%1%"=="integrate" (
5051
)
5152

5253
IF /I "%1%"=="canary" (
53-
IF NOT [%2]==[] IF NOT "%2"=="skiptests" set APIKEY="%2"
54+
IF NOT [%2]==[] IF NOT "%2"=="skiptests" (
55+
set APIKEY="%2"
56+
SET APIKEYPROVIDED="<redacted>"
57+
)
5458
IF NOT [%3]==[] IF NOT "%3"=="skiptests" set FEED="%3"
5559
IF /I "%4"=="skiptests" (set SKIPTESTS=1)
5660
IF /I "%3"=="skiptests" (set SKIPTESTS=1)
5761
IF /I "%2"=="skiptests" (set SKIPTESTS=1)
5862
)
5963

60-
ECHO starting build using target=%TARGET% version=%VERSION% esversions=%ESVERSIONS% skiptests=%SKIPTESTS% apiKey=%APIKEY% feed=%FEED%
64+
ECHO starting build using target=%TARGET% version=%VERSION% esversions=%ESVERSIONS% skiptests=%SKIPTESTS% apiKey=%APIKEYPROVIDED% feed=%FEED%
6165
"packages\build\FAKE\tools\Fake.exe" "build\\scripts\\Targets.fsx" "target=%TARGET%" "version=%VERSION%" "esversions=%ESVERSIONS%" "skiptests=%SKIPTESTS%" "apiKey=%APIKEY%" "feed=%FEED%"

build/scripts/Building.fsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,18 @@ type Build() =
3131
|> Seq.iter(fun p ->
3232
let projectName = (p.Name |> directoryInfo).Name
3333
let link framework =
34-
GitLink.Exec ["."; "-u"; Paths.Repository; "-d"; (Paths.ProjectOutputFolder p framework); "-include"; projectName]
34+
//TC sets these so gitlink does not need to recreate
35+
let branch = environVarOrNone "GITBRANCH"
36+
let commit = environVarOrNone "GITCOMMIT"
37+
let args = Seq.empty
38+
|> match branch with
39+
| Some b -> Seq.append ["-b"; b]
40+
| None -> Seq.append Seq.empty
41+
|> match commit with
42+
| Some c -> Seq.append ["-s"; c]
43+
| None -> Seq.append Seq.empty
44+
|> Seq.append ["."; "-u"; Paths.Repository; "-d"; (Paths.ProjectOutputFolder p framework); "-include"; projectName]
45+
GitLink.Exec ["."; "-u"; Paths.Repository; "-d"; (Paths.ProjectOutputFolder p framework); "-include"; projectName]
3546
|> ignore
3647
link DotNetFramework.Net45
3748
link DotNetFramework.Net46

build/scripts/Targets.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Target "Canary" <| fun _ ->
7474
"QuickCompile"
7575
==> "QuickTest"
7676

77-
"QuickCompile"
77+
"BuildApp"
7878
==> "Integrate"
7979

8080
"Build"

build/scripts/Testing.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ module Tests =
3434

3535
for esVersion in esVersions do
3636
setProcessEnvironVar "NEST_INTEGRATION_VERSION" esVersion
37-
testProjectJson "none"
37+
testDesktopClr "all"

paket.dependencies

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ nuget System.Collections.Immutable
1111
nuget System.Reflection.Metadata 1.2.0
1212

1313
//tests
14-
nuget xunit
1514
nuget FluentAssertions
1615
nuget Bogus
1716
nuget DiffPlex
@@ -28,11 +27,17 @@ source https://api.nuget.org/v3/index.json
2827

2928
nuget AsciiDocNet
3029

30+
source https://www.myget.org/F/xunit/
31+
nuget xunit 2.2.0-beta3-build3330
32+
nuget xunit.abstractions 2.0.1-rc2
33+
3134
group build
3235

3336
source https://www.nuget.org/api/v2
3437

3538
nuget FAKE
3639
nuget FSharp.Data
3740
nuget GitLink prerelease
38-
nuget xunit.runner.console
41+
42+
source https://www.myget.org/F/xunit/
43+
nuget xunit.runner.console 2.2.0-beta3-build3330

paket.lock

Lines changed: 44 additions & 70 deletions
Large diffs are not rendered by default.

src/CodeGeneration/ApiGenerator/ApiGenerator.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<NoWarn>1591,1572,1571,1573,1587,1570</NoWarn>
3636
</PropertyGroup>
3737
<ItemGroup>
38+
<Content Include="last_downloaded_version.txt" />
3839
<Content Include="razormachine.readme.txt">
3940
<Paket>True</Paket>
4041
</Content>
@@ -61,6 +62,7 @@
6162
<Compile Include="Domain\RestApiSpec.cs" />
6263
<Compile Include="Extensions.cs" />
6364
<Compile Include="Overrides\Allow404\ApiEndpointsThatAllow404.cs" />
65+
<Compile Include="Overrides\Descriptors\AnalyzeDescriptorOverrides.cs" />
6466
<Compile Include="Overrides\Descriptors\ClearCacheDescriptorOverrides.cs" />
6567
<Compile Include="Overrides\Descriptors\ClearCachedRealmsDescriptorOverrides.cs" />
6668
<Compile Include="Overrides\Descriptors\ClearCachedRolesDescriptorOverrides.cs" />
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System.Collections.Generic;
2+
3+
namespace ApiGenerator.Overrides.Descriptors
4+
{
5+
public class AnalyzeDescriptorOverrides : DescriptorOverridesBase
6+
{
7+
public override IEnumerable<string> SkipQueryStringParams => new[]
8+
{
9+
"analyzer",
10+
"char_filters",
11+
"char_filter",
12+
"field",
13+
"filters",
14+
"filter",
15+
"text",
16+
"tokenizer"
17+
};
18+
}
19+
}

src/CodeGeneration/ApiGenerator/Views/RequestParameters.Generated.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace Elasticsearch.Net
2222
///@method.Documentation
2323
///</pre>
2424
///</summary>
25-
public class @method.QueryStringParamName : FluentRequestParameters<@method.QueryStringParamName>
25+
public partial class @method.QueryStringParamName : FluentRequestParameters<@method.QueryStringParamName>
2626
{
2727
public override HttpMethod DefaultHttpMethod => HttpMethod.@method.HttpMethod;
2828
@foreach (KeyValuePair<string, ApiQueryParameters> kv in method.Url.Params)

0 commit comments

Comments
 (0)