-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove duplicated items by bad merge * add security tier * change pass move token controller, change tokencontroller to authcontroller * Corrige Bug al gueardar seeds * Backend CheckLists * Backend Signatures, Report COnfiguration repository, queires checklist, domain events * Uploads service & Storage helper class, paths on settings * solve typo in Shared proyect reference * Fix Bug Querying CheckLists * Ignore some local files * Optional items in query * update dev branch (#21) * Pipelines Build & Deploy test (#20) * remove duplicated items by bad merge * add security tier * change pass move token controller, change tokencontroller to authcontroller * Corrige Bug al gueardar seeds * Backend CheckLists * Backend Signatures, Report COnfiguration repository, queires checklist, domain events * Uploads service & Storage helper class, paths on settings * solve typo in Shared proyect reference * Fix Bug Querying CheckLists * Ignore some local files * Optional items in query * update pipeline f * fix publish route * Update dotnet-core.yml * build path * Add test url to readme * add demo credentials * Solves Signature add and update bug * simplify api routes * Quering and DTO mappin for signatures * Backend Reports Configurations * Backend Reports Config * preparing project to deploy * updates composition api package version * change to npm * disable husky * binds to 0.0.0.0 * Update dotnet-core.yml * delete web.config * dispatch pipelines * solves vuetify failling in Production Stage * upload pending file * review indexjs * updates dev branch from master (#40) * pending file (#37) * remove duplicated items by bad merge * add security tier * change pass move token controller, change tokencontroller to authcontroller * Corrige Bug al gueardar seeds * Backend CheckLists * Backend Signatures, Report COnfiguration repository, queires checklist, domain events * Uploads service & Storage helper class, paths on settings * solve typo in Shared proyect reference * Fix Bug Querying CheckLists * Ignore some local files * Optional items in query * update dev branch (#21) * Pipelines Build & Deploy test (#20) * remove duplicated items by bad merge * add security tier * change pass move token controller, change tokencontroller to authcontroller * Corrige Bug al gueardar seeds * Backend CheckLists * Backend Signatures, Report COnfiguration repository, queires checklist, domain events * Uploads service & Storage helper class, paths on settings * solve typo in Shared proyect reference * Fix Bug Querying CheckLists * Ignore some local files * Optional items in query * update pipeline f * fix publish route * Update dotnet-core.yml * build path * Add test url to readme * add demo credentials * Solves Signature add and update bug * simplify api routes * Quering and DTO mappin for signatures * Backend Reports Configurations * Backend Reports Config * preparing project to deploy * updates composition api package version * change to npm * disable husky * binds to 0.0.0.0 * Update dotnet-core.yml * delete web.config * dispatch pipelines * solves vuetify failling in Production Stage * upload pending file * fix index js * Update package.json * bugs review * Rename Reports Feature * Data Model Adjustmnets for adding support to reports aggregate * Configure Test Seed, add editorconfig, fix queries bugs que null o 0 in totals * adjustments call with jesus * update gitignore, configure containers * Creating new REports based on selected configuration, add new fields to report entity * New Project structure, adds login * Maquetado app macro and menus * Pages titles * Grids Checklist & reports Configs, stores, creates types, Authentication flow complete * remove title * startup poge must reports * Create pending types * Deletes duplicated type * resolve some warnings * Backend Adjustments * New Grids: Signatures, reports, Create new Reports, all grids now can filter, remove, modales, adds messageDialogs * organize login view, adds logo in toolbar * organize code * Include items in checks query * mostrar items de checks * mostrar error al inciar sesion * Solver some bugs creating reports, add advanced filter to checkl;ists and signatures, adds idea for a dashbord with charts and some sorta valuable info * missing packages and delete reports * delete signatures * Configura Forms Validations * AddEdit Signatures * update nuxt version, organize pages folder, change mode to spa * cahnge redirection to options * add edit Checklist & itmes back and UI * componentes for reports editing * reports checks tab * dynamic signatures in report, some stayles changes
- Loading branch information
1 parent
3891345
commit 3413d3e
Showing
70 changed files
with
3,741 additions
and
943 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/Backend/Inspections.API/Features/Checklists/Handlers/DeleteCheckListCommandHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Ardalis.GuardClauses; | ||
using Inspections.API.Features.Checklists.Commands; | ||
using Inspections.API.Features.Checklists.Mapping; | ||
using Inspections.Core.Domain.CheckListAggregate; | ||
using Inspections.Core.Interfaces; | ||
using MediatR; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace Inspections.API.Features.Checklists.Handlers | ||
{ | ||
public class DeleteCheckListCommandHandler : IRequestHandler<DeleteCheckListCommand, bool> | ||
{ | ||
private readonly ICheckListsRepository _checkListsRepository; | ||
|
||
public DeleteCheckListCommandHandler(ICheckListsRepository checkListsRepository) | ||
{ | ||
_checkListsRepository = checkListsRepository ?? throw new ArgumentNullException(nameof(checkListsRepository)); | ||
} | ||
|
||
public async Task<bool> Handle(DeleteCheckListCommand request, CancellationToken cancellationToken) | ||
{ | ||
return true; | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...Backend/Inspections.API/Features/Checklists/Handlers/DeleteCheckListItemCommandHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using Inspections.API.Features.Checklists.Commands; | ||
using Inspections.API.Features.Checklists.Mapping; | ||
using Inspections.API.Features.Checklists.Models; | ||
using Inspections.Core.Domain.CheckListAggregate; | ||
using Inspections.Core.Interfaces; | ||
using MediatR; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace Inspections.API.Features.Checklists.Handlers | ||
{ | ||
public class DeleteCheckListItemCommandHandler : IRequestHandler<DeleteCheckListItemCommand, bool> | ||
{ | ||
private readonly ICheckListsRepository _checkListsRepository; | ||
|
||
public DeleteCheckListItemCommandHandler(ICheckListsRepository checkListsRepository) | ||
{ | ||
_checkListsRepository = checkListsRepository ?? throw new ArgumentNullException(nameof(checkListsRepository)); | ||
} | ||
|
||
public async Task<bool> Handle(DeleteCheckListItemCommand request, CancellationToken cancellationToken) | ||
{ | ||
var item = await _checkListsRepository.GetItemByIdAsync(request!.IdCheckListItem).ConfigureAwait(false); | ||
if (item is null) | ||
return false; | ||
|
||
var checklist = await _checkListsRepository.GetByIdAsync(request.IdCheckList).ConfigureAwait(false); | ||
checklist.RemoveCheckItems(item); | ||
await _checkListsRepository.UpdateAsync(checklist).ConfigureAwait(false); | ||
|
||
return true; | ||
} | ||
|
||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...ackend/Inspections.API/Features/Checklists/Handlers/DeleteCheckListParamCommandHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Ardalis.GuardClauses; | ||
using Inspections.API.Features.Checklists.Commands; | ||
using Inspections.Core.Domain.CheckListAggregate; | ||
using Inspections.Core.Interfaces; | ||
using MediatR; | ||
using Microsoft.AspNetCore.Mvc; | ||
using System; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace Inspections.API.Features.Checklists.Handlers | ||
{ | ||
public class DeleteCheckListParamCommandHandler : IRequestHandler<DeleteCheckListParamCommand, bool> | ||
{ | ||
private readonly ICheckListsRepository _checkListsRepository; | ||
|
||
public DeleteCheckListParamCommandHandler(ICheckListsRepository checkListsRepository) | ||
{ | ||
_checkListsRepository = checkListsRepository ?? throw new ArgumentNullException(nameof(checkListsRepository)); | ||
} | ||
|
||
public async Task<bool> Handle(DeleteCheckListParamCommand request, CancellationToken cancellationToken) | ||
{ | ||
Guard.Against.Null(request, nameof(request)); | ||
|
||
return true; | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
src/Backend/Inspections.API/Features/Checklists/Handlers/UpdateCheckListCommandHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using Ardalis.GuardClauses; | ||
using Inspections.API.Features.Checklists.Commands; | ||
using Inspections.API.Features.Checklists.Mapping; | ||
using Inspections.Core.Domain.CheckListAggregate; | ||
using Inspections.Core.Interfaces; | ||
using MediatR; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace Inspections.API.Features.Checklists.Handlers | ||
{ | ||
public class UpdateCheckListCommandHandler : IRequestHandler<UpdateCheckListCommand, bool> | ||
{ | ||
private readonly ICheckListsRepository _checkListsRepository; | ||
|
||
public UpdateCheckListCommandHandler(ICheckListsRepository checkListsRepository) | ||
{ | ||
_checkListsRepository = checkListsRepository ?? throw new ArgumentNullException(nameof(checkListsRepository)); | ||
} | ||
|
||
public async Task<bool> Handle(UpdateCheckListCommand request, CancellationToken cancellationToken) | ||
{ | ||
Guard.Against.Null(request, nameof(request)); | ||
|
||
var checkList = await _checkListsRepository.GetByIdAsync(request.IdCheckList).ConfigureAwait(false); | ||
checkList.Edit(request.Text, request.Annotation); | ||
await _checkListsRepository.UpdateAsync(checkList).ConfigureAwait(false); | ||
|
||
return true; | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...Backend/Inspections.API/Features/Checklists/Handlers/UpdateCheckListItemCommandHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using Inspections.API.Features.Checklists.Commands; | ||
using Inspections.API.Features.Checklists.Mapping; | ||
using Inspections.API.Features.Checklists.Models; | ||
using Inspections.Core.Domain.CheckListAggregate; | ||
using Inspections.Core.Interfaces; | ||
using MediatR; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace Inspections.API.Features.Checklists.Handlers | ||
{ | ||
public class UpdateCheckListItemCommandHandler : IRequestHandler<UpdateCheckListItemCommand, bool> | ||
{ | ||
private readonly ICheckListsRepository _checkListsRepository; | ||
|
||
public UpdateCheckListItemCommandHandler(ICheckListsRepository checkListsRepository) | ||
{ | ||
_checkListsRepository = checkListsRepository ?? throw new ArgumentNullException(nameof(checkListsRepository)); | ||
} | ||
|
||
public async Task<bool> Handle(UpdateCheckListItemCommand request, CancellationToken cancellationToken) | ||
{ | ||
var checkList = await _checkListsRepository.GetByIdAsync(request.CheckListId).ConfigureAwait(false); | ||
var item = await _checkListsRepository.GetItemByIdAsync(request.Id).ConfigureAwait(false); | ||
|
||
checkList.RemoveCheckItems(item); | ||
item.Checked = request.Checked; | ||
item.Remarks = request.Remarks; | ||
item.Required = request.Required; | ||
item.Text = request.Text; | ||
checkList.AddCheckItems(item); | ||
|
||
await _checkListsRepository.UpdateAsync(checkList).ConfigureAwait(false); | ||
|
||
return true; | ||
} | ||
|
||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...ackend/Inspections.API/Features/Checklists/Handlers/UpdateCheckListParamCommandHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using Ardalis.GuardClauses; | ||
using Inspections.API.Features.Checklists.Commands; | ||
using Inspections.Core.Domain.CheckListAggregate; | ||
using Inspections.Core.Interfaces; | ||
using MediatR; | ||
using Microsoft.AspNetCore.Mvc; | ||
using System; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace Inspections.API.Features.Checklists.Handlers | ||
{ | ||
public class UpdateCheckListParamCommandHandler : IRequestHandler<UpdateCheckListParamCommand, bool> | ||
{ | ||
private readonly ICheckListsRepository _checkListsRepository; | ||
|
||
public UpdateCheckListParamCommandHandler(ICheckListsRepository checkListsRepository) | ||
{ | ||
_checkListsRepository = checkListsRepository ?? throw new ArgumentNullException(nameof(checkListsRepository)); | ||
} | ||
|
||
public async Task<bool> Handle(UpdateCheckListParamCommand request, CancellationToken cancellationToken) | ||
{ | ||
return true; | ||
} | ||
} | ||
} |
12 changes: 0 additions & 12 deletions
12
src/Backend/Inspections.API/Features/Reports/Commands/DeleteReportCommand.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/Backend/Inspections.API/Features/Reports/Handlers/DeleteReportCommandHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Inspections.API.Features.Inspections.Commands; | ||
using Inspections.Core.Interfaces; | ||
using MediatR; | ||
|
||
namespace Inspections.API.Features.Reports.Handlers | ||
{ | ||
public class DeleteReportCommandHandler : IRequestHandler<DeleteReportCommand, bool> | ||
{ | ||
private readonly IReportsRepository _reportsRepository; | ||
|
||
public DeleteReportCommandHandler(IReportsRepository reportsRepository, ISignaturesRepository signaturesRepository, ICheckListsRepository checkListsRepository) | ||
{ | ||
this._reportsRepository = reportsRepository ?? throw new ArgumentNullException(nameof(reportsRepository)); | ||
} | ||
public async Task<bool> Handle(DeleteReportCommand request, CancellationToken cancellationToken) | ||
{ | ||
var report = await _reportsRepository.GetByIdAsync(request.Id).ConfigureAwait(false); | ||
|
||
if (!report.IsClosed) | ||
{ | ||
await _reportsRepository.DeleteAsync(report).ConfigureAwait(false); | ||
return true; | ||
} | ||
|
||
return false; | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.