Skip to content

Commit b2a26f4

Browse files
authored
Merge pull request #6 from exceptionless/feature/config-refactor
Added improved support for Querying, Batching, Reindexing and Time Series Indexes
2 parents d5d85d5 + ba9620c commit b2a26f4

File tree

228 files changed

+10935
-3321
lines changed

Some content is hidden

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

228 files changed

+10935
-3321
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ x86/
1616
bld/
1717
[Bb]in/
1818
[Oo]bj/
19-
19+
Build/elasticsearch*/
2020
# Roslyn cache directories
2121
*.ide/
2222

@@ -181,3 +181,4 @@ UpgradeLog*.htm
181181
# Microsoft Fakes
182182
FakesAssemblies/
183183
.vs/config/applicationhost.config
184+
*.nugetreferenceswitcher

.vscode/launch.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "PowerShell",
6+
"type": "PowerShell",
7+
"request": "launch",
8+
"program": "${file}",
9+
"args": [],
10+
"cwd": "${file}"
11+
}
12+
]
13+
}

Build/Start-ElasticSearch.ps1

Lines changed: 0 additions & 26 deletions
This file was deleted.

Build/elasticsearch.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

Foundatio.Repositories.sln

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 14
4-
VisualStudioVersion = 14.0.24720.0
4+
VisualStudioVersion = 14.0.25420.1
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Foundatio.Repositories", "src\Core\Foundatio.Repositories.csproj", "{F5B6C2B5-485F-4A4B-8E00-D5F77676CD6E}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Foundatio.Repositories", "src\Foundatio.Repositories\Foundatio.Repositories.csproj", "{F5B6C2B5-485F-4A4B-8E00-D5F77676CD6E}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Foundatio.Repositories.Tests", "src\Core\Tests\Foundatio.Repositories.Tests.csproj", "{23002BA4-8663-460B-8D67-3AA941B0322A}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Foundatio.Repositories.Tests", "tests\Foundatio.Repositories.Tests\Foundatio.Repositories.Tests.csproj", "{23002BA4-8663-460B-8D67-3AA941B0322A}"
99
EndProject
1010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{70515E66-DAF8-4D18-8F8F-8A2934171AA9}"
1111
EndProject
1212
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{4E12E4C1-2EC6-4EC7-8956-AF2721DA4ECE}"
1313
ProjectSection(SolutionItems) = preProject
1414
appveyor.yml = appveyor.yml
1515
README.md = README.md
16+
Build\Replace-FileString.ps1 = Build\Replace-FileString.ps1
1617
EndProjectSection
1718
EndProject
18-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Foundatio.Repositories.Elasticsearch", "src\Elasticsearch\Foundatio.Repositories.Elasticsearch.csproj", "{3BFBD4C1-3F2C-46A4-9400-2CB9803644BE}"
19+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Foundatio.Repositories.Elasticsearch", "src\Foundatio.Repositories.Elasticsearch\Foundatio.Repositories.Elasticsearch.csproj", "{3BFBD4C1-3F2C-46A4-9400-2CB9803644BE}"
1920
EndProject
20-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Foundatio.Repositories.Elasticsearch.Tests", "src\Elasticsearch\Tests\Foundatio.Repositories.Elasticsearch.Tests.csproj", "{93E138E9-D06C-4B78-B62D-317786025013}"
21+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Foundatio.Repositories.Elasticsearch.Tests", "tests\Foundatio.Repositories.Elasticsearch.Tests\Foundatio.Repositories.Elasticsearch.Tests.csproj", "{93E138E9-D06C-4B78-B62D-317786025013}"
2122
EndProject
2223
Global
2324
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
22

3-
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateStaticReadonly/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /&gt;</s:String></wpf:ResourceDictionary>
3+
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateStaticReadonly/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /&gt;</s:String>
4+
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PublicFields/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /&gt;</s:String></wpf:ResourceDictionary>

appveyor.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
version: 1.0.{build}
1+
version: 2.0.{build}
22
os: Visual Studio 2015
33
clone_depth: 2
4+
configuration: Release
5+
6+
pull_requests:
7+
do_not_increment_build_number: true
48

59
environment:
610
JAVA_HOME: C:\Program Files (x86)\Java\jdk1.8.0
@@ -13,28 +17,26 @@ init:
1317

1418
install:
1519
- choco install gitlink
16-
- ps: .\Build\Start-ElasticSearch.ps1
20+
- ps: .\build\Start-ElasticSearch.ps1
1721

