Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🗑️ Removed unused functions and relevant code #85

Merged
merged 6 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions SSW.Rules.AzFuncs/Domain/Reaction.cs

This file was deleted.

11 changes: 1 addition & 10 deletions SSW.Rules.AzFuncs/Functions/Health/HealthCheckFunction.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Net;
using AzureGems.CosmosDB;
using Microsoft.Azure.Functions.Worker;
using Microsoft.Azure.Functions.Worker.Http;
using Microsoft.Extensions.Logging;
Expand Down Expand Up @@ -27,13 +25,6 @@ public async Task<HttpResponseData> Run(
_logger.LogWarning($"HTTP trigger function {nameof(HealthCheckFunction)} received a request.");

HealthCheckResult result = await apiAuthorization.HealthCheckAsync();
var reactionEntity = await dbContext.Reactions.Add(new Reaction
{
Type = ReactionType.Like,
RuleGuid = "exampleRule123",
UserId = "exampleUser123",
Discriminator = typeof(Reaction).FullName
});

var bookmarkEntity = await dbContext.Bookmarks.Add(new Bookmark
{
Expand All @@ -49,7 +40,7 @@ public async Task<HttpResponseData> Run(
Discriminator = typeof(Domain.SecretContent).FullName
});

if (result.IsHealthy && reactionEntity != null && bookmarkEntity != null && secretContentEntity != null)
if (result.IsHealthy && bookmarkEntity != null && secretContentEntity != null)
{
_logger.LogWarning($"{nameof(HealthCheckFunction)} health check OK.");
}
Expand Down
56 changes: 0 additions & 56 deletions SSW.Rules.AzFuncs/Functions/Reactions/GetAllReactionsFunction.cs

This file was deleted.

87 changes: 0 additions & 87 deletions SSW.Rules.AzFuncs/Functions/Reactions/GetReactionsFunction.cs

This file was deleted.

91 changes: 0 additions & 91 deletions SSW.Rules.AzFuncs/Functions/Reactions/ReactFunction.cs

This file was deleted.

77 changes: 0 additions & 77 deletions SSW.Rules.AzFuncs/Functions/Reactions/RemoveReactionFunction.cs

This file was deleted.

Loading
Loading