-
-
Notifications
You must be signed in to change notification settings - Fork 85
RG-T127 Hardware Tracker support TCP and UDP #439
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| using System; | ||
| using System.Threading; | ||
| using System.Threading.Tasks; | ||
|
|
||
| namespace Resgrid.Model.Repositories | ||
| { | ||
| public interface IUnitLocationRetentionRepository | ||
| { | ||
| Task<int> DeleteHardwareLocationsBeforeAsync( | ||
| int departmentId, | ||
| DateTime cutoffUtc, | ||
| int batchSize, | ||
| CancellationToken cancellationToken = default); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| using System.Collections.Generic; | ||
| using System.Threading; | ||
| using System.Threading.Tasks; | ||
|
|
||
|
|
@@ -30,5 +31,12 @@ Task NotifyLaneLeadChangedAsync(int departmentId, int callId, string laneName, b | |
|
|
||
| /// <summary>Notifies every active user and unit on the incident (plus both commanders) that command was transferred.</summary> | ||
| Task NotifyCommandTransferredAsync(IncidentCommand command, string fromUserId, string toUserId, CancellationToken cancellationToken = default(CancellationToken)); | ||
|
|
||
| /// <summary> | ||
| /// Sends a free-form message from a department member directly to specific command users (e.g. the | ||
| /// incident commander and deputies). The sender's display name is prepended to the body so recipients | ||
| /// know who it came from on every channel. | ||
| /// </summary> | ||
| Task SendMessageToCommandAsync(int departmentId, string senderUserId, string title, string body, IEnumerable<string> recipientUserIds, CancellationToken cancellationToken = default(CancellationToken)); | ||
|
Comment on lines
+34
to
+40
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win Honor the new cancellation token. The implementation in 🤖 Prompt for AI Agents🩺 Stability & Availability | 🟠 Major | ⚡ Quick win Keep sender resolution inside the best-effort error boundary. In 🤖 Prompt for AI Agents |
||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ public interface IPushService | |
| Task<bool> UnRegister(PushUri pushUri); | ||
| void UnRegisterNotificationOnly(PushUri pushUri); | ||
| Task<bool> PushNotification(StandardPushMessage message, string userId, UserProfile profile = null); | ||
| Task<bool> PushICNotification(StandardPushMessage message, string userId, UserProfile profile = null); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win Use the required
As per coding guidelines, service methods must be async and follow the 📍 Affects 3 files
🤖 Prompt for AI AgentsSource: Coding guidelines |
||
| Task<bool> RegisterUnit(PushUri pushUri); | ||
| Task<bool> UnRegisterUnit(PushUri pushUri); | ||
| Task<bool> PushChat(StandardPushMessage message, string userId, UserProfile profile = null); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: Resgrid/Core
Length of output: 150
🏁 Script executed:
Repository: Resgrid/Core
Length of output: 50368
🏁 Script executed:
Repository: Resgrid/Core
Length of output: 4319
🏁 Script executed:
Repository: Resgrid/Core
Length of output: 202
🏁 Script executed:
Repository: Resgrid/Core
Length of output: 29062
Add
SourcetoPushUri.IgnoredProperties.Sourceis[NotMapped]and transient, but the generic insert/update helpers useIgnoredPropertiesto dropIEntitytransient fields. Add"Source"to keep generic persistence in sync while retaining its protobuf field.🤖 Prompt for AI Agents