1822
assembly_info:
1923
patch: true
2024
file: AssemblyInfo.*
21-
assembly_version: "1.0.0.0"
25+
assembly_version: "{version}.0"
2226
assembly_file_version: "{version}.0"
2327
assembly_informational_version: "{version}$(VERSION_SUFFIX) $(GIT_HASH)"
2428

2529
before_build:
2630
- nuget restore
27-
- ps: .\Build\Replace-FileString -Pattern '\$version\$' -Replacement "$($env:appveyor_build_version)$($env:VERSION_SUFFIX)" -Path src\**\*.nuspec -Overwrite
28-
29-
configuration: Release
31+
- ps: .\build\Replace-FileString -Pattern '\$version\$' -Replacement "$($env:appveyor_build_version)$($env:VERSION_SUFFIX)" -Path src\**\*.nuspec -Overwrite
3032

3133
build:
3234
project: Foundatio.Repositories.sln
3335
verbosity: minimal
3436
publish_nuget: true
3537

3638
before_package:
37-
- ps: if ((-not $env:APPVEYOR_PULL_REQUEST_NUMBER) -and ($env:APPVEYOR_REPO_BRANCH -eq 'master')) { & "GitLink" .\ }
39+
- ps: if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER) { & "GitLink" .\ }
3840

3941
#on_failure:
4042
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
@@ -58,5 +60,4 @@ notifications:
5860
- provider: Slack
5961
auth_token:
6062
secure: GniMpFE62HprSyQNQoej/fBOAdbQe8EMWAMMNXX0s2JxeNePjemiO1bCf4eYweE4p70mm0sCwMjeEP/Ps9aTMA==
61-
channel: '#notifications'
62-
63+
channel: '#notifications'
File renamed without changes.

build/Start-ElasticSearch.ps1

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
$es_version = "1.7.5"
2+
If ($env:ES_VERSION) {
3+
$es_version = $env:ES_VERSION
4+
}
5+
6+
If ($env:JAVA_HOME -eq $null -or !(Test-Path -Path $env:JAVA_HOME)) {
7+
Write-Error "Please ensure the latest version of java is installed and the JAVA_HOME environmental variable has been set."
8+
Return
9+
}
10+
11+
Push-Location $PSScriptRoot
12+
13+
If (!(Test-Path -Path "elasticsearch-$es_version") -And !(Test-Path -Path "elasticsearch.zip")) {
14+
Invoke-WebRequest "http://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-$es_version.zip" -OutFile "elasticsearch-$es_version.zip"
15+
}
16+
17+
If ((Test-Path -Path "elasticsearch-$es_version.zip") -And !(Test-Path -Path "elasticsearch-$es_version")) {
18+
Add-Type -assembly "system.io.compression.filesystem"
19+
[io.compression.zipfile]::ExtractToDirectory("$PSScriptRoot\elasticsearch-$es_version.zip", $PSScriptRoot)
20+
cp .\elasticsearch.yml .\elasticsearch-$es_version\config -Force
21+
rm elasticsearch-$es_version.zip
22+
& ".\elasticsearch-$es_version\bin\plugin.bat" install elasticsearch/marvel/latest
23+
24+
cp .\elasticsearch-$es_version .\elasticsearch-node1 -Recurse
25+
cp .\elasticsearch-$es_version .\elasticsearch-node2 -Recurse
26+
cp .\elasticsearch-$es_version .\elasticsearch-node3 -Recurse
27+
}
28+
29+
Write-Output "Starting node 1..."
30+
Start-Process "$(Get-Location)\elasticsearch-node1\bin\elasticsearch.bat"
31+
Write-Output "Starting node 2..."
32+
Start-Process "$(Get-Location)\elasticsearch-node2\bin\elasticsearch.bat"
33+
Write-Output "Starting node 3..."
34+
Start-Process "$(Get-Location)\elasticsearch-node3\bin\elasticsearch.bat"
35+
36+
Pop-Location

build/elasticsearch.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
cluster.name: foundatio
2+
cluster.routing.allocation.disk.threshold_enabled: false
3+
action.auto_create_index: false
4+
script.groovy.sandbox.enabled: true
5+
index.number_of_shards: 3
6+
index.number_of_replicas: 1
7+
bootstrap.mlockall: true
8+
discovery.zen.ping.multicast.enabled: true

src/Core/IReadOnlyRepository.cs

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/Core/Migration/IMigrationRepository.cs

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/Core/Models/FacetResult.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Core/Models/FindResults.cs

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/Core/Queries/IdentityQuery.cs

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/Core/Queries/PagableQuery.cs

Lines changed: 0 additions & 67 deletions
This file was deleted.

src/Core/Tests/app.config

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/Core/packages.config

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)