Skip to content

Commit b08475a

Browse files
committed
2 parents 74efe2e + f996ef7 commit b08475a

File tree

4 files changed

+12
-27
lines changed

4 files changed

+12
-27
lines changed

Analogy/Analogy.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<RepositoryUrl>https://github.com/Analogy-LogViewer/Analogy.LogViewer</RepositoryUrl>
2626
<PackageTags />
2727
<RepositoryType>git</RepositoryType>
28-
<Version>4.7.5</Version>
28+
<Version>4.7.6</Version>
2929
<Copyright>Lior Banai © 2019-2020</Copyright>
3030
<Product>Analogy Log Viewer</Product>
3131
<PackageReleaseNotes></PackageReleaseNotes>
@@ -130,7 +130,7 @@
130130
<PrivateAssets>all</PrivateAssets>
131131
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
132132
</PackageReference>
133-
<PackageReference Include="Analogy.LogViewer.gRPC" Version="1.7.5">
133+
<PackageReference Include="Analogy.LogViewer.gRPC" Version="1.7.6">
134134
<PrivateAssets>all</PrivateAssets>
135135
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
136136
</PackageReference>

Analogy/CommonChangeLog.cs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public static IEnumerable<AnalogyChangeLog> GetChangeLog()
1111
{
1212
return new List<AnalogyChangeLog>
1313
{
14+
new AnalogyChangeLog("V4.7.6 - Update Analogy.LogViewer.gRPC - remove hard-coded port 6000",AnalogChangeLogType.Bug,"Lior Banai",new DateTime(2021,09,01)),
1415
new AnalogyChangeLog("V4.7.5 - [Plotting] Allow to set default window size #1092",AnalogChangeLogType.Improvement,"Lior Banai",new DateTime(2021,08,07)),
1516
new AnalogyChangeLog("V4.7.5 - [DevExpress] Upgrade version to V21.1.5 #1091",AnalogChangeLogType.Improvement,"Lior Banai",new DateTime(2021,08,07)),
1617
new AnalogyChangeLog("V4.7.5 - [Plotting] Add Generic column plotter #1053",AnalogChangeLogType.Improvement,"Lior Banai",new DateTime(2021,08,07)),

Analogy/FilterCriteriaObject.cs

+8-24
Original file line numberDiff line numberDiff line change
@@ -140,23 +140,12 @@ public string GetSqlExpression(bool orLogLevel)
140140
var split = text.Split(new[] { '&', '+' }, StringSplitOptions.RemoveEmptyEntries).ToList();
141141
excludedTexts = split.Select(itm => itm.Trim()).ToList();
142142
}
143-
if (UserSettingsManager.UserSettings.SearchAlsoInSourceAndModule)
144-
{
145-
sqlString.Append("((");
146-
}
147-
else
148-
{
149-
sqlString.Append("(");
150-
}
151143

152-
if (orOperationInInclude)
153-
{
154-
sqlString.Append(string.Join(" Or ", includeTexts.Select(t => $" Text like '%{t}%'")));
155-
}
156-
else
157-
{
158-
sqlString.Append(string.Join(" and ", includeTexts.Select(t => $" Text like '%{t}%'")));
159-
}
144+
sqlString.Append(UserSettingsManager.UserSettings.SearchAlsoInSourceAndModule ? "((" : "(");
145+
146+
sqlString.Append(orOperationInInclude
147+
? string.Join(" Or ", includeTexts.Select(t => $" Text like '%{t}%'"))
148+
: string.Join(" and ", includeTexts.Select(t => $" Text like '%{t}%'")));
160149

161150
sqlString.Append(")");
162151

@@ -191,14 +180,9 @@ public string GetSqlExpression(bool orLogLevel)
191180
if (excludedTexts.Any())
192181
{
193182
sqlString.Append(" and (");
194-
if (orOperationInexclude)
195-
{
196-
sqlString.Append(string.Join(" and ", excludedTexts.Select(t => $" NOT Text like '%{t}%'")));
197-
}
198-
else
199-
{
200-
sqlString.Append(string.Join(" Or ", excludedTexts.Select(t => $" NOT Text like '%{t}%'")));
201-
}
183+
sqlString.Append(orOperationInexclude
184+
? string.Join(" and ", excludedTexts.Select(t => $" NOT Text like '%{t}%'"))
185+
: string.Join(" Or ", excludedTexts.Select(t => $" NOT Text like '%{t}%'")));
202186

203187
sqlString.Append(")");
204188
}

Analogy/UserControls/UCLogs.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1785,7 +1785,7 @@ private void FilterResults()
17851785
_filterCriteria.OlderThan = ceOlderThanFilter.Checked ? deOlderThanFilter.DateTime : DateTime.MaxValue;
17861786
_filterCriteria.TextInclude = ceIncludeText.Checked ? (txtbInclude.Text == null ? string.Empty : txtbInclude.Text.Trim()) : string.Empty;
17871787
_filterCriteria.TextExclude = ceExcludeText.Checked
1788-
? (txtbExclude.Text == null ? string.Empty : txtbExclude.Text.Trim()) + "|" + string.Join("|", _excludeMostCommon)
1788+
? (txtbExclude.Text == null ? string.Empty : txtbExclude.Text.Trim()) + string.Join("|", _excludeMostCommon)
17891789
: string.Empty;
17901790

17911791
Settings.IncludeText = Settings.SaveSearchFilters && txtbInclude.Text != null ? txtbInclude.Text : string.Empty;

0 commit comments

Comments
 (0)