Geometrically
2e35f3608b
Remove name field (and remove existing data) ( #935 )
...
* Remove name field (and remove existing data)
* run prep, fmt
* fix dummy data
2024-09-06 20:16:28 -07:00
Geometrically
1d0d8d7fbe
Payments/subscriptions support ( #943 )
...
* [wip] Payments/subscriptions support
* finish
* working payment flow
* finish subscriptions, lint, clippy, etc
* docker compose
2024-08-14 17:14:52 -07:00
Geometrically
a0aa350a08
Fix cache stampede issues + generalize cache ( #884 )
...
* caching changes
* fix cache stampede issues
* Use pub/sub for better DB fetches
* remove pubsub
* remove debugs
* Fix caches not working
* fix search indexing removal
2024-03-26 21:15:50 -07:00
Geometrically
decfcb6c27
Fix issue with moderator identities being revealed ( #892 )
...
* Fix issue with moderator identities being revealed
* Fix on multiple threads route
* Fix thread notifs
* Fix failing test
* fix thread messages returning nothing
2024-03-19 17:25:49 -07:00
Geometrically
e2ffeab8fa
fix views analytics ( #885 )
...
* fix views analytics
* update ip stripping
* update clickhouse tables
* fix broken queries
* Fix panics
* fix download undercounting
* fix packerator failing sometimes
* run prep
2024-03-02 14:04:46 -07:00
Geometrically
04d834187b
Automatic moderation ( #875 )
...
* Automatic moderation
* finish
* modpack fixes
* fix unknown license msg
* fix moderation issues
2024-02-21 16:24:21 -07:00
Geometrically
33b2a94d90
Fix version creation taking forever ( #878 )
...
* Fix version creation taking forever
* run fmt + prep
* fix tests?
2024-02-05 12:24:12 -07:00
Geometrically
bfeff78164
Update search queries ( #854 )
...
* Update search queries
* Bump accepted payload limit
* fixes
* push test changes
* fmt clippy prepare
---------
Co-authored-by: Wyatt Verchere <wverchere@gmail.com >
2024-01-13 18:20:28 -05:00
Geometrically
7b00003958
Org fixes ( #850 )
...
* Org fixes
* payouts bug
* Update dockerfile fix test
* Update to bookworm
* clippy
2024-01-12 14:19:39 -05:00
Wyatt Verchere
ef31c0c0da
Cleans up and removes TODOs, adds tests ( #844 )
...
* removes version ordering from v2; simplifies now-unecessary three-level faceting
* resolved some todos
* test for game version updating
* merge fixes; display_categories fix
2024-01-11 21:11:27 -05:00
Wyatt Verchere
76c885f080
Fixes incorrect loader fields ( #849 )
...
* loader_fields fix
* tested, fixed
* added direct file check for invalid file_parts
* search fixes
* removed printlns
* Adds check for loaders
* removes println
2024-01-11 18:36:01 -05:00
Geometrically
34baf44534
Fix packs logic ( #837 )
...
* Fix packs logic
* Clippy
2024-01-07 18:36:42 -05:00
Wyatt Verchere
c3448033de
Fixes missing plugin/datapack in search ( #829 )
...
* fixes datapack/plugin issue
* fixes level
* server side searching; org projects
* total hits
* total hits fixes
---------
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com >
2024-01-07 16:36:26 -05:00
Wyatt Verchere
75e5bec962
test ( #828 )
2024-01-07 01:47:42 -05:00
Wyatt Verchere
59c269c8d0
Fixes game versions v2 display ( #827 )
...
* fixes game versions display
* reverses from version route
2024-01-07 01:04:13 -05:00
Wyatt Verchere
10eed05d87
Fixes failing tests ( #813 )
...
* fixes failing tests
* fmt clippy
* updated dockerfile
* fixes failing tests; adds important fix from extracts_versions PR
* assert_eq -> assert_status, giving better error messages
* fixed random failure bug
* fmt, clippy, etc
2024-01-05 11:20:56 -05:00
Geometrically
f5802fee31
Staging bug fixes ( #819 )
...
* Staging bug fixes
* Finish fixes
* fix tests
* Update migration
* Update migrations
* fix side types being added for ineligible loaders
* fix tests
* Fix tests
* Finish fixes
* Add slug display names
2024-01-04 16:24:33 -05:00
Geometrically
cf9c8cbb4f
Fix deletion of private notes ( #814 )
2023-12-28 20:25:55 -05:00
Geometrically
f199ecf8e9
Final release fixes ( #811 )
2023-12-27 13:54:17 -05:00
Wyatt Verchere
d59c522f7f
Sanity checked all of V2 route conversions ( #803 )
...
* follows
* all v2 routes now either convert or have a comment
* added common structs, clippy
* merge fix
---------
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com >
2023-12-19 10:20:32 -08:00
Wyatt Verchere
f939e59463
Testing bug fixes ( #788 )
...
* fixes
* adds tests- fixes failures
* changes
* moved transaction commits/caches around
* collections nullable
* merge fixes
* sqlx prepare
* revs
* lf fixes
* made changes back
* added collections update
---------
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com >
2023-12-14 15:19:50 -07:00
Wyatt Verchere
235f4f10ef
Chunking searches ( #787 )
...
* new attempt
* revised searching CTEs
* prepare fix
* fix tests
* fixes
* restructured project_item to use queries
* search changes! fmt clippy prepare
* small changes
2023-12-08 23:14:17 -07:00
Wyatt Verchere
4b6a2685d0
fixed gallery mislabeled field ( #783 )
2023-12-04 20:44:48 -07:00
Geometrically
4630d175d7
Optimize analytics queries ( #781 )
...
* Optimize analytics queries
* fix clippy
2023-12-04 18:49:51 -07:00
Wyatt Verchere
b2be4a7d67
Search overhaul ( #771 )
...
* started work; switching context
* working!
* fmt clippy prepare
* fixes
* fixes
* revs
* merge fixes
* changed comments
* merge issues
2023-12-03 07:27:12 -07:00
Wyatt Verchere
a70df067bc
Misc v3 linear tasks ( #767 )
...
* v3_reroute 404 error
* hash change
* fixed issue with error conversion
* added new model confirmation tests
+ title name change
* renaming, fields
* owner; test changes
* clippy prepare
* fmt
* merge fixes
* clippy
* working merge
* revs
* merge fixes
2023-12-01 20:15:00 -07:00
Wyatt Verchere
2d92b08404
V2 removal and _internal rerouting ( #770 )
...
* deleteed v3 exclusive routes
* moved routes around
* fixed linkage that movement broke
* initial merge errors
* fixes
2023-12-01 10:02:11 -08:00
Wyatt Verchere
4bbc57b0dc
Links ( #763 )
2023-11-30 23:14:52 -08:00
Wyatt Verchere
b3b55210f7
Renamed default project type to unknown. ( #774 )
...
* small change
* plugins and datapacks now correctly return to project
* Adds to search
2023-11-30 17:17:21 -08:00
Wyatt Verchere
58093a9438
Modifies sql queries to use CTEs ( #773 )
...
* fixes huge slowodwn on version item
* changes!
* fixes, touch ups, indices
* clippy prepare
2023-11-30 11:10:56 -08:00
Geometrically
d4f9c97cca
Payouts code ( #765 )
...
* push to rebase
* finish most
* finish most
* Finish impl
* Finish paypal
* run prep
* Fix comp err
2023-11-29 11:00:08 -07:00
Wyatt Verchere
f731c1080d
Side types overhaul ( #762 )
...
* side types overhaul
* fixes, fmt clippy
* migration fix for v3 bug
* fixed migration issues
* more tested migration changes
* fmt, clippy
* bump cicd
---------
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com >
2023-11-28 11:36:59 -07:00
Wyatt Verchere
fd18185ef0
More staging fixes ( #768 )
...
* Fixes issues
* staging fixes
* passes tests
* fixes. fmt/clippy
* drops datapack/plugin extras
* fixed failing test
---------
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com >
2023-11-26 20:29:59 -07:00
Carter
0efbbed5e2
Add fields to OAuth ( #769 )
...
* Add url and description fields to OAuthClient
model
* Add OAuth client icon editing and deleting
endpoints
* updated query data
* fix missed queries
* sqlx prep
* update with tests builds
2023-11-25 21:48:51 -07:00
Wyatt Verchere
172b93d07f
Tests v2 recreate ( #760 )
...
* added common project information; setup for v2 test change
* all tests now use with_test_environment
* progress, failing
* finished re-adding tests
* prepare
* cargo sqlx prepare -- --tests
* fmt; clippy; prepare
* sqlx prepare
* adds version_create fix and corresponding test
* merge fixes; rev
* fmt, clippy, prepare
* test cargo sqlx prepare
2023-11-25 14:42:39 -07:00
Wyatt Verchere
74973e73e6
Tests 3 restructure ( #754 )
...
* moved files
* moved files
* initial v3 additions
* moves req data
* tests passing, restructuring, remove v2
* fmt; clippy; prepare
* merge conflicts + issues
* merge conflict, fmt, clippy, prepare
* revs
* fixed failing test
* fixed tests
2023-11-16 11:36:03 -07:00
Wyatt Verchere
375f992a0c
Adds ordering on loader fields enum ( #755 )
...
* now sorts on ordering, fmt clippy prepare
* fixed tests
* removed accidenetal printlns
2023-11-13 19:19:06 -07:00
Wyatt Verchere
ae1c5342f2
Search test + v3 ( #731 )
...
* search patch for accurate loader/gv filtering
* backup
* basic search test
* finished test
* incomplete commit; backing up
* Working multipat reroute backup
* working rough draft v3
* most tests passing
* works
* search v2 conversion
* added some tags.rs v2 conversions
* Worked through warnings, unwraps, prints
* refactors
* new search test
* version files changes fixes
* redesign to revs
* removed old caches
* removed games
* fmt clippy
* merge conflicts
* fmt, prepare
* moved v2 routes over to v3
* fixes; tests passing
* project type changes
* moved files over
* fmt, clippy, prepare, etc
* loaders to loader_fields, added tests
* fmt, clippy, prepare
* fixed sorting bug
* reversed back- wrong order for consistency
* fmt; clippy; prepare
---------
Co-authored-by: Jai A <jaiagr+gpg@pm.me >
2023-11-11 16:40:10 -08:00
Carter
97ccb7df94
Knossos Oauth 2 Flow Changes ( #752 )
...
* adjust type and response format
* Replace Found with Ok for handled redirects
* scope parse fix
* change apps query from body to query
* adjust tests for new response type
* remove unused imports
* Clippy fixes
2023-11-11 10:42:01 -07:00
Jackson Kruger
911d442340
Version ordering [MOD-551] ( #740 )
...
* Version ordering
* cargo sqlx prepare
* Use version ordering for maven
* Use version ordering when sorting versions in Rust (not just SQL)
* Thanks clippy
2023-11-01 09:36:39 -07:00
Jackson Kruger
6cfd4637db
OAuth 2.0 Authorization Server [MOD-559] ( #733 )
...
* WIP end-of-day push
* Authorize endpoint, accept endpoints, DB stuff for oauth clients, their redirects, and client authorizations
* OAuth Client create route
* Get user clients
* Client delete
* Edit oauth client
* Include redirects in edit client route
* Database stuff for tokens
* Reorg oauth stuff out of auth/flows and into its own module
* Impl OAuth get access token endpoint
* Accept oauth access tokens as auth and update through AuthQueue
* User OAuth authorization management routes
* Forgot to actually add the routes lol
* Bit o cleanup
* Happy path test for OAuth and minor fixes for things it found
* Add dummy data oauth client (and detect/handle dummy data version changes)
* More tests
* Another test
* More tests and reject endpoint
* Test oauth client and authorization management routes
* cargo sqlx prepare
* dead code warning
* Auto clippy fixes
* Uri refactoring
* minor name improvement
* Don't compile-time check the test sqlx queries
* Trying to fix db concurrency problem to get tests to pass
* Try fix from test PR
* Fixes for updated sqlx
* Prevent restricted scopes from being requested or issued
* Get OAuth client(s)
* Remove joined oauth client info from authorization returns
* Add default conversion to OAuthError::error so we can use ?
* Rework routes
* Consolidate scopes into SESSION_ACCESS
* Cargo sqlx prepare
* Parse to OAuthClientId automatically through serde and actix
* Cargo clippy
* Remove validation requiring 1 redirect URI on oauth client creation
* Use serde(flatten) on OAuthClientCreationResult
2023-10-30 09:14:38 -07:00
Wyatt Verchere
9d0e762f36
More tests ( #729 )
...
* permissions tests
* finished permissions; organization tests
* clippy, fmt
* post-merge fixes
* teams changes
* refactored to use new api
* fmt, clippy
* sqlx prepare
* revs
* revs
* re-tested
* re-added name
* reverted to matrix
2023-10-17 00:53:10 -07:00
Geometrically
07ecd13554
Switch to Trolley for Modrinth Payments ( #727 )
...
* most of trolley
* Switch to trolley for payments
* run prepare
* fix clippy
* fix more
* Fix most tests + bitflags
* Update src/auth/flows.rs
Co-authored-by: Jackson Kruger <jak.kruger@gmail.com >
* Finish trolley
* run prep for merge
* Update src/queue/payouts.rs
Co-authored-by: Jackson Kruger <jak.kruger@gmail.com >
---------
Co-authored-by: Jackson Kruger <jak.kruger@gmail.com >
2023-10-11 15:55:01 -07:00
Wyatt Verchere
259c5ef3d0
Tests ( #719 )
...
* computer switch
* some fixes; github action
* added pr to master
* sqlx database setup
* switched intial GHA test db
* removed sqlx database setup
* unfinished patch route
* bug fixes + tests
* more tests, more fixes, cargo fmt
* merge fixes
* more tests, full reorganization
* fmt, clippy
* sqlx-data
* revs
* removed comments
* delete revs
2023-10-06 09:57:33 -07:00
Wyatt Verchere
a1b59d4545
Organizations ( #712 )
...
* untested, unformatted, un-refactored
* minor simplification
* simplification fix
* refactoring, changes
* some fixes
* fixes, refactoring
* missed cache
* revs
* revs - more!
* removed donation links; added all org members to route
* renamed slug to title
---------
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com >
2023-10-02 10:56:57 -07:00
Emma Alexia Triphora
4bbfc8ccc5
Add NeoForge modpack and autoupdater support ( #707 )
2023-09-24 11:40:03 -04:00
Wyatt Verchere
4bf030993a
Collections users route ( #711 )
...
* users route
* Added user route
* collections
2023-09-18 11:43:58 -07:00
Wyatt Verchere
9bd2cb3c7e
Collections ( #688 )
...
* initial draft; unfinished
* images, fixes
* fixes
* println
* revisions
* fixes
* alternate context setup version
* rev
* partial revs
* rev
* clippy ,fmt
* fmt/clippy/prepare
* fixes
* revs
2023-09-13 22:22:32 -07:00
Wyatt Verchere
35cd277fcf
analytics ( #695 )
...
* playtime
* other routes, improvements
* fmt clippy
* revs
---------
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com >
2023-09-13 16:35:47 -07:00
Emma Alexia Triphora
e6818023a3
Allow moderators to edit version info ( #703 )
...
* Allow moderators to edit version info
* Clippy fix
2023-09-11 14:21:50 -04:00