Skip to content

Commit 5888a87

Browse files
committed
Merge branch 'origin/opensrc/main-staging' into open-main
2 parents 91d3263 + 21beae4 commit 5888a87

File tree

7 files changed

+12
-11
lines changed

7 files changed

+12
-11
lines changed

Codex.xln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- Allow all projects -->
44
<SolutionSaveLocation>$(MSBuildThisFileDirectory)\src\Codex.sln</SolutionSaveLocation>
55
<ProjectFilterLocal>$(ProjectFilter)</ProjectFilterLocal>
6-
<DisplayName>$([System.IO.Path]::GetFileName($([System.IO.Path]::GetDirectoryName($(MSBuildThisFileFullPath)))))</DisplayName>
6+
<SolutionDisplayName>$([System.IO.Path]::GetFileName($([System.IO.Path]::GetDirectoryName($(MSBuildThisFileFullPath)))))</SolutionDisplayName>
77
</PropertyGroup>
88

99
<ItemDefinitionGroup>

src/Codex.Integration.Tests/AnalyzeTestProjectBase.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,18 @@ public Task<IngestOperation> RunAnalyzeTestProject(bool searchOnly, bool cleanIn
8080
});
8181
}
8282

83+
protected virtual void PreconfigureOptions(AnalyzeTestProjectOptions options)
84+
{
85+
86+
}
87+
8388
public async Task<AnalyzeOperation> RunAnalyzeTestProjectAnalysis(
8489
Func<AnalyzeTestProjectOptions, AnalyzeTestProjectOptions> configureOptions = null,
8590
AsyncOut<AnalyzeTestProjectOptions> optionsOut = null,
8691
[CallerMemberName] string caller = null)
8792
{
8893
var options = new AnalyzeTestProjectOptions();
94+
PreconfigureOptions(options);
8995
options = configureOptions?.Invoke(options) ?? options;
9096
optionsOut?.Set(options);
9197

src/Codex.Integration.Tests/CodexTestBase.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,21 +180,16 @@ public CodexPage CreateCodexApp(string indexDirectory,
180180
var options = new CodexAppOptions();
181181
options = updateOptions?.Invoke(options) ?? options;
182182

183-
if (indexDirectory.StartsWith("https://"))
183+
if (PathUtilities.ToUriOrPath(indexDirectory, out var uri, out var path))
184184
{
185+
// For uri's we need to use paging logic
185186
options.UsePaging = true;
186187
options.ConfigurePaging = options.ConfigurePaging.ApplyBefore(pc => pc with
187188
{
188189
CacheLimit = 100_000,
189190
});
190191
}
191192

192-
if (PathUtilities.ToUriOrPath(indexDirectory, out var uri, out var path))
193-
{
194-
// For uri's we need to use paging logic
195-
options.UsePaging = true;
196-
}
197-
198193
ICodex getCodex()
199194
{
200195
{

src/Codex.Lucene/Paging/PagingHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ IHttpClient getClient(string directoryOrUrl, HttpClientKind kind)
154154

155155
private static Url GetAddress(Uri uri)
156156
{
157-
Url result = uri;
157+
Url result = uri.EnsureTrailingSlash();
158158
return result;
159159
}
160160

File renamed without changes.

src/Codex.Web.Wasm/wwwroot/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div style="pointer-events: all; overflow: auto; height: 100%">
2-
<link rel="stylesheet" href="./content/styles.css" />
2+
<link rel="stylesheet" href="content/home.html.css" />
33
<link href="content/dark.css" rel="stylesheet" media="(prefers-color-scheme: dark)" />
44

55
<div class="homeRoot">

src/Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
<_AllProjects Include="@(CodexDependency ->'$(RepoRoot)\src\build\%(Identity)\dep.proj')" ReferenceOutputAssembly="false" />
6060
<_AllProjects Include="@(ContentReference ->'$(RepoRoot)\src\%(SourceRelativeRoot)\%(Identity)\%(Identity).contentprj')" />
61-
<_AllProjects Include="@(CodexReference ->'$(RepoRoot)\src\%(SourceRelativeRoot)\%(Identity)\%(Identity).%(ProjectExtension)')" />
61+
<_AllProjects Include="@(CodexReference ->'$(RepoRoot)\src\%(SourceRelativeRoot)\%(Identity)\%(Identity).%(ProjectExtension)')" Folder="" />
6262
<_AllProjects Include="@(LuceneReference ->'$(LuceneRepoRoot)\src\%(Identity)\%(Identity).csproj')" />
6363
<_AllProjects Include="@(ZoneTreeReference ->'$(RepoRoot)\zonetree\src\%(Identity)\%(Identity).csproj')" />
6464

0 commit comments

Comments
 (0)