-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AC 1526]Show current SM seat and service account usage in Bitwarden …
…Portal (#3142) * changes base on the tickets request * Code refactoring * Removed the unwanted method * Add implementation to the new method * Resolve some pr comments * resolve lint issue * resolve pr comments * add the new noop files * Add new noop file and resolve some pr comments * resolve pr comments * removed unused method
- Loading branch information
1 parent
59bfecd
commit a128454
Showing
12 changed files
with
248 additions
and
21 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
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
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
65 changes: 65 additions & 0 deletions
65
src/Core/SecretsManager/Repositories/Noop/NoopProjectRepository.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,65 @@ | ||
using Bit.Core.Enums; | ||
using Bit.Core.SecretsManager.Entities; | ||
using Bit.Core.SecretsManager.Models.Data; | ||
|
||
namespace Bit.Core.SecretsManager.Repositories.Noop; | ||
|
||
public class NoopProjectRepository : IProjectRepository | ||
{ | ||
public Task<IEnumerable<ProjectPermissionDetails>> GetManyByOrganizationIdAsync(Guid organizationId, Guid userId, | ||
AccessClientType accessType) | ||
{ | ||
return Task.FromResult(null as IEnumerable<ProjectPermissionDetails>); | ||
} | ||
|
||
public Task<IEnumerable<Project>> GetManyByOrganizationIdWriteAccessAsync(Guid organizationId, Guid userId, | ||
AccessClientType accessType) | ||
{ | ||
return Task.FromResult(null as IEnumerable<Project>); | ||
} | ||
|
||
public Task<IEnumerable<Project>> GetManyWithSecretsByIds(IEnumerable<Guid> ids) | ||
{ | ||
return Task.FromResult(null as IEnumerable<Project>); | ||
} | ||
|
||
public Task<Project> GetByIdAsync(Guid id) | ||
{ | ||
return Task.FromResult(null as Project); | ||
} | ||
|
||
public Task<Project> CreateAsync(Project project) | ||
{ | ||
return Task.FromResult(null as Project); | ||
} | ||
|
||
public Task ReplaceAsync(Project project) | ||
{ | ||
return Task.FromResult(0); | ||
} | ||
|
||
public Task DeleteManyByIdAsync(IEnumerable<Guid> ids) | ||
{ | ||
return Task.FromResult(0); | ||
} | ||
|
||
public Task<IEnumerable<Project>> ImportAsync(IEnumerable<Project> projects) | ||
{ | ||
return Task.FromResult(null as IEnumerable<Project>); | ||
} | ||
|
||
public Task<(bool Read, bool Write)> AccessToProjectAsync(Guid id, Guid userId, AccessClientType accessType) | ||
{ | ||
return Task.FromResult((false, false)); | ||
} | ||
|
||
public Task<bool> ProjectsAreInOrganization(List<Guid> projectIds, Guid organizationId) | ||
{ | ||
return Task.FromResult(false); | ||
} | ||
|
||
public Task<int> GetProjectCountByOrganizationIdAsync(Guid organizationId) | ||
{ | ||
return Task.FromResult(0); | ||
} | ||
} |
Oops, something went wrong.