Skip to content

Commit

Permalink
Fixing install issue, resolving warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vjekob authored and waldo1001 committed Sep 20, 2024
1 parent dd31e75 commit 7719a1e
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 31 deletions.
41 changes: 17 additions & 24 deletions BCPerfToolDemos/src/.Install/InstallDemoDataWPT.Codeunit.al
Original file line number Diff line number Diff line change
Expand Up @@ -24,44 +24,37 @@ codeunit 62205 "Install Demo Data WPT"
JustSomeExtendedTable4WPT: Record "Just Some Extended Table 4 WPT";
ObsoleteTableWPT: Record "Obsolete Table WPT";
TableWithObsoleteFieldsWPT: Record "Table With Obsolete Fields WPT";
JobQueueEntry1: Record "Job Queue Entry";
JobQueueEntry2: Record "Job Queue Entry";
JobQueueEntry3: Record "Job Queue Entry";
JobQueueEntry4: Record "Job Queue Entry";
JobQueueEntry5: Record "Job Queue Entry";
JobQueueEntry6: Record "Job Queue Entry";
JobQueueEntry7: Record "Job Queue Entry";
RecId: Recordid;
JobQueueEntry: array[8] of Record "Job Queue Entry";
ScheduleAt: DateTime;
begin
// ScheduleAt := CreateDateTime(CalcDate('<+1D>', today), Time());
ScheduleAt := CreateDateTime(today, Time() + 000500);


if JustSomeTableWPT.IsEmpty then
JobQueueEntry1.ScheduleJobQueueEntryForLater(codeunit::"Install - Big Table WPT", ScheduleAt, '', '');
// JobQueueEntry1.ScheduleJobQueueEntry(codeunit::"Install - Big Table WPT", RecId);
JobQueueEntry[1].ScheduleJobQueueEntryForLater(codeunit::"Install - Big Table WPT", ScheduleAt, '', '');
// JobQueueEntry[1].ScheduleJobQueueEntry(codeunit::"Install - Big Table WPT", RecId);
if JustSomeExtendedTable1WPT.IsEmpty then
JobQueueEntry2.ScheduleJobQueueEntryForLater(codeunit::"Install - Big Ext. Table 1 WPT", ScheduleAt, '', '');
// JobQueueEntry2.ScheduleJobQueueEntry(codeunit::"Install - Big Ext. Table 1 WPT", RecId);
JobQueueEntry[2].ScheduleJobQueueEntryForLater(codeunit::"Install - Big Ext. Table 1 WPT", ScheduleAt, '', '');
// JobQueueEntry[2].ScheduleJobQueueEntry(codeunit::"Install - Big Ext. Table 1 WPT", RecId);
if JustSomeExtendedTable2WPT.IsEmpty then
JobQueueEntry3.ScheduleJobQueueEntryForLater(codeunit::"Install - Big Ext. Table 2 WPT", ScheduleAt, '', '');
// JobQueueEntry3.ScheduleJobQueueEntry(codeunit::"Install - Big Ext. Table 2 WPT", RecId);
JobQueueEntry[3].ScheduleJobQueueEntryForLater(codeunit::"Install - Big Ext. Table 2 WPT", ScheduleAt, '', '');
// JobQueueEntry[3].ScheduleJobQueueEntry(codeunit::"Install - Big Ext. Table 2 WPT", RecId);
if JustSomeExtendedTable3WPT.IsEmpty then
JobQueueEntry4.ScheduleJobQueueEntryForLater(codeunit::"Install - Big Ext. Table 3 WPT", ScheduleAt, '', '');
// JobQueueEntry4.ScheduleJobQueueEntry(codeunit::"Install - Big Ext. Table 3 WPT", RecId);
JobQueueEntry[4].ScheduleJobQueueEntryForLater(codeunit::"Install - Big Ext. Table 3 WPT", ScheduleAt, '', '');
// JobQueueEntry[4].ScheduleJobQueueEntry(codeunit::"Install - Big Ext. Table 3 WPT", RecId);
if JustSomeExtendedTable4WPT.IsEmpty then
JobQueueEntry5.ScheduleJobQueueEntryForLater(codeunit::"Install - Big Ext. Table 4 WPT", ScheduleAt, '', '');
// JobQueueEntry5.ScheduleJobQueueEntry(codeunit::"Install - Big Ext. Table 4 WPT", RecId);
JobQueueEntry[5].ScheduleJobQueueEntryForLater(codeunit::"Install - Big Ext. Table 4 WPT", ScheduleAt, '', '');
// JobQueueEntry[5].ScheduleJobQueueEntry(codeunit::"Install - Big Ext. Table 4 WPT", RecId);
if ObsoleteTableWPT.IsEmpty then
JobQueueEntry6.ScheduleJobQueueEntryForLater(codeunit::"Install - Obsolete Table WPT", ScheduleAt, '', '');
// JobQueueEntry6.ScheduleJobQueueEntry(codeunit::"Install - Obsolete Table WPT", RecId);
JobQueueEntry[6].ScheduleJobQueueEntryForLater(codeunit::"Install - Obsolete Table WPT", ScheduleAt, '', '');
// JobQueueEntry[6].ScheduleJobQueueEntry(codeunit::"Install - Obsolete Table WPT", RecId);
if ObsoleteTableWPT.IsEmpty then
JobQueueEntry6.ScheduleJobQueueEntryForLater(codeunit::"Install - Obsolete Table WPT", ScheduleAt, '', '');
// JobQueueEntry6.ScheduleJobQueueEntry(codeunit::"Install - Obsolete Table WPT", RecId);
JobQueueEntry[7].ScheduleJobQueueEntryForLater(codeunit::"Install - Obsolete Table WPT", ScheduleAt, '', '');
// JobQueueEntry[7].ScheduleJobQueueEntry(codeunit::"Install - Obsolete Table WPT", RecId);
if TableWithObsoleteFieldsWPT.IsEmpty then
JobQueueEntry7.ScheduleJobQueueEntryForLater(Codeunit::"Install - Obsolete Fields WPT", ScheduleAt, '', '');
// JobQueueEntry7.ScheduleJobQueueEntry(Codeunit::"Install - Obsolete Fields WPT", RecId);
JobQueueEntry[8].ScheduleJobQueueEntryForLater(Codeunit::"Install - Obsolete Fields WPT", ScheduleAt, '', '');
// JobQueueEntry[8].ScheduleJobQueueEntry(Codeunit::"Install - Obsolete Fields WPT", RecId);
end;

