Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release: 8.4.0 #2006

Merged
merged 66 commits into from
Nov 29, 2024
Merged
Changes from 1 commit
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
2a516bf
add changelog
JFriel Sep 25, 2024
53596b0
Bugfix/rdmp 253 filter ordering (#2007)
JFriel Sep 26, 2024
bfdc644
update insert
JFriel Oct 8, 2024
c2ce5d3
Merge branch 'develop' of https://github.com/HicServices/RDMP into re…
JFriel Oct 10, 2024
ca5a0b7
tidy up
JFriel Oct 10, 2024
e27fd8e
interim
JFriel Oct 11, 2024
ece04aa
style updates
JFriel Oct 11, 2024
d1bcf49
add some info
JFriel Oct 11, 2024
0506490
start of where clause
JFriel Oct 16, 2024
34457ba
improved
JFriel Oct 16, 2024
6475d5e
improved dates
JFriel Oct 16, 2024
5ce3057
improve bookends
JFriel Oct 17, 2024
6edf05b
Merge branch 'develop' of https://github.com/HicServices/RDMP into re…
JFriel Oct 22, 2024
80b03e7
Merge branch 'develop' of https://github.com/HicServices/RDMP into re…
JFriel Oct 24, 2024
7e86428
Merge branch 'release/8.4.0' of https://github.com/HicServices/RDMP i…
JFriel Oct 24, 2024
2bf9ceb
add changelog
JFriel Oct 24, 2024
d8201c5
update changelog
JFriel Oct 24, 2024
b0f3388
Merge branch 'develop' of https://github.com/HicServices/RDMP into sp…
JFriel Oct 28, 2024
cb41028
improve ui with frequency
JFriel Oct 28, 2024
9885dc9
tidy up for tests
JFriel Oct 28, 2024
656cb6c
add summary
JFriel Oct 28, 2024
1bd3e4e
rename chart
JFriel Oct 29, 2024
40dd02e
interim people
JFriel Oct 29, 2024
ffcf62b
add people label
JFriel Oct 29, 2024
80518c4
better where
JFriel Oct 29, 2024
08b2ca1
move items around
JFriel Oct 29, 2024
4fe2f66
fix up tests
JFriel Oct 29, 2024
fdd9e28
tidy up code
JFriel Oct 30, 2024
c8f89d0
tidy up
JFriel Oct 30, 2024
f005f08
made db independant
JFriel Oct 30, 2024
298739e
Merge branch 'release/8.4.0' of https://github.com/HicServices/RDMP i…
JFriel Oct 30, 2024
f40ea83
add changelog
JFriel Oct 30, 2024
23cd4c1
Merge branch 'develop' of https://github.com/HicServices/RDMP into re…
JFriel Oct 30, 2024
65792a7
add missing file
JFriel Oct 30, 2024
65c2f42
Merge pull request #2022 from HicServices/bugfix/RDMP-256-migrate-com…
rdteviotdale Nov 6, 2024
7f4223d
Bugfix/rdmp 259 delta load off by one issue (#2024)
JFriel Nov 6, 2024
dbdb2b1
check for multi-server query
JFriel Nov 8, 2024
61f6fa0
Merge branch 'develop' of https://github.com/HicServices/RDMP into bu…
JFriel Nov 11, 2024
1d793fe
Merge branch 'release/8.4.0' of https://github.com/HicServices/RDMP i…
JFriel Nov 11, 2024
c73f595
update changelog
JFriel Nov 11, 2024
9e461f7
update changelog
JFriel Nov 11, 2024
6687ab1
Merge branch 'develop' of https://github.com/HicServices/RDMP into re…
JFriel Nov 11, 2024
f146d9a
Merge pull request #2059 from HicServices/bugfix/RDMP-266-multi-db-joins
rdteviotdale Nov 11, 2024
0779ce3
Add override for RAW table date column in delta loads (#2052)
JFriel Nov 12, 2024
a81d859
update deps
JFriel Nov 19, 2024
7bd6a33
add safe ref
JFriel Nov 19, 2024
a408e8c
Merge branch 'develop' into release/8.4.0
jas88 Nov 23, 2024
145600c
Merge branch 'release/8.4.0' into spike/overview-generation
JFriel Nov 25, 2024
1ab119a
interim
JFriel Nov 25, 2024
87ff689
Merge pull request #2050 from HicServices/spike/overview-generation
rdteviotdale Nov 25, 2024
cdd92f5
working check
JFriel Nov 26, 2024
644df6e
tidy up
JFriel Nov 26, 2024
224667a
Merge branch 'release/8.4.0' of https://github.com/HicServices/RDMP i…
JFriel Nov 26, 2024
8609d65
add changelog
JFriel Nov 26, 2024
d8f5576
fix typos
JFriel Nov 26, 2024
ff96edf
update typo
JFriel Nov 26, 2024
a36338f
fix typos
JFriel Nov 26, 2024
53609ab
fix typos
JFriel Nov 26, 2024
9bdb337
Merge pull request #2075 from HicServices/task/RDMP-267-depricate-on-…
bpeacock001 Nov 26, 2024
fcaef71
Changes made to popup buttons (#2076)
JBaird00183 Nov 27, 2024
090097e
Task/rdmp 32 regex redaction (#2009)
JFriel Nov 27, 2024
a7f0471
codeql updates
JFriel Nov 27, 2024
be9abf1
update client xml
JFriel Nov 27, 2024
70cd5a5
Merge pull request #2077 from HicServices/task/minor-codeql-updates
bpeacock001 Nov 27, 2024
ee270e1
code ql updates
JFriel Nov 29, 2024
a21a256
Merge branch 'develop' into release/8.4.0
JFriel Nov 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Bugfix/rdmp 259 delta load off by one issue (#2024)
* fix off by one issue

* update tests

* update changelog
JFriel authored Nov 6, 2024
commit 7f4223d49e269b13bd3ff18d3c302ec21fbc15e6
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [8.4.0] - Unreleased

- Add Ordering to Filters
- Fix Delta Load off by one issue
- Update Migration strategy to account for all Primary Keys when moving from staging -> live

## [8.3.1] - 2024-10-22
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ public void TestRemoteAttacherParameter(AttacherHistoricalDurations duration, st
RemoteTableDateColumn = "date"
};
var lmd = new LoadMetadata();
Assert.That(attacher.SqlHistoricalDataFilter(lmd, DatabaseType.MicrosoftSQLServer), Is.EqualTo($" WHERE CAST(date as Date) >= DATEADD({convertTime}, -1, GETDATE())"));
Assert.That(attacher.SqlHistoricalDataFilter(lmd, DatabaseType.MicrosoftSQLServer), Is.EqualTo($" WHERE CAST(date as Date) > DATEADD({convertTime}, -1, GETDATE())"));
}
[Test]
public void TestRemoteAttacherParameterSinceLastUse()
@@ -42,7 +42,7 @@ public void TestRemoteAttacherParameterSinceLastUse()
{
LastLoadTime = DateTime.Now
};
Assert.That(attacher.SqlHistoricalDataFilter(lmd, DatabaseType.MicrosoftSQLServer), Is.EqualTo($" WHERE CAST(date as Date) >= convert(Date,'{lmd.LastLoadTime.GetValueOrDefault():yyyy-MM-dd HH:mm:ss.fff}')"));
Assert.That(attacher.SqlHistoricalDataFilter(lmd, DatabaseType.MicrosoftSQLServer), Is.EqualTo($" WHERE CAST(date as Date) > convert(Date,'{lmd.LastLoadTime.GetValueOrDefault():yyyy-MM-dd HH:mm:ss.fff}')"));
}
[Test]
public void TestRemoteAttacherParameterSinceLastUse_NULL()
@@ -130,7 +130,7 @@ public void TestRemoteAttacherParameterDeltaReading()
{
LastLoadTime = DateTime.Now
};
Assert.That(attacher.SqlHistoricalDataFilter(lmd, DatabaseType.MicrosoftSQLServer), Is.EqualTo($" WHERE CAST(date as Date) >= convert(Date,'{attacher.DeltaReadingStartDate.AddDays(-attacher.DeltaReadingLookBackDays):yyyy-MM-dd HH:mm:ss.fff}') AND CAST(date as Date) <= convert(Date,'{attacher.DeltaReadingStartDate.AddDays(attacher.DeltaReadingLookForwardDays):yyyy-MM-dd HH:mm:ss.fff}')"));
Assert.That(attacher.SqlHistoricalDataFilter(lmd, DatabaseType.MicrosoftSQLServer), Is.EqualTo($" WHERE CAST(date as Date) >= convert(Date,'{attacher.DeltaReadingStartDate.AddDays(-attacher.DeltaReadingLookBackDays):yyyy-MM-dd HH:mm:ss.fff}') AND CAST(date as Date) < convert(Date,'{attacher.DeltaReadingStartDate.AddDays(attacher.DeltaReadingLookForwardDays):yyyy-MM-dd HH:mm:ss.fff}')"));
}
[Test]
public void TestRemoteAttacherParameterDeltaReading_NoLookBack()
@@ -146,7 +146,7 @@ public void TestRemoteAttacherParameterDeltaReading_NoLookBack()
{
LastLoadTime = DateTime.Now
};
Assert.That(attacher.SqlHistoricalDataFilter(lmd, DatabaseType.MicrosoftSQLServer), Is.EqualTo($" WHERE CAST(date as Date) >= convert(Date,'{attacher.DeltaReadingStartDate:yyyy-MM-dd HH:mm:ss.fff}') AND CAST(date as Date) <= convert(Date,'{attacher.DeltaReadingStartDate.AddDays(attacher.DeltaReadingLookForwardDays):yyyy-MM-dd HH:mm:ss.fff}')"));
Assert.That(attacher.SqlHistoricalDataFilter(lmd, DatabaseType.MicrosoftSQLServer), Is.EqualTo($" WHERE CAST(date as Date) >= convert(Date,'{attacher.DeltaReadingStartDate:yyyy-MM-dd HH:mm:ss.fff}') AND CAST(date as Date) < convert(Date,'{attacher.DeltaReadingStartDate.AddDays(attacher.DeltaReadingLookForwardDays):yyyy-MM-dd HH:mm:ss.fff}')"));
}
[Test]
public void TestRemoteAttacherParameterDeltaReading_NoLookForward()
@@ -162,7 +162,7 @@ public void TestRemoteAttacherParameterDeltaReading_NoLookForward()
{
LastLoadTime = DateTime.Now
};
Assert.That(attacher.SqlHistoricalDataFilter(lmd, DatabaseType.MicrosoftSQLServer), Is.EqualTo($" WHERE CAST(date as Date) >= convert(Date,'{attacher.DeltaReadingStartDate.AddDays(-attacher.DeltaReadingLookBackDays):yyyy-MM-dd HH:mm:ss.fff}') AND CAST(date as Date) <= convert(Date,'{attacher.DeltaReadingStartDate:yyyy-MM-dd HH:mm:ss.fff}')"));
Assert.That(attacher.SqlHistoricalDataFilter(lmd, DatabaseType.MicrosoftSQLServer), Is.EqualTo($" WHERE CAST(date as Date) >= convert(Date,'{attacher.DeltaReadingStartDate.AddDays(-attacher.DeltaReadingLookBackDays):yyyy-MM-dd HH:mm:ss.fff}') AND CAST(date as Date) < convert(Date,'{attacher.DeltaReadingStartDate:yyyy-MM-dd HH:mm:ss.fff}')"));
}
[Test]
public void TestRemoteAttacherParameterDeltaReadingNoDates()
12 changes: 6 additions & 6 deletions Rdmp.Core/DataLoad/Modules/Attachers/RemoteAttacher.cs
Original file line number Diff line number Diff line change
@@ -100,15 +100,15 @@ public string SqlHistoricalDataFilter(ILoadMetadata loadMetadata, DatabaseType d
switch (HistoricalFetchDuration)
{
case AttacherHistoricalDurations.Past24Hours:
return $" WHERE CAST({RemoteTableDateColumn} as {dateConvert}) >= {GetCorrectDateAddForDatabaseType(dbType, "DAY", "-1")}";
return $" WHERE CAST({RemoteTableDateColumn} as {dateConvert}) > {GetCorrectDateAddForDatabaseType(dbType, "DAY", "-1")}";
case AttacherHistoricalDurations.Past7Days:
return $" WHERE CAST({RemoteTableDateColumn} as {dateConvert}) >= {GetCorrectDateAddForDatabaseType(dbType, "WEEK", "-1")}";
return $" WHERE CAST({RemoteTableDateColumn} as {dateConvert}) > {GetCorrectDateAddForDatabaseType(dbType, "WEEK", "-1")}";
case AttacherHistoricalDurations.PastMonth:
return $" WHERE CAST({RemoteTableDateColumn} as {dateConvert}) >= {GetCorrectDateAddForDatabaseType(dbType, "MONTH", "-1")}";
return $" WHERE CAST({RemoteTableDateColumn} as {dateConvert}) > {GetCorrectDateAddForDatabaseType(dbType, "MONTH", "-1")}";
case AttacherHistoricalDurations.PastYear:
return $" WHERE CAST({RemoteTableDateColumn} as {dateConvert}) >= {GetCorrectDateAddForDatabaseType(dbType, "YEAR", "-1")}";
return $" WHERE CAST({RemoteTableDateColumn} as {dateConvert}) > {GetCorrectDateAddForDatabaseType(dbType, "YEAR", "-1")}";
case AttacherHistoricalDurations.SinceLastUse:
return loadMetadata.LastLoadTime is not null ? $" WHERE CAST({RemoteTableDateColumn} as {dateConvert}) >= {ConvertDateString(dbType, loadMetadata.LastLoadTime.GetValueOrDefault().ToString(RemoteTableDateFormat))}" : "";
return loadMetadata.LastLoadTime is not null ? $" WHERE CAST({RemoteTableDateColumn} as {dateConvert}) > {ConvertDateString(dbType, loadMetadata.LastLoadTime.GetValueOrDefault().ToString(RemoteTableDateFormat))}" : "";
case AttacherHistoricalDurations.Custom:
if (CustomFetchDurationStartDate == DateTime.MinValue && CustomFetchDurationEndDate != DateTime.MinValue)
{
@@ -133,7 +133,7 @@ public string SqlHistoricalDataFilter(ILoadMetadata loadMetadata, DatabaseType d
if (DeltaReadingStartDate == DateTime.MinValue) return "";
var startDate = DeltaReadingStartDate.AddDays(-DeltaReadingLookBackDays);
var endDate = DeltaReadingStartDate.AddDays(DeltaReadingLookForwardDays);
return $" WHERE CAST({RemoteTableDateColumn} as {dateConvert}) >= {ConvertDateString(dbType, startDate.ToString(RemoteTableDateFormat))} AND CAST({RemoteTableDateColumn} as {dateConvert}) <= {ConvertDateString(dbType, endDate.ToString(RemoteTableDateFormat))}";
return $" WHERE CAST({RemoteTableDateColumn} as {dateConvert}) >= {ConvertDateString(dbType, startDate.ToString(RemoteTableDateFormat))} AND CAST({RemoteTableDateColumn} as {dateConvert}) < {ConvertDateString(dbType, endDate.ToString(RemoteTableDateFormat))}";
default:
return "";
}
Loading