Skip to content

Commit

Permalink
removed secret content related functions
Browse files Browse the repository at this point in the history
  • Loading branch information
babakamyljanovssw committed Nov 11, 2024
1 parent 9eee776 commit 26a343e
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 311 deletions.
10 changes: 0 additions & 10 deletions SSW.Rules.AzFuncs/Domain/SecretContent.cs

This file was deleted.

11 changes: 0 additions & 11 deletions SSW.Rules.AzFuncs/Domain/User.cs

This file was deleted.

9 changes: 1 addition & 8 deletions SSW.Rules.AzFuncs/Functions/Health/HealthCheckFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,7 @@ public async Task<HttpResponseData> Run(
Discriminator = typeof(Bookmark).FullName
});

var secretContentEntity = await dbContext.SecretContents.Add(new Domain.SecretContent
{
OrganisationId = "123123",
Content = "Don't tell anyone about this",
Discriminator = typeof(Domain.SecretContent).FullName
});

if (result.IsHealthy && bookmarkEntity != null && secretContentEntity != null)
if (result.IsHealthy && bookmarkEntity != null)
{
_logger.LogWarning($"{nameof(HealthCheckFunction)} health check OK.");
}
Expand Down

This file was deleted.

71 changes: 0 additions & 71 deletions SSW.Rules.AzFuncs/Functions/User/AddUserOrganisationFunction.cs

This file was deleted.

45 changes: 0 additions & 45 deletions SSW.Rules.AzFuncs/Functions/User/GetOrganisationsFunction.cs

This file was deleted.

68 changes: 0 additions & 68 deletions SSW.Rules.AzFuncs/Functions/User/GetUserFunction.cs

This file was deleted.

2 changes: 0 additions & 2 deletions SSW.Rules.AzFuncs/Persistence/RulesDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ namespace SSW.Rules.AzFuncs.Persistence;
public class RulesDbContext : CosmosContext
{
public IRepository<Bookmark> Bookmarks { get; set; }
public IRepository<SecretContent> SecretContents { get; set; }
public IRepository<User> Users { get; set; }
public IRepository<SyncHistory> SyncHistory { get; set; }
public IRepository<RuleHistoryCache> RuleHistoryCache { get; set; }
}
3 changes: 0 additions & 3 deletions SSW.Rules.AzFuncs/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using OidcApiAuthorization;
using SSW.Rules.AzFuncs.Domain;
using SSW.Rules.AzFuncs.Persistence;
using User = SSW.Rules.AzFuncs.Domain.User;

var configurationRoot = new ConfigurationBuilder()
.SetBasePath(Environment.CurrentDirectory)
Expand Down Expand Up @@ -40,8 +39,6 @@
.WithContainerConfig(c =>
{
c.AddContainer<Bookmark>(containerId: nameof(Bookmark), partitionKeyPath: "/id");
c.AddContainer<SecretContent>(containerId: nameof(SecretContent), partitionKeyPath: "/id");
c.AddContainer<User>(containerId: nameof(User), partitionKeyPath: "/id");
c.AddContainer<SyncHistory>(containerId: nameof(SyncHistory), partitionKeyPath: "/id");
c.AddContainer<RuleHistoryCache>(containerId: nameof(RuleHistoryCache), partitionKeyPath: "/id");
});
Expand Down
26 changes: 0 additions & 26 deletions SSW.Rules.AzFuncs/docs/Functions/Functions.http
Original file line number Diff line number Diff line change
Expand Up @@ -54,29 +54,3 @@ GET {{BaseApiUrl}}/GetAllBookmarkedFunction?user_id={{UserId}}
###
# Bookmark - GetBookmarkStatusFunction
GET {{BaseApiUrl}}/GetBookmarkStatusFunction?rule_guid={{RuleGuid}}&user_id={{UserId}}

###
# SecretContent - GetSecretContentFunction
GET {{BaseApiUrl}}/GetSecretContentFunction?id=cc4e043f-60e2-4f99-b9ee-b2518c3004a8
Authorization: Bearer {{Token}}

###
# User - GetUserFunction
GET {{BaseApiUrl}}/GetUserFunction?user_id={{UserId}}
Authorization: Bearer {{Token}}

###
# User - GetOrganisationsFunction
GET {{BaseApiUrl}}/GetOrganisationsFunction?user_id={{UserId}}
Authorization: Bearer {{Token}}

###
# User - AddUserOrganisationFunction
POST {{BaseApiUrl}}/AddUserOrganisationFunction
Content-Type: application/json
Authorization: Bearer {{Token}}

{
"OrganisationId": "{{OrganisationId}}",
"UserId": "{{UserId}}"
}

0 comments on commit 26a343e

Please sign in to comment.