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

Backend-refactor #960

Merged
merged 95 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
5329c88
refactor(enums): create new library for enums
IgnisDa Aug 12, 2024
f682a54
refactor(migrations); separate crate for migrations
IgnisDa Aug 12, 2024
0beec75
refactor(backend): adapt to new crate structure
IgnisDa Aug 12, 2024
623b969
refactor(common_models): new crate for common models
IgnisDa Aug 12, 2024
ff1090c
refactor(file_storage_service): new crate for file storage service
IgnisDa Aug 12, 2024
6c2cc2f
refactor(media_models): extract media models into module
IgnisDa Aug 12, 2024
f414664
refactor(fitness_models): extract fitness models into module
IgnisDa Aug 12, 2024
b60b8d6
refactor: import from correct place
IgnisDa Aug 12, 2024
1dc4d4e
refactor(common_models): extract more structs
IgnisDa Aug 12, 2024
60fc880
chore: basic refactor start
IgnisDa Aug 12, 2024
a35ab29
chore(database_models): new library for database entities
IgnisDa Aug 12, 2024
7748e0c
chore(database_models): new library for all models
IgnisDa Aug 12, 2024
870981d
chore(services): new common services library
IgnisDa Aug 12, 2024
49b1563
chore(common_utils): move rs-utils into a better named lib
IgnisDa Aug 12, 2024
9894811
chore(config): move config into crate
IgnisDa Aug 12, 2024
0a4f9dd
chore(jwt_service): new jwt service
IgnisDa Aug 12, 2024
2f59c46
fix(application_utils): use correct function
IgnisDa Aug 12, 2024
b0c31b4
chore(dependent_models): new library for both
IgnisDa Aug 12, 2024
ba2b184
chore: more crates!!!
IgnisDa Aug 12, 2024
e63ba32
chore: more fuckery with dependencies
IgnisDa Aug 12, 2024
2b1e338
fix: cyclic dependency
IgnisDa Aug 13, 2024
5ff8c58
chore: complete most of database models
IgnisDa Aug 13, 2024
f891339
refactor(database_models): trigger function
IgnisDa Aug 13, 2024
da8eb2f
fix(dependent_models): add correct imports
IgnisDa Aug 13, 2024
4fca281
chore(crates): minor stuff
IgnisDa Aug 13, 2024
91e9ba9
chore(backend): change names of modules
IgnisDa Aug 13, 2024
9b35fd4
chore(crates): remove useless traits
IgnisDa Aug 13, 2024
51da169
refactor(backend): start cleaning up
IgnisDa Aug 13, 2024
d2ecb25
chore(backend): correct imports for providers
IgnisDa Aug 13, 2024
26fd984
chore(models): re-export all importer models
IgnisDa Aug 13, 2024
638d490
chore(backend): use more correct imports
IgnisDa Aug 13, 2024
4945941
chore(backend): fix orphans rules problems
IgnisDa Aug 13, 2024
be09481
fix(backend): get it compiling
IgnisDa Aug 13, 2024
f3aba30
chore: remove unused deps from each crate
IgnisDa Aug 13, 2024
435f8db
refactor(application_utils): extract base function
IgnisDa Aug 13, 2024
1f41825
refactor(application_utils): move all constants into module
IgnisDa Aug 13, 2024
c1d5b3b
refactor(models): add specifics models crate
IgnisDa Aug 13, 2024
94c7ed0
build: remove unused deps
IgnisDa Aug 13, 2024
1e0bd7c
chore(backend): move base dir constant
IgnisDa Aug 13, 2024
2cc356d
refactor(backend,common_utils): make providers completely separate
IgnisDa Aug 13, 2024
efb78e5
refactor(providers): move into separate crate
IgnisDa Aug 13, 2024
f05c2e6
chore(backend): import providers from correct place
IgnisDa Aug 13, 2024
3933600
chore(backend): upgrade sea deps
IgnisDa Aug 14, 2024
8b863d5
fix(frontend): do not redirect to undefined
IgnisDa Aug 14, 2024
20c7485
Merge branch 'main' into backend-refactor
IgnisDa Aug 14, 2024
65d0a6e
feat(backend): start converting exporter to self contained function
IgnisDa Aug 14, 2024
9af20c1
refactor(backend): move back into same function
IgnisDa Aug 14, 2024
5396f96
refactor(backend): move export function
IgnisDa Aug 15, 2024
4731a9e
chore(backend): make private
IgnisDa Aug 15, 2024
356737f
Revert "chore(backend): make private"
IgnisDa Aug 15, 2024
2b99330
refactor(backend): remove dependency on both models
IgnisDa Aug 15, 2024
ecb22f2
refactor(backend): remove dependency on exercise service completely
IgnisDa Aug 15, 2024
911926b
refactor(database_utils): move function
IgnisDa Aug 15, 2024
03523f4
chore(rust): remove nested workspaces
IgnisDa Aug 15, 2024
019a553
refactor(database_utils): move function to module
IgnisDa Aug 15, 2024
55b49fc
refactor(database_utils): move stuff to new crate
IgnisDa Aug 15, 2024
d4e304c
refactor(backend): preparation to move exporter to different service
IgnisDa Aug 15, 2024
a409758
chore(exporter): add new service file
IgnisDa Aug 15, 2024
73d6af6
refactor(services): create new service for exporter
IgnisDa Aug 15, 2024
0468b7b
refactor(backend): extract exporter service and resolver
IgnisDa Aug 15, 2024
f63a9d4
refactor(backend): add new notification service
IgnisDa Aug 15, 2024
1d98a6e
ci: move location of templates directory
IgnisDa Aug 15, 2024
771ac3e
refactor(backend): remove graphql module
IgnisDa Aug 15, 2024
0f14db9
refactor(database_utils): another one bites the dust
IgnisDa Aug 15, 2024
8faacf6
chore(services): add files for integration service
IgnisDa Aug 15, 2024
69d4b31
refactor(services): another one bites the dust
IgnisDa Aug 15, 2024
171e339
refactor(utils): move another function to utils
IgnisDa Aug 15, 2024
f2b9b2d
ci: Run CI
IgnisDa Aug 15, 2024
99d6f09
chore(resolvers,services): add new files for fitness
IgnisDa Aug 15, 2024
2d1a352
refactor(services): another one bites the dust
IgnisDa Aug 15, 2024
141ccdf
feat(resolvers,services): add files for miscellaneous move
IgnisDa Aug 15, 2024
13a873b
chore(providers): change name of struct
IgnisDa Aug 15, 2024
b5114af
refactor(services): another one bites the dust
IgnisDa Aug 15, 2024
575a5c3
refactor(backend): change how we refer to modules
IgnisDa Aug 15, 2024
9d88512
chore(services): add importer service
IgnisDa Aug 15, 2024
e744328
refactor(services,resolver): another one bites the dust
IgnisDa Aug 15, 2024
24599fe
ci: change name of crate
IgnisDa Aug 15, 2024
3cd4bb3
ci: Run CI
IgnisDa Aug 15, 2024
7a072e4
ci: specify correct path
IgnisDa Aug 15, 2024
0568435
refactor(background): move scheduled job to correct module
IgnisDa Aug 15, 2024
9f5dd45
chore: remove cargo machete warnings
IgnisDa Aug 15, 2024
41447b5
ci: change name of crate
IgnisDa Aug 15, 2024
be62379
ci: change name of crate
IgnisDa Aug 15, 2024
b42634d
ci: change name of crate
IgnisDa Aug 16, 2024
5ec4fa3
refactor(resolvers): new module for file_storage
IgnisDa Aug 16, 2024
f2a9d0f
refactor(backend): pass database connection directly to service
IgnisDa Aug 16, 2024
0262016
refactor: move resolver definition to crate
IgnisDa Aug 16, 2024
a1e0baf
refactor: move router into resolver crate
IgnisDa Aug 16, 2024
2b8483c
chore(backend): remove nanoid deps
IgnisDa Aug 16, 2024
0ce2cb5
chore(backend): change names of modules
IgnisDa Aug 16, 2024
67b54d6
chore(backend): change name of attribute
IgnisDa Aug 16, 2024
0ad03d6
fix(miscellaneous): cache correct object for seen entries
IgnisDa Aug 16, 2024
fc37cfe
chore(misc_service): remove public struct
IgnisDa Aug 16, 2024
cb6f0e3
chore(backend): start refactoring for calendar event to contain corre…
IgnisDa Aug 16, 2024
b31ace7
ci: Run CI
IgnisDa Aug 16, 2024
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
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
with:
name: templates
path: |
apps/backend/templates/
crates/services/notification/templates/
retention-days: 1

build-backend:
Expand All @@ -125,7 +125,7 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: templates
path: ${{ github.workspace }}/apps/backend/templates/
path: ${{ github.workspace }}/crates/services/notification/templates
- name: Extract build information
id: build
env:
Expand Down Expand Up @@ -165,7 +165,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: backend-${{ steps.build.outputs.docker-arch }}
path: ${{ github.workspace }}/target/${{ matrix.platform.target }}/release/ryot
path: ${{ github.workspace }}/target/${{ matrix.platform.target }}/release/backend
retention-days: 1

build-docker:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ node_modules
.astro
dist
.vscode/settings.json
apps/backend/templates
templates
Loading