Conversation
|
Important Review skippedToo many files! This PR contains 110 files, which is 10 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (18)
📒 Files selected for processing (110)
You can disable this status message by setting the 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 |
|
Thanks for opening this, but we'd appreciate a little more information. Could you update it with more details? |
| [Authorize(Policy = ResgridResources.Call_Update)] | ||
| public async Task<IActionResult> EscalateCall(string callId, CancellationToken cancellationToken) | ||
| { | ||
| if (string.IsNullOrWhiteSpace(callId) || !int.TryParse(callId, out var parsedCallId)) |
| [ProducesResponseType(StatusCodes.Status200OK)] | ||
| [ProducesResponseType(StatusCodes.Status400BadRequest)] | ||
| [Authorize(Policy = ResgridResources.Department_Update)] | ||
| public async Task<ActionResult> SaveRunCard([FromBody] RunCardData input, CancellationToken cancellationToken) |
| [Authorize(Policy = ResgridResources.Department_Update)] | ||
| public async Task<ActionResult> SaveRunCard([FromBody] RunCardData input, CancellationToken cancellationToken) | ||
| { | ||
| if (input == null || string.IsNullOrWhiteSpace(input.Name) || input.Triggers == null || !input.Triggers.Any() |
| [Authorize(Policy = ResgridResources.Department_Update)] | ||
| public async Task<ActionResult> SaveRunCard([FromBody] RunCardData input, CancellationToken cancellationToken) | ||
| { | ||
| if (input == null || string.IsNullOrWhiteSpace(input.Name) || input.Triggers == null || !input.Triggers.Any() |
| public async Task<ActionResult> SaveRunCard([FromBody] RunCardData input, CancellationToken cancellationToken) | ||
| { | ||
| if (input == null || string.IsNullOrWhiteSpace(input.Name) || input.Triggers == null || !input.Triggers.Any() | ||
| || input.AlarmLevels == null || !input.AlarmLevels.Any()) |
| [Authorize(Policy = ResgridResources.Department_Update)] | ||
| public async Task<IActionResult> Save([FromBody] RunCardEditInput input, CancellationToken cancellationToken) | ||
| { | ||
| if (input == null) |
| if (string.IsNullOrWhiteSpace(input.Name)) | ||
| return Json(new { success = false, message = "A run card needs a name." }); | ||
|
|
||
| if (input.Triggers == null || !input.Triggers.Any()) |
| if (input.Triggers == null || !input.Triggers.Any()) | ||
| return Json(new { success = false, message = "A run card needs at least one trigger." }); | ||
|
|
||
| if (input.AlarmLevels == null || !input.AlarmLevels.Any()) |
| return Json(new { success = false, message = "A run card needs at least one alarm level." }); | ||
|
|
||
| RunCard card; | ||
| if (input.RunCardId > 0) |
|
|
||
| [HttpPost] | ||
| [Authorize(Policy = ResgridResources.Department_Update)] | ||
| public async Task<IActionResult> Delete([FromForm] int runCardId, CancellationToken cancellationToken) |
No description provided.