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

chore: merge old stuff #9

Merged
merged 304 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
304 commits
Select commit Hold shift + click to select a range
34309ab
Renamed method in INavigatorContextBuilder
elementh Feb 15, 2021
3219fd6
Applied rename of method in NavigatorContextBuilder
elementh Feb 15, 2021
d866570
Updated INavigatorContextFactory methods
elementh Feb 15, 2021
2203286
Barebones version of NavigatorContextAccessor
elementh Feb 15, 2021
c9ae691
First iteration of NavigatorContextFactory
elementh Feb 15, 2021
7a5c3c7
Updated name of method in INavigatorClient
elementh Feb 15, 2021
f0fd602
Renamed provider projects
elementh Feb 15, 2021
56907c5
Added Provider fluent selector
elementh Feb 15, 2021
60f6627
Implemented IsClientFor in providers.
elementh Feb 15, 2021
fff3f3e
Corrected namespaces
elementh Feb 15, 2021
2e88a7a
Created extension method to get a client out of a list
elementh Feb 15, 2021
123d1ab
Improved Build method in NavigatorContextBuilder
elementh Feb 15, 2021
24f342e
Corrected import on example project
elementh Feb 15, 2021
5e1d7d2
Separated Builder and BuilderOptions
elementh Feb 16, 2021
d5a4cfb
Updated Factory method
elementh Feb 16, 2021
dd2df14
Updated implementations to match interfaces
elementh Feb 16, 2021
25b1bf2
Updated extension method to find correct client
elementh Feb 16, 2021
325b512
Deleted old code
elementh Feb 16, 2021
6839ee6
More work on NavigatorContextExtensions
elementh Feb 16, 2021
c8a393d
More work on extensions, now the flow applies them
elementh Feb 16, 2021
e42cc23
Started work in actions
elementh Feb 16, 2021
2b5ce2a
Woeking on actions and imports
elementh Feb 22, 2021
ebb8a13
Working on action types and providers
elementh Feb 22, 2021
32977df
Started work on ActionLauncher
elementh Feb 22, 2021
b1250d8
Added ActionType as a field in NavigatorContext
elementh Feb 22, 2021
5ef907b
Added action type to INavigatorContext
elementh Feb 22, 2021
46f1bf9
Updated ActionLauncher
elementh Feb 22, 2021
b2b22c8
Updated BaseAction and IAction
elementh Feb 22, 2021
fc7b7db
Improved ActionLauncher
elementh Feb 22, 2021
c8dc302
Renamed ActionHelper
elementh Feb 22, 2021
7c98e4d
Erased faulted code
elementh Feb 22, 2021
976f890
Updated requirements for SetProvider extension
elementh Feb 22, 2021
539db40
Created CommandAction
elementh Feb 22, 2021
e867893
Corrected MessageAction
elementh Feb 22, 2021
be363e1
Corrected whitespace
elementh Feb 22, 2021
5011216
Corrected NavigatorRouteProviderConfigurationExtensions
elementh Feb 22, 2021
822c090
Erased old using statement on SetTelegramBotWebHookHostedService
elementh Feb 22, 2021
c1cb938
Starting to implement Telegram middleware
elementh Feb 22, 2021
be0c544
Added CallbackQueryAction
elementh Feb 23, 2021
190dc9a
Erased old projects
elementh Feb 23, 2021
39a1a62
Cleaned old code in INavigatorClient and Telegram Provider
elementh Feb 23, 2021
fde0bfc
Updated DI
elementh Feb 23, 2021
d0c5577
Made ActionLauncher internal
elementh Feb 23, 2021
eef8af6
Added documentation for IAction
elementh Feb 23, 2021
ea5e1ab
Added OriginalUpdateContextExtension
elementh Feb 23, 2021
f947eef
Added GetOriginalUpdateOrDefault
elementh Feb 23, 2021
daeaea6
Added Extensions to INavigatorContext
elementh Feb 23, 2021
9096969
Added Set and Get for OriginalUpdate in builder
elementh Feb 23, 2021
3a5d333
Updated TelegramMiddleware to set OriginalUpdate
elementh Feb 23, 2021
d2e75da
Bit of work in DiscordProvider
elementh Feb 23, 2021
4fc3b4f
Added some MessageExtensions
elementh Feb 23, 2021
4008584
Updated MessageAction in Telegram Provider
elementh Feb 23, 2021
2f6fe39
Implemented CommandAction
elementh Feb 23, 2021
ca45904
Adjusted namespaces
elementh Feb 23, 2021
7bb5d28
Renamed IProvider, added docs
elementh Feb 23, 2021
e172d55
Moved old code to new project.
elementh Feb 23, 2021
bdd65de
Updated package metadata
elementh Feb 23, 2021
1f74878
Adjusted namespaces
elementh Feb 23, 2021
815bd11
NavigatorContext references provider instead of client
elementh Feb 23, 2021
2cb3fbc
Started work in reply flow
elementh Feb 23, 2021
c503a6e
Renamed ActionResult to ActionStatus
elementh Mar 3, 2021
be84ca8
Updated ActionHandler
elementh Mar 3, 2021
c979c89
Added ActionFilter
elementh Mar 3, 2021
981238c
Renamed namespace
elementh Mar 3, 2021
c16b5f5
Moved and renamed MessageExtensions
elementh Mar 3, 2021
90ca034
Updated IConversation
elementh Mar 3, 2021
625b2ad
Added Telegram provider conversation
elementh Mar 3, 2021
aa86fce
Added SetConversation
elementh Mar 3, 2021
f2c358a
Updated NavigatorContext to include conversation
elementh Mar 3, 2021
1f3d01b
Added some internal extensions for distributed cache
elementh Mar 3, 2021
68d15cf
Updated TelegramUpdateExtensions
elementh Mar 3, 2021
1021737
Started with CooldownActionFilter implementation
elementh Mar 3, 2021
a95a345
Leaving Discord in pause for now
elementh Mar 9, 2021
85f4e50
Added arguments to CommandAction
elementh Mar 9, 2021
d0ccb08
Added fluent addition of extensions to NavigatorConfiguration
elementh Mar 9, 2021
92958d8
Added HandleReply as NotImplemented
elementh Mar 9, 2021
6de2257
Added GetOriginalUpdate extension to NavigatorContextExtensions
elementh Mar 9, 2021
8dfca51
Worked on some extension methods
elementh Mar 9, 2021
2f32d8b
Updated sample EchoAction
elementh Mar 9, 2021
918cf5d
Updated dependencies of sample
elementh Mar 9, 2021
384acd5
Updated namespace of configuration related classes for Telegram provider
elementh Mar 9, 2021
49c9b47
Updated sample
elementh Mar 9, 2021
a1ccdfd
Corrected null
elementh Mar 9, 2021
18f3eed
Corrected replace
elementh Mar 9, 2021
2d0400a
Corrected getter
elementh Mar 9, 2021
07fc518
Updated DI
elementh Mar 9, 2021
22b9f68
Adjusted namespaces
elementh Mar 9, 2021
ff2641d
Improved CommandAction
elementh Mar 9, 2021
f03037c
Implemented CallbackQueryAction
elementh Mar 9, 2021
c99d786
Improved MessageAction
elementh Mar 9, 2021
66368ad
Corrected CommandAction
elementh Mar 9, 2021
f7dcf50
Added EditedMessageAction
elementh Mar 15, 2021
e910f56
Added UnknownAction
elementh Mar 15, 2021
dd857e9
Updated switch on TelegramMiddleware
elementh Mar 15, 2021
beb95a2
Added PollAction
elementh Mar 15, 2021
be5f19e
chore: update dependencies
elementh Jul 19, 2021
456f03f
chore: update telegram client
elementh Jul 19, 2021
05d7d74
feat: implement InlineQueryAction for Telegram
elementh Jul 19, 2021
f9123a6
feat: implement ChosenInlineResult action
elementh Jul 19, 2021
472b0c7
chore: move Priority to its own file
elementh Jul 19, 2021
0e2fa27
chore: move files around
elementh Jul 19, 2021
f155f53
feat: changes
elementh Aug 17, 2021
594dff3
chore: erase old code
elementh Sep 6, 2021
66572a5
feat: create NavigatorException
elementh Sep 6, 2021
76ee6b8
refactor: rename original update to original event
elementh Sep 6, 2021
75505a0
refactor: new flow for base action
elementh Sep 6, 2021
42a48dd
feat: update actions to new flow
elementh Sep 6, 2021
cfe70e8
chore: update to .net 6
elementh Dec 5, 2021
4085106
feat: update sample to .net 6
elementh Dec 5, 2021
e94b902
feat: update GetMeAsync to GetProfile
elementh Dec 5, 2021
2c6c602
feat: various changes
elementh Dec 5, 2021
faacad6
feat: delete swagger from sample
elementh Dec 5, 2021
0a640db
feat: move action type outside of IAction
elementh Dec 6, 2021
ad10d21
feat: adapt telegram actions to new IAction
elementh Dec 6, 2021
9efe738
fix: correct client
elementh Dec 6, 2021
1edeb87
fix: correct NavigatorContextAccessor
elementh Dec 6, 2021
4a9128e
feat: new action discovery strategy
elementh Dec 6, 2021
622396a
feat: simplify scope on route handler
elementh Dec 6, 2021
3f88192
feat: improve logs
elementh Dec 6, 2021
31bf1cb
feat: add ActionType to currently available telegram actions
elementh Dec 6, 2021
c474f47
feat: improve speed of action type discovery by using constants
elementh Dec 6, 2021
255a0d9
fix: make it work!
elementh Dec 6, 2021
879cf85
chore: erase old project
elementh Dec 6, 2021
7a201fb
feat: rename filter to middleware
elementh Dec 6, 2021
4e26a1c
feat: add quality of life features
elementh Dec 6, 2021
fa15b60
fix: correct namespace
elementh Dec 6, 2021
7b1a113
chore: move file around
elementh Dec 6, 2021
9eb0f04
feat: add ActionPriority attribute
elementh Dec 6, 2021
226b8d0
feat: move priority out of action type to attribute
elementh Dec 6, 2021
375c778
feat: adapt priority attribute into ActionLauncher strategies
elementh Dec 6, 2021
93dff25
feat: move cooldown logic to new extension project
elementh Dec 6, 2021
760b5fc
chore: simplify sample project
elementh Dec 6, 2021
4faddf9
chore: update solution structure
elementh Dec 7, 2021
b679b7d
feat: update IActionMiddleware
elementh Dec 7, 2021
fd75a5a
feat: add configuration for Cooldown extension
elementh Dec 7, 2021
8fecca6
feat: update sample to use cooldown
elementh Dec 7, 2021
1431d75
feat: update project metadata
elementh Dec 7, 2021
41527bb
feat: create new Extension package for Store
elementh Dec 7, 2021
d8e2f55
feat: delete unused class
elementh Dec 7, 2021
9c631a7
chore: correct solution project path
elementh Dec 7, 2021
2851fe4
feat: convert chat entities from interface to records
elementh Dec 7, 2021
77e9d3a
chore: move project to correct path
elementh Dec 7, 2021
4775cf4
feat: adapt Navigator and related projects to new entities
elementh Dec 7, 2021
c761b19
docs: improve class documentation for NavigatorContext
elementh Dec 7, 2021
9fc506f
feat: add more fields to TelegramUser
elementh Dec 7, 2021
2a6bdcc
feat: add more fields to TelegramBot
elementh Dec 7, 2021
b2bb374
feat: improve GetProfile to use new parameters in TelegramBot
elementh Dec 7, 2021
7b73501
fix: correct Conversation implementation
elementh Dec 7, 2021
eee5e82
feat: change entities from record to class
elementh Dec 7, 2021
53be1b8
feat: moved OriginalEventContextExtension to Bundled
elementh Dec 10, 2021
f65af01
feat: update references to OriginalEvent to new namespace
elementh Dec 10, 2021
0a95639
feat: add INavigatorContextBuilderConversationSource
elementh Dec 10, 2021
9c1e400
feat: add first implementation of conversation source for context bui…
elementh Dec 10, 2021
e8c8927
fix: correct call to GetOriginalEventOrDefault
elementh Dec 10, 2021
7002424
feat: add implementation for conversation source for telegram provider
elementh Dec 10, 2021
b3b4eff
feat: update provider DI
elementh Dec 10, 2021
b5c92ad
feat: delete old extensions
elementh Dec 10, 2021
99329af
feat: add Store entities for Navigator
elementh Dec 10, 2021
7b26003
feat: update main entities across all Navigator
elementh Dec 10, 2021
544f146
feat: add ChatEntityTypeConfiguration
elementh Dec 10, 2021
8139454
feat: add ConversationEntityTypeConfiguration
elementh Dec 10, 2021
10c6ea1
feat: add UserEntityTypeConfiguration
elementh Dec 10, 2021
cd52b5b
feat: add NavigatorProviderChatEntity and NavigatorProviderUserEntity
elementh Dec 10, 2021
51a7fa5
feat: update NavigatorDbContext
elementh Dec 10, 2021
e2e47ed
chore: delete old files and classes
elementh Dec 12, 2021
538600c
style: correct namespace styles
elementh Dec 12, 2021
367e960
feat: rename entities
elementh Dec 20, 2021
de9a649
feat: correct entity type configurations
elementh Dec 20, 2021
e1734d1
feat: simplify NavigatorDbContext
elementh Dec 20, 2021
570d320
feat: implement Store as an INavigatorContextExtension
elementh Dec 20, 2021
5a42040
feat: add common extensions to NavigatorContext
elementh Dec 20, 2021
6dedc22
feat: rename solution folder
elementh Dec 20, 2021
caac196
chore: list necessary settings for sample to run
elementh Dec 20, 2021
0201f47
feat: add store sample
elementh Dec 20, 2021
1f1e41d
feat: refactor from ProviderEntities to Profiles
elementh Dec 22, 2021
bfedcdc
feat: add NavigatorStoreException
elementh Dec 22, 2021
def4ef1
feat: add constructor with default DateTime values to UniversalProfile
elementh Dec 22, 2021
10c3b03
feat: implement first iteration of IUniversalStore
elementh Dec 22, 2021
83b7727
feat: refactor namespaces
elementh Dec 22, 2021
99ee892
feat: add migration for sample
elementh Dec 22, 2021
e375b5d
feat: update INavigatorProvider
elementh Dec 23, 2021
38f614d
feat: implement interface changes on TelegramNavigatorProvider
elementh Dec 23, 2021
77a190d
feat: add new methods to IUniversalStore
elementh Dec 23, 2021
8349df6
feat: implement new interface methods on UniversalStore
elementh Dec 23, 2021
95c7987
feat: update default constructors of Store entities
elementh Dec 23, 2021
83deab2
feat: implement UniversalConversationContextExtension
elementh Dec 23, 2021
d677fba
feat: add more methods to UniversalStore
elementh Dec 23, 2021
b7a1c51
feat: update StoreContextExtension
elementh Dec 23, 2021
57fc309
feat: update store extensions to NavigatorContext
elementh Dec 23, 2021
6da87f1
feat: update Store DI
elementh Dec 23, 2021
6b7c720
feat: add interaction with UniversalStore to EchoAction
elementh Dec 23, 2021
0804242
chore: refactor and correct namespaces
elementh Dec 23, 2021
5927db4
feat: add Id to Conversation
elementh Dec 23, 2021
60830a4
feat: update universal entities
elementh Dec 23, 2021
11112c8
feat: add default constructor to TelegramConversation
elementh Dec 23, 2021
57748b4
feat: implement extension of entities for DbContext
elementh Dec 23, 2021
bcaf501
feat: implement Store extension for Telegram
elementh Dec 23, 2021
afc04ce
feat: update demo project
elementh Dec 23, 2021
85b823a
feat: made StoreModelExtension able to specify services for DI
elementh Dec 23, 2021
4624c09
feat: simplify universal entities
elementh Dec 23, 2021
5f58c25
feat: update navigator entity
elementh Dec 23, 2021
1133de2
feat: update entity defitinions for DbContext
elementh Dec 23, 2021
a44762e
chore: correct namespaces
elementh Dec 23, 2021
6f96413
fix: correct UniversalStore Conversation creation
elementh Dec 23, 2021
b29be1e
feat: add IProviderProfileMapper to use on profile creation
elementh Dec 23, 2021
ece4fcd
feat: update migrations of sample
elementh Dec 23, 2021
b29bf56
feat: add things I do not remember
elementh Apr 3, 2022
f28b5e0
refactor: rename store entities
elementh Apr 3, 2022
8d16bd7
fix: correct comment on TelegramChat.ExternalIdentifier
elementh Apr 3, 2022
60cd0ad
feat: add data property to store entities
elementh Apr 3, 2022
5192a90
feat: create data extractor interface
elementh Apr 3, 2022
9f1893b
refactor: recreate profile mappers as data extractors
elementh Apr 3, 2022
72975d9
feat: implement store of new conversations
elementh Apr 3, 2022
af33745
feat: delete old store
elementh Apr 3, 2022
059f2e1
feat: lots of changes
elementh Apr 4, 2022
719e13b
feat: improve metadata of projects
elementh Apr 4, 2022
496277a
build: add pipeline for navigator base package
elementh Apr 4, 2022
f570033
build: add pipeline for navigator.extensions.store
elementh Apr 4, 2022
a90e507
build: add pipeline for navigator.extensions.store.telegram
elementh Apr 4, 2022
670f5f0
build: add pipeline for navigator.providers.telegram
elementh Apr 4, 2022
97615b7
build: add pipeline for navigator.extensions.cooldown
elementh Apr 4, 2022
42c0971
fix: delete unnecessary pipelines
elementh Apr 4, 2022
ade35b3
feat: add EditedChannelPostAction
elementh Apr 4, 2022
40a71e9
feat: update dependencies across solution
elementh Apr 4, 2022
cce9b86
feat: upgrade implementation of action dictionary
elementh Apr 5, 2022
b4a61dd
feat: add provider agnostic base actions
elementh Apr 5, 2022
25500c7
refactor: make some internal methods public
elementh Apr 5, 2022
7e0bd6f
refactor: remove unused directives in solution
elementh Apr 5, 2022
d14fea5
refactor: simplify extension configuration
elementh Apr 5, 2022
f584843
refactor: simplify provider configuration
elementh Apr 5, 2022
497fa22
feat: add force parameter to some options extensions
elementh Apr 5, 2022
89c90de
feat: implement basic GetOriginalEvent with no type casting
elementh Apr 5, 2022
e59c346
fix: correct memory leak on store
elementh Apr 6, 2022
eda1d35
fix: correct conversation context update
elementh Apr 7, 2022
552557d
feat: make ActionLauncher capable of launching multiple actions of th…
elementh Apr 7, 2022
d0a9355
feat: move cooldown extension to its own repository
elementh Apr 8, 2022
14754b6
feat: implement INavigatorStore
elementh Apr 9, 2022
35fbcc2
feat: add INavigatorStore to DI
elementh Apr 9, 2022
c762f75
feat: add extensions to use store
elementh Apr 9, 2022
a558e9d
feat: make it work
elementh Apr 9, 2022
657fcea
feat: extend navigator store with more methods
elementh May 7, 2022
18397a8
chore: move command action to new namespace
elementh May 7, 2022
054716d
feat: implement PollAnswerAction
elementh May 7, 2022
3bc2a3e
feat: implement MyChatMemberAction
elementh May 7, 2022
e449c2b
feat: implement ChatMemberAction
elementh May 7, 2022
90a2084
feat: implement ChatJoinRequestAction
elementh May 7, 2022
202d2e1
feat: correct warnings in InlineQueryAction and PollAction
elementh May 7, 2022
c65d8eb
feat: update TelegramMiddleware to recognize new actions
elementh May 7, 2022
e81d49f
feat: improve some update actions
elementh May 7, 2022
9294ccc
feat: some correction
elementh Oct 6, 2023
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
80 changes: 80 additions & 0 deletions .github/workflows/package.navigator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Build & Publish - Navigator
on:
push:
pull_request:
release:
types:
- published
env:
# Stop wasting time caching packages
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending usage data to Microsoft
DOTNET_CLI_TELEMETRY_OPTOUT: true
# Project name to pack and publish
PROJECT_NAME: Navigator
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Restore
working-directory: ./src
run: dotnet restore
- name: Build
working-directory: ./src
run: dotnet build -c Release --no-restore
- name: Test
working-directory: ./src
run: dotnet test -c Release
- name: Pack
if: matrix.os == 'ubuntu-latest'
run: dotnet pack -v normal -c Release --no-restore --include-symbols --include-source -p:PackageVersion=$GITHUB_RUN_ID src/$PROJECT_NAME.sln
# - name: Upload Artifact
# if: matrix.os == 'ubuntu-latest'
# uses: actions/upload-artifact@v2
# with:
# name: nupkg
# path: ./src/${{ env.PROJECT_NAME }}/bin/Release/*.nupkg
publish:
needs: build
if: github.event_name == 'release'
env:
# GitHub Packages Feed settings
GITHUB_FEED: https://nuget.pkg.github.com/navigatorframework/
GITHUB_USER: navigatorframeworkbot
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Official NuGet Feed settings
NUGET_FEED: https://api.nuget.org/v3/index.json
NUGET_KEY: ${{ secrets.NUGET_KEY }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Create Release NuGet package
run: |
arrTag=(${GITHUB_REF//\// })
VERSION="${arrTag[2]}"
echo Version: $VERSION
VERSION="${VERSION//v}"
echo Clean Version: $VERSION
dotnet pack -v normal -c Release --include-symbols --include-source -p:PackageVersion=$VERSION -o nupkg src/$PROJECT_NAME.sln
- name: Push to GitHub Feed
run: |
for f in ./nupkg/*.nupkg
do
curl -vX PUT -u "$GITHUB_USER:$GITHUB_TOKEN" -F package=@$f $GITHUB_FEED
done
- name: Push to NuGet Feed
run: dotnet nuget push ./nupkg/*.nupkg --source $NUGET_FEED --skip-duplicate --api-key $NUGET_KEY
249 changes: 0 additions & 249 deletions src/Navigator.Abstractions.Extensions/INavigatorContextExtensions.cs

This file was deleted.

This file was deleted.

Loading
Loading