Skip to content

Commit 8699bb5

Browse files
committed
Fix build and code review
1 parent 60da395 commit 8699bb5

5 files changed

Lines changed: 9 additions & 8 deletions

File tree

src/Tools/AI Test Toolkit/src/Agent/AgentRunHistory.PageExt.al

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pageextension 149032 "Agent Run History" extends "AIT Run History"
5858
var
5959
AgentTestContextImpl: Codeunit "Agent Test Context Impl.";
6060
begin
61-
AgentTestContextImpl.OpenAgentTaskList(Rec."Agent Task IDs - By Tag");
61+
AgentTestContextImpl.OpenAgentConsumptionOverview(Rec."Agent Task IDs - By Tag");
6262
end;
6363
}
6464
field("Agent Task Count - By Tag"; AgentTaskCountByTag)

src/Tools/AI Test Toolkit/src/Limits/CopilotCredits/AITEvalMonthlyCopilotCred.Codeunit.al

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ codeunit 149039 "AIT Eval Monthly Copilot Cred." implements "AIT Eval Limit Prov
261261

262262
procedure OpenConfigurationPage(Notification: Notification)
263263
begin
264-
OpenConfigurationPage()
264+
OpenConfigurationPage();
265265
end;
266266

267267
[EventSubscriber(ObjectType::Table, Database::"AIT Eval Monthly Copilot Cred.", OnBeforeInsertEvent, '', false, false)]

src/Tools/AI Test Toolkit/src/Limits/CopilotCredits/AITEvalMonthlyCopilotCred.Page.al

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ page 149048 "AIT Eval Monthly Copilot Cred."
285285
AgentSystemPermissions: Codeunit "Agent System Permissions";
286286
begin
287287
CurrentUserIsAgentAdminForCurrentCompany := AgentSystemPermissions.CurrentUserHasCanManageAllAgentsPermission();
288-
CurrentUserIsAgentAdminForAllCompanies := AgentSystemPermissions.CurrentUserHasCanManageAllAgentsInAllCompaniesPermission()
288+
CurrentUserIsAgentAdminForAllCompanies := AgentSystemPermissions.CurrentUserHasCanManageAllAgentsInAllCompaniesPermission();
289289
end;
290290

291291
local procedure LoadCreditLimitSetup()
@@ -338,6 +338,7 @@ page 149048 "AIT Eval Monthly Copilot Cred."
338338
Rec.Reset();
339339
Rec.DeleteAll();
340340
EnvironmentLoadedDataCopilotCreditsConsumed := 0;
341+
CompanyLoadedDataCopilotCreditsConsumed := 0;
341342
PeriodStartDate := EnvironmentLimitRecord.GetPeriodStartDate();
342343

343344
// Load all agent test suites and their credit consumption for the current period into the buffer.
@@ -365,13 +366,13 @@ page 149048 "AIT Eval Monthly Copilot Cred."
365366
SortOrder := 0;
366367
TempAIEvalSuiteUsageBuffer.SetCurrentKey("Environment Consumed");
367368
#pragma warning disable AA0233, AA0181
368-
if AIEvalSuiteUsageBufferTemp.FindLast() then
369+
if TempAIEvalSuiteUsageBuffer.FindLast() then
369370
repeat
370371
SortOrder += 1;
371-
Rec := AIEvalSuiteUsageBufferTemp;
372+
Rec := TempAIEvalSuiteUsageBuffer;
372373
Rec.Index := SortOrder;
373374
Rec.Insert();
374-
until AIEvalSuiteUsageBufferTemp.Next(-1) = 0;
375+
until TempAIEvalSuiteUsageBuffer.Next(-1) = 0;
375376
#pragma warning restore AA0233, AA0181
376377

377378
if Rec.FindFirst() then;

src/Tools/AI Test Toolkit/src/TestSuite/AITTestMethodLines.Page.al

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ page 149034 "AIT Test Method Lines"
106106
{
107107
Editable = false;
108108
Caption = 'Execution';
109-
ToolTip = 'Specifies the average execution of the eval line. The execution is calculated as the percentage of evals that were executed among the total evals (excluding skipped evals).';
109+
ToolTip = 'Specifies the average execution of the eval line. The execution is calculated as the percentage of evals that were executed among the total evals (including skipped evals).';
110110
AutoFormatType = 0;
111111
}
112112
field(TurnsText; TurnsText)

src/Tools/AI Test Toolkit/src/TestSuite/AITTestSuite.Page.al

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ page 149031 "AIT Test Suite"
247247
{
248248
Editable = false;
249249
Caption = 'Execution';
250-
ToolTip = 'Specifies the average execution of the eval suite. The execution is calculated as the percentage of evals that were executed among the total evals (excluding skipped evals).';
250+
ToolTip = 'Specifies the average execution of the eval suite. The execution is calculated as the percentage of evals that were executed among the total evals (including skipped evals).';
251251
AutoFormatType = 0;
252252
}
253253
field("No. of Operations"; Rec."No. of Operations")

0 commit comments

Comments
 (0)