Release v1.0.0 #16

Merged
Wesser merged 492 commits from release/v1.0.0 into master 2025-02-12 09:19:32 +03:00
302 changed files with 15818 additions and 99 deletions
Showing only changes of commit 7d6b21c5bb - Show all commits
.editorconfig.env
.gitea/workflows
.gitignore
ApiDto
Backend.slnDockerfile
Endpoint
Backend.http
Common
Configuration
Controllers
Endpoint.csprojProgram.cs
Sync
WeatherForecast.cs
wwwroot
css
README.md
Security
SqlData
Application
Application.csproj
Common
Cqrs
Campus
Discipline
Faculty
Group
LectureHall
Professor
Schedule
TypeOfOccupation
DependencyInjection.cs
Interfaces
Domain
Migrations
Persistence
nuget.config

@ -46,7 +46,7 @@ public class ScheduleController(ILogger<ScheduleController> logger, IOptionsSnap
/// <returns>Cron expression and the list of next scheduled task dates.</returns> /// <returns>Cron expression and the list of next scheduled task dates.</returns>
/// <exception cref="ControllerArgumentException">Thrown if the provided cron expression is invalid.</exception> /// <exception cref="ControllerArgumentException">Thrown if the provided cron expression is invalid.</exception>
[HttpPost("CronUpdateSchedule")] [HttpPost("CronUpdateSchedule")]
public ActionResult<CronUpdateScheduleResponse> CronUpdateSchedule([FromBody] string cron) public ActionResult<CronUpdateScheduleResponse> CronUpdateSchedule([FromQuery] string cron)
{ {
cron = cron.Trim(); cron = cron.Trim();
if (!CronExpression.TryParse(cron, CronFormat.Standard, out _)) if (!CronExpression.TryParse(cron, CronFormat.Standard, out _))
@ -77,7 +77,7 @@ public class ScheduleController(ILogger<ScheduleController> logger, IOptionsSnap
/// <returns>Success or failure.</returns> /// <returns>Success or failure.</returns>
/// <exception cref="ControllerArgumentException">Thrown if the start term date is more than 6 months in the past or future.</exception> /// <exception cref="ControllerArgumentException">Thrown if the start term date is more than 6 months in the past or future.</exception>
[HttpPost("StartTerm")] [HttpPost("StartTerm")]
public ActionResult StartTerm([FromBody] DateOnly startTerm, [FromQuery] bool force = false) public ActionResult StartTerm([FromQuery] DateOnly startTerm, [FromQuery] bool force = false)
{ {
var differentByTime = DateTime.Now - startTerm.ToDateTime(new TimeOnly(0, 0, 0)); var differentByTime = DateTime.Now - startTerm.ToDateTime(new TimeOnly(0, 0, 0));
if (differentByTime > TimeSpan.FromDays(190) || differentByTime.Multiply(-1) > TimeSpan.FromDays(190)) if (differentByTime > TimeSpan.FromDays(190) || differentByTime.Multiply(-1) > TimeSpan.FromDays(190))