map cerated date for the get system user requets#2054
Conversation
|
Warning Review limit reached
More reviews will be available in 12 minutes and 37 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthrough
ChangesCreated Timestamp in Request Responses
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/Authentication/Services/RequestSystemUserService.cs (1)
470-482:⚠️ Potential issue | 🟠 Major | ⚡ Quick winPreserve
TimedOutin party-scoped response mappings.Line 470 and Line 507 construct new DTOs but never assign
TimedOut, so timed-out requests can be returned asfalseby default for these two endpoints while other lookup endpoints return the persisted value.Suggested fix
var request = new RequestSystemResponse { Id = find.Id, IntegrationTitle = find.IntegrationTitle, SystemId = find.SystemId, ExternalRef = find.ExternalRef, Rights = find.Rights, AccessPackages = find.AccessPackages, PartyOrgNo = find.PartyOrgNo, Status = find.Status, RedirectUrl = find.RedirectUrl, + TimedOut = find.TimedOut, Created = find.Created }; var request = new AgentRequestSystemResponse { Id = find.Id, IntegrationTitle = find.IntegrationTitle, SystemId = find.SystemId, ExternalRef = find.ExternalRef, AccessPackages = find.AccessPackages, PartyOrgNo = find.PartyOrgNo, Status = find.Status, RedirectUrl = find.RedirectUrl, + TimedOut = find.TimedOut, Created = find.Created };Also applies to: 507-518
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/Authentication/Services/RequestSystemUserService.cs` around lines 470 - 482, The RequestSystemResponse DTO being constructed at the mapping in RequestSystemUserService.cs is missing the TimedOut property assignment, causing timed-out requests to be returned with a default false value instead of preserving the actual persisted value from the find object. Add TimedOut = find.TimedOut to the RequestSystemResponse object initialization to preserve this property. This same issue also exists at another similar DTO construction location around line 507-518, so ensure both RequestSystemResponse mappings are updated with the TimedOut assignment.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@src/Authentication/Services/RequestSystemUserService.cs`:
- Around line 470-482: The RequestSystemResponse DTO being constructed at the
mapping in RequestSystemUserService.cs is missing the TimedOut property
assignment, causing timed-out requests to be returned with a default false value
instead of preserving the actual persisted value from the find object. Add
TimedOut = find.TimedOut to the RequestSystemResponse object initialization to
preserve this property. This same issue also exists at another similar DTO
construction location around line 507-518, so ensure both RequestSystemResponse
mappings are updated with the TimedOut assignment.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: b19d2810-7fb8-4d8a-b3ff-fa4597f78e27
📒 Files selected for processing (4)
src/Authentication/Services/RequestSystemUserService.cssrc/Core/Models/SystemUsers/AgentRequestSystemResponse.cssrc/Core/Models/SystemUsers/RequestSystemResponse.cstest/Altinn.Platform.Authentication.Tests/Controllers/RequestControllerTests.cs
|



Description
Related Issue(s)
Verification
Documentation
Summary by CodeRabbit