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 latest rules widget functions and entity context for Cosmos DB #83

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
16 changes: 0 additions & 16 deletions SSW.Rules.AzFuncs/Domain/LatestRules.cs

This file was deleted.

44 changes: 0 additions & 44 deletions SSW.Rules.AzFuncs/Functions/Widget/GetLatestRules.cs

This file was deleted.

147 changes: 0 additions & 147 deletions SSW.Rules.AzFuncs/Functions/Widget/UpdateLatestRules.cs

This file was deleted.

1 change: 0 additions & 1 deletion SSW.Rules.AzFuncs/Persistence/RulesDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ public class RulesDbContext : CosmosContext
public IRepository<User> Users { get; set; }
public IRepository<SyncHistory> SyncHistory { get; set; }
public IRepository<RuleHistoryCache> RuleHistoryCache { get; set; }
public IRepository<LatestRules> LatestRules { get; set; }
}
2 changes: 0 additions & 2 deletions SSW.Rules.AzFuncs/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,10 @@
c.AddContainer<User>(containerId: nameof(User), partitionKeyPath: "/id");
c.AddContainer<SyncHistory>(containerId: nameof(SyncHistory), partitionKeyPath: "/id");
c.AddContainer<RuleHistoryCache>(containerId: nameof(RuleHistoryCache), partitionKeyPath: "/id");
c.AddContainer<LatestRules>(containerId: nameof(LatestRules), partitionKeyPath: "/id");
});
});
services.AddCosmosContext<RulesDbContext>();
})
.Build();


host.Run();
14 changes: 0 additions & 14 deletions SSW.Rules.AzFuncs/docs/Functions/Functions.http
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,6 @@ GET {{BaseApiUrl}}/GenerateHistoryFileFunction
# History - SyncCommitHash
GET {{BaseApiUrl}}/GetHistorySyncCommitHash

###
# Widget - Get LatestRules (with GitHub)
@skip = 0
@take = 10
@githubUsername = "BrookJeynes"

GET {{BaseApiUrl}}/GetLatestRules?skip={{skip}}&take={{take}}&githubUsername={{githubUsername}}
# Content-Type: application/json

###
# Widget - Get LatestRules (No GitHub)

GET {{BaseApiUrl}}/GetLatestRules?skip={{skip}}&take={{take}}

###
# Reactions - ReactFunction
POST {{BaseApiUrl}}/ReactFunction
Expand Down
38 changes: 0 additions & 38 deletions docs/Functions/Functions.http

This file was deleted.

Loading