mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
[PM-14376] Add GET tasks endpoint (#5089)
* Added CQRS pattern * Added the GetManyByUserIdAsync signature to the repositiory * Added sql sproc Created user defined type to hold status Created migration file * Added ef core query * Added absract and concrete implementation for GetManyByUserIdStatusAsync * Added integration tests * Updated params to status * Implemented new query to utilize repository method * Added controller for the security task endpoint * Fixed lint issues * Added documentation * simplified to require single status modified script to check for users with edit rights * Updated ef core query * Added new assertions * simplified to require single status * fixed formatting * Fixed sql script * Removed default null * Added security tasks feature flag
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Bit.Core.Vault.Entities;
|
||||
|
||||
namespace Bit.Infrastructure.IntegrationTest.Comparers;
|
||||
|
||||
/// <summary>
|
||||
/// Determines the equality of two SecurityTask objects.
|
||||
/// </summary>
|
||||
public class SecurityTaskComparer : IEqualityComparer<SecurityTask>
|
||||
{
|
||||
public bool Equals(SecurityTask x, SecurityTask y)
|
||||
{
|
||||
return x.Id.Equals(y.Id) &&
|
||||
x.Type.Equals(y.Type) &&
|
||||
x.Status.Equals(y.Status);
|
||||
}
|
||||
|
||||
public int GetHashCode([DisallowNull] SecurityTask obj)
|
||||
{
|
||||
return base.GetHashCode();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user