local procedure EmptyTable()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#pragma warning disable
codeunit 62226 "Demo - Looping Find(Set) WPT" implements "PerfToolCodeunit WPT"
{
#region FindSetAndLoop40
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@ page 62221 "Just Some Colors DynHidden WPT" // Original: page 62210 "Just Some C
end;

var
[InDataSet]
VisibleVar: Boolean;
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma warning disable AA0175
codeunit 62300 "Demo - TriState Locking WPT" implements "PerfToolCodeunit WPT"
{
#region WithLockTable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma warning disable
#pragma warning disable AA0228
codeunit 62276 "Publisher Subs (Big) WPT"
{
[EventSubscriber(ObjectType::Codeunit, codeunit::"Demo - PublishersWithSubs WPT", 'OnAfterDoingSomethingBig', '', false, false)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ codeunit 62212 "AddRetentionAllowedTables WPT"
RetenPolAllowedTables.AddAllowedTable(Database::"Just Some Table WPT", JustSomeTableWPT.FieldNo(DateCreated), 1, enum::"Reten. Pol. Filtering"::Default, enum::"Reten. Pol. Deleting"::Per1000Records, tablefilters);
end;

#pragma warning disable
#pragma warning disable AA0228
local procedure CreateRetentionPolicy(TableId: Integer; DateFieldNo: Integer)
var
RetentionPolicySetup: Record "Retention Policy Setup";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma warning disable
#pragma warning disable AA0136
codeunit 62296 "DataTransfer Upgrade WPT"
{
Subtype = Upgrade;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma warning disable AS0099, AS0098
enumextension 62203 "BCPTTestParamEnum Ext WPT" extends "BCPT Test Param. Enum"
{
value(60217; "60217")
value(62201; "62201")
{
Implementation = "BCPT Test Param. Provider" = "BCPTScen - ModifyAll WPT";
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma warning disable
#pragma warning disable AA0206, AA0137, AA0242, AA0175, AA0210

codeunit 62249 "Demo - Debugger WPT" implements "PerfToolCodeunit WPT"
{
Expand Down

0 comments on commit 7719a1e

Please sign in to comment.