Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

[#51] Tables getting bulkier with time #56

Merged
merged 29 commits into from
Dec 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
13df032
Error on obsolete fields added
Bertverbeek4PS May 10, 2022
6596865
Added obsolete State Field
Bertverbeek4PS May 10, 2022
634077b
Only obsolete removed fields cannot be exported
Bertverbeek4PS May 10, 2022
024b58d
Added obsolete field help text
Bertverbeek4PS May 16, 2022
a64966e
Merge branch 'microsoft:main' into main
Bertverbeek4PS May 31, 2022
f56a282
Merge branch 'main' of https://github.com/Bertverbeek4PS/bc2adls
Bertverbeek4PS Jun 27, 2022
2ac2902
Added API page
Bertverbeek4PS Jun 27, 2022
37aa933
Reset for all selected tables
Bertverbeek4PS Jul 7, 2022
2a4852a
Option to refresh the tablefields.
Bertverbeek4PS Jul 11, 2022
aca2976
Removed commit Option to refresh the tablefields.
Bertverbeek4PS Sep 19, 2022
12709d7
Removed commit Reset for all selected tables
Bertverbeek4PS Sep 19, 2022
c43b8cd
Seperate into two API pages
Bertverbeek4PS Sep 21, 2022
97e7546
Merge branch 'microsoft:main' into main
Bertverbeek4PS Oct 12, 2022
7294125
Added fields enabled and multi-company export
Bertverbeek4PS Oct 12, 2022
1edd446
Merge branch 'main' of https://github.com/Bertverbeek4PS/bc2adls
Bertverbeek4PS Oct 28, 2022
0e661b3
Added two tables to retention policy
Bertverbeek4PS Nov 1, 2022
07c444a
Removed api pages from other pull request
Bertverbeek4PS Nov 1, 2022
7609bd3
Fixed comments
Bertverbeek4PS Nov 2, 2022
ab37684
Changed file names
Bertverbeek4PS Nov 2, 2022
87f6059
Small fixes after comments
Bertverbeek4PS Nov 2, 2022
65bbfba
Few changes after comments
Bertverbeek4PS Nov 25, 2022
8a8ea7c
Merge branch 'main' of https://github.com/Bertverbeek4PS/bc2adls into…
Bertverbeek4PS Nov 28, 2022
0ea00c9
Merge branch 'RetentionPolicy' of https://github.com/Bertverbeek4PS/b…
Bertverbeek4PS Dec 5, 2022
364878f
Small change after rebranche
Bertverbeek4PS Dec 5, 2022
feab8bf
Incremented version
Bertverbeek4PS Dec 5, 2022
4db8533
Version fix and unused variables removed
Bertverbeek4PS Dec 7, 2022
0e8d133
Added event OnAfterInitializeCompany
Bertverbeek4PS Dec 7, 2022
f5a3abf
Merge branch 'main' of https://github.com/microsoft/bc2adls into Rete…
Bertverbeek4PS Dec 9, 2022
7dfc21f
Merge branch main
Bertverbeek4PS Dec 9, 2022
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ More details:

Pull request | Changes
--------------- | ---
[56](https://github.com/microsoft/bc2adls/pull/56) | The table ADLSE Run has now been added to the retention policy so that the logs for the executions can be cleared periodically, thus taking up less space in the database.
[55](https://github.com/microsoft/bc2adls/pull/55) | A much awaited request to allow the BC extension to read from the replica database saves up resources that can otherwise be dedicated to normal ERP operations, has now been implemented. This change is dependent on the version 21 of the application.
[59](https://github.com/microsoft/bc2adls/pull/59) | The default rounding principles caused the consolidated data to have a maximum of two decimal places even though the data in the `deltas` may have had higher decimal precision. Added an applied trait to all decimal fields so that they account for up to 5 decimal places.
[54](https://github.com/microsoft/bc2adls/pull/54) | Fixes irregularities on the System Audit fields. (1) Very old records do not appear in the lake sometimes because the `SystemCreatedAt` field is set to null. This field is now artificaly initialized to a date so that it appears in the lake, and (2) The `SystemID` field may be repeated over different records belonging to different companies in the same table. Thus, the uniqueness contraint has been fixed.
Expand Down
4 changes: 2 additions & 2 deletions businessCentral/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"publisher": "The bc2adls team, Microsoft Denmark",
"brief": "Sync data from Business Central to the Azure storage",
"description": "Exports data in chosen tables to the Azure Data Lake and keeps it in sync by incremental updates. Before you use this tool, please read the SUPPORT.md file at https://github.com/microsoft/bc2adls.",
"version": "1.3.2.2",
"version": "1.3.2.3",
"privacyStatement": "https://go.microsoft.com/fwlink/?LinkId=724009",
"EULA": "https://go.microsoft.com/fwlink/?linkid=2009120",
"help": "https://go.microsoft.com/fwlink/?LinkId=724011",
Expand All @@ -24,7 +24,7 @@
"idRanges": [
{
"from": 82560,
"to": 82570
"to": 82572
}
],
"target": "Cloud",
Expand Down
2 changes: 2 additions & 0 deletions businessCentral/src/ADLSEExecution.Codeunit.al
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ codeunit 82569 "ADLSE Execution"
ADLSESetup: Codeunit "ADLSE Setup";
ADLSECommunication: Codeunit "ADLSE Communication";
ADLSESessionManager: Codeunit "ADLSE Session Manager";
ADLSEExecution: Codeunit "ADLSE Execution";
Counter: Integer;
Started: Integer;
begin
ADLSESetup.CheckSetup(ADLSESetupRec);
EmitTelemetry := ADLSESetupRec."Emit telemetry";
ADLSECurrentSession.CleanupSessions();
ADLSEExecution.ClearTrackedDeletedRecords();
ADLSECommunication.SetupBlobStorage();
ADLSESessionManager.Init();

Expand Down
18 changes: 18 additions & 0 deletions businessCentral/src/ADLSEInstaller.codeunit.al
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
codeunit 82571 "ADLSE Installer"
{
Subtype = Install;
Access = Internal;

trigger OnInstallAppPerCompany()
begin
AddAllowedTables();
end;

procedure AddAllowedTables()
var
RetenPolAllowedTables: Codeunit "Reten. Pol. Allowed Tables";
ADLSERun: Record "ADLSE Run";
begin
RetenPolAllowedTables.AddAllowedTable(Database::"ADLSE Run", ADLSERun.FieldNo(SystemModifiedAt));
end;
}
21 changes: 21 additions & 0 deletions businessCentral/src/ADLSEUpgrade.Codeunit.al
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
codeunit 82572 "ADLSE Upgrade"
{
Subtype = Upgrade;
Access = Internal;

trigger OnUpgradePerCompany()
var
ADLSEInstaller: Codeunit "ADLSE Installer";
UpgradeTag: Codeunit "Upgrade Tag";
begin
if UpgradeTag.HasUpgradeTag(GetRetenPolLogEntryAddedUpgradeTag()) then
exit;
ADLSEInstaller.AddAllowedTables();
UpgradeTag.SetUpgradeTag(GetRetenPolLogEntryAddedUpgradeTag());
end;

local procedure GetRetenPolLogEntryAddedUpgradeTag(): Code[250]
begin
exit('MS-334067-ADLSERetenPolLogEntryAdded-20221028');
end;
}