15f1671107
Adding strum and simplifying imports.
2025-01-08 18:08:35 -05:00
be4a05e549
Merge remote-tracking branch 'origin/main' into combined_modlog
2025-01-08 16:58:56 -05:00
dullbananas
6b1b29419d
Add custom migration runner, forbid some diesel migration
commands, fix old migrations ( #4673 )
...
* Update schema.rs
* rename
* stuff
* finish new implementation of schema_setup::run (not including revert, test, etc.)
* fmt
* refactor
* fix sql
* migriation run command
* use trigger on migrations table
* add Options with disable_migrations field for test
* rename to enable_forbid_diesel_cli_trigger
* fix
* fix merge
* diff_checker (partial)
* Revert "diff_checker (partial)"
This reverts commit 6709882e14
.
* Revert "Revert "diff_checker (partial)""
This reverts commit d4bdda5d11
.
* diff check
* improve schema diff
* timestamp replacement
* ignore column order
* remove fedi_name default
* stuff
* improve diff
* stuff
* attempt parallel pg_dump
* attempt 2
* Revert "attempt 2"
This reverts commit a909d2d643
.
* Revert "attempt parallel pg_dump"
This reverts commit 592a127954
.
* improve diff check
* finish fixing migrations
* stuff
* use advisory lock
* stuff
* Update lib.rs
* fmt
* fmt
* clippy
* Update diff_check.rs
* Update .woodpecker.yml
* Update lib.rs
* Update lib.rs
* Update lib.rs
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update lib.rs
* re-run ci
* fmt
* fmt
* Update .woodpecker.yml
* Update .woodpecker.yml
* create separate database in ci
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* Update .woodpecker.yml
* try to fix env var
* Update diff_check.rs
* Remove condition that's not needed anymore
* clippy
* exclude views and fast tables
* revert some migration changes
* fix
* fmt
* re-attempt checking character after skipped trigger name, and make code less confusing
* fmt
* fix
* rerun ci
* rerun ci
* fix strip_prefix order
* fix weird big Cargo.lock change by running `git checkout upstream/main Cargo.lock` then letting it auto update again
* fix
* remove installation commands that were removed in main branch
* Revert "remove installation commands that were removed in main branch"
This reverts commit fd65234a76
.
* move create_database_user woodpecker step to make diff less weird
* fix clippy
* Make diff check work just like before
* Move new migrations to the end
* Revert changes to old migrations
* don't assume that migrations are already sorted
* retry CI
* fix merge
* find migrations dir in debug mode using CARGO_MANIFEST_DIR variable instead of current working directory
* always use embedded migrations
* improve doc comments for migration subcommand
* clippy fix
* move cfg(test) attribute to diff_check.rs
* copy `o` variable instead of calling `o` function
* use chrono::TimeDelta Display implementation to show migration duration
2025-01-08 11:07:32 +01:00
flamingos-cant
2a89179611
Add markdown-it-footnotes ( #5303 )
2025-01-07 13:16:30 -05:00
Dessalines
0bfbd74e59
Adding combined person content and person saved tables. ( #5251 )
...
* Combined tables try 2
* Finishing up combined report table.
* Fix ts optionals.
* Adding tests, triggers, and history updates for report_combined.
* Adding profile.
* Add cursor pagination to report_combined view (#5244 )
* add pagination cursor
* store timestamp instead of id in cursor (partial)
* Revert "store timestamp instead of id in cursor (partial)"
This reverts commit 89359dde4b
.
* use paginated query builder
* Fixing migration and paged API.
* Using dullbananas trigger procedure
* Removing pointless list routes, reorganizing tests.
* Fixing column XOR check.
* Forgot to remove list report actions.
* Cleanup.
* Use internal tagging.
* Fixing api tests.
* Adding a few indexes.
* Fixing migration name.
* Fixing unique constraints.
* Addressing PR comments.
* Start working on profile combined
* Adding views and replaceable schema.
* A few changes to profile view.
- Separating the profile fetch from its combined content fetch.
- Starting to separate saved_only into its own combined view.
* Finishing up combined person_saved and person_content.
* Fixing api tests.
* Moving to api-v4 routes.
* Fixing imports.
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views/src/report_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2024-12-02-181601_add_report_combined_table/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Fixing import and fmt.
* Fixing null types in postgres.
* Comment out err.
* Fixing TS issues.
* Using dullbananas trigger procedure
* Addressing PR comments.
* Removing serialization
* Removing serialization
* Fixing duped trigger.
* Remove saved_only test.
* Remove pointless post_tags types.
* Remove pointless index.
* Changing published to saved for person_saved_combined.
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2025-01-05 12:48:57 -05:00
b6d0ecfcb3
Merge branch 'combined_profile' into combined_modlog
2025-01-03 09:16:54 -05:00
918c5e820d
Merge remote-tracking branch 'origin/main' into combined_profile
2025-01-02 16:38:02 -05:00
renovate[bot]
9c473e8298
chore(deps): update rust crate chrono to v0.4.39 ( #5295 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-01 13:28:26 -05:00
renovate[bot]
39aace0c8f
chore(deps): update rust crate clap to v4.5.23 ( #5296 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-31 23:35:13 -05:00
renovate[bot]
34672ab21b
chore(deps): update rust crate anyhow to v1.0.95 ( #5294 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-31 21:16:18 -05:00
bd5210aed0
Merge remote-tracking branch 'origin/main' into combined_profile
2024-12-23 14:59:09 -05:00
7585aac446
Fix startup errors, add unit test for scheduled task errors ( fixes #5209 ) ( #5269 )
...
* Fix startup errors, add ci check (fixes #5209 )
* normal unit test
* cleanup
* shear
* remove serial
* migration
2024-12-20 19:21:09 -05:00
Dessalines
6015ef045d
Running cargo-features-manager prune. ( #5274 )
...
- Context #5273
2024-12-20 23:20:16 +01:00
0b514c5b92
Merge branch 'combined_tables_2' into combined_profile
2024-12-19 17:44:07 -05:00
phiresky
a2a5cb091a
Community post tags (part 1) ( #4997 )
...
* partial post tags implementation
* fixes
* fix lints
* schema fix
* chore: restructure / rename tag tables
* chore: fix post view tests
* format
* lint
* expect used
* chore: update code to maybe final version
* add ts-rs optionals
* remove error context
* clippy
2024-12-18 14:54:35 +01:00
c157b8f0fc
Adding tests.
2024-12-09 19:13:25 -05:00
9d36f1f176
Adding the full combined view queries.
2024-12-09 14:34:53 -05:00
32b5411abd
A few changes to profile view.
...
- Separating the profile fetch from its combined content fetch.
- Starting to separate saved_only into its own combined view.
2024-12-07 12:38:20 -05:00
adadb45ace
Add comment about upgrading Rust version ( #5248 )
2024-12-04 08:30:42 -05:00
flamingos-cant
ff2bbf41ca
Use magic number to detemine file type ( #5225 )
...
* Revert "Guess image mime type from file extension (fixes #5196 ) (#5212 )"
This reverts commit 63ea99d38a
.
* Use magic numbers to determine file type.
* fmt
* Don't wrap response in an option
* Regen Cargo.lock
* Clean-up + guess mime type from extension if server is unresponsive
* Move some things about.
* Some cleanup.
* Removing comment lines.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-12-04 08:29:50 -05:00
ba3e6b482b
Add note wrapper ( fixes #2657 ) ( #5221 ) ( #5236 )
...
* Add note wrapper (fixes #2657 ) (#5221 )
* Add note wrapper (fixes #2657 )
* fix activity list
* fmt
* add comment
* fix api tests
* backwards compat
* remove comment
* no todo, deprecated
* wip
* make it work
* fmt
* now really working
* fixes
* add comments
2024-12-02 05:28:23 -05:00
renovate[bot]
5085d1c3e3
Update Rust crate diesel-async to v0.5.2 ( #5243 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-30 20:14:07 -05:00
renovate[bot]
44f584b414
Update Rust crate diesel to v2.2.5 ( #5242 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-30 19:57:32 -05:00
5a403bc250
Revert " Add note wrapper ( fixes #2657 ) ( #5221 )"
...
This reverts commit 7304ef3261
.
2024-11-28 11:14:04 +01:00
7304ef3261
Add note wrapper ( fixes #2657 ) ( #5221 )
...
* Add note wrapper (fixes #2657 )
* fix activity list
* fmt
* add comment
* fix api tests
* backwards compat
* remove comment
* no todo, deprecated
2024-11-26 10:37:19 +01:00
c0d7d76570
Remove getrandom dependency ( #5226 )
...
* Remove getrandom dependency
* fix
2024-11-25 18:20:45 -05:00
b8dda06f5b
More test coverage for private community, fix some bugs ( #5207 )
...
* More test coverage for private community, fix some bugs
* fmt
* stuff
* attempted fix
* fix tests
* api tests passing
* fix tests
* apub lib
2024-11-22 10:49:56 -05:00
2848c076af
Add helper method for caching function results ( #5220 )
...
* Add helper method for caching function results
* fmt
2024-11-22 09:33:35 -05:00
63ea99d38a
Guess image mime type from file extension ( fixes #5196 ) ( #5212 )
...
* Guess image mime type from file extension (fixes #5196 )
* Mime check fixes. (#5213 )
* Mime check fixes.
* Adding back comment.
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-11-19 09:48:44 -05:00
Dessalines
417e18e819
Upgrading diesel and a few other deps. ( #5203 )
...
* Upgrading diesel and a few other deps.
* Update crates/db_schema/src/utils.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2024-11-18 10:23:02 -07:00
556358f53e
Dont sanitize RSS content manually ( fixes #5171 ) ( #5174 )
2024-11-18 09:58:31 -05:00
dullbananas
2e8687e203
Combine action tables ( #4459 )
...
* Update comment_report_view.rs
* Update comment_report_view.rs
* Update post_view.rs
* Update utils.rs
* Update schema.rs
* stuff
* stuff
* fix actions
* PostLike
* fmt
* more post stuff (partial)
* remove uplete
* returning
* rename read_comments field
* PersonPostAggregates
* a
* fix usage of read_comments_amount
* comment
* community
* community_block
* instance_block
* LocalUser::export_backup
* person_block
* person
* stuff (partial)
* update cargo.lock
* fix lemmy_db_schema
* post_view
* comment_report_view
* comment_view
* post_report_view
* find and replace some selected values
* private_message_view
* vote_view
* comment_reply_view
* some action views
* action_query, find_action
* community_view
* block views
* person_mention_view
* remove struct update
* refactor actions function
* actions_alias
* clean up return types and trait bounds
* fix all rust code
* fmt
* clippy fix
* Migrate tables
* migrate indexes and contraints, and add statistics
* fix what appears to be a messed up merge
* commented thing
* Create uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update up.sql
* Update comment.rs
* Update Cargo.toml
* Update comment.rs
* Update post.rs
* Update comment_view.rs
* Update post_view.rs
* Update comment_reply_view.rs
* Update person_mention_view.rs
* Update Cargo.toml
* Update utils.rs
* Update comment.rs
* Update utils.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update comment.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update comment_view.rs
* Update post_view.rs
* Update triggers.sql
* Update triggers.sql
* Update triggers.sql
* Update comment_reply_view.rs
* Update person_mention_view.rs
* Update person_mention_view.rs
* Update comment_reply_view.rs
* Update uplete.rs
* start removing post_id column
* Update down.sql
* Update schema.rs
* Update comment.rs
* Update comment.rs
* Update comment.rs
* Update schema.rs
* Update comment.rs
* Update like.rs
* Update comment.rs
* Update up.sql
* Update down.sql
* Update down.sql
* Update up.sql
* Update up.sql
* Update down.sql
* Update comment.rs
* Update vote_view.rs
* Update vote_view.rs
* Update comment_aggregates.rs
* Update person_aggregates.rs
* Update comment_view.rs
* Update vote_view.rs
* Update mod.rs
* Update create.rs
* Update comment.rs
* Update community.rs
* Update community.rs
* Update up.sql
* Update uplete.rs
* Update uplete.rs
* revert to UpleteCount
* Update comment.rs
* Update traits.rs
* Update comment.rs
* Update community.rs
* Update community_block.rs
* Update community.rs
* Update instance_block.rs
* Update instance.rs
* Update community_block.rs
* Update person.rs
* Update person_block.rs
* Update person.rs
* Update person_block.rs
* Update person.rs
* Update instance.rs
* Update instance_block.rs
* Update instance.rs
* Update person.rs
* Update post.rs
* Update comment.rs
* Update community.rs
* Update person.rs
* Update post_view.rs
* Update comment.rs
* reduce diff
* revert some changes in views
* Update post_view.rs
* Update comment.rs
* Update post.rs
* fix missing cfg_attr
* rewrite uplete
* Update Cargo.toml
* Update Cargo.toml
* Update uplete.rs
* add `pub` to structs that appear in trait bounds
* optional = true
* Update uplete.rs
* Update community.rs
* Update comment.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* something is wrong with me
* use new uplete function everywhere
* fmt
* fmt
* Keep post_id when comment_actions::liked is not null
* Update up.sql
* Update up.sql
* clean up up.sql
* clean up down.sql
* fix
* Update person_aggregates.rs
* fmt
* Update uplete.rs
* fmt
* Update uplete.rs
* Update community.rs
* Update uplete.rs
* Update local_user.rs
* fmt
* fix
* fix
* fmt
* improve uplete api
* Update uplete.rs
* fix
* fix
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* Update uplete.rs
* fix
* fix test
* fix db_views_actor imports
* fix uplete import in post_view test
* rerun ci
* fix AllNull syntax error
* fix DynColumn
* Fix rust syntax
* fmt
* fix iter
* pain
* Update community_moderators.rs
* Update community_moderator_view.rs
* Update uplete.rs
* Fix mistake found by chatgpt
* revert debugging stuff, change migration date, refactor constraint
* Update down.sql
* Update down.sql
* fmt
* make things added to db_schema::utils more understandable
* update rust version for woodpecker
* finish merge
* Fix index that checked read_comments twice instead of also checking read_comments_amount
* fix
* uplete: test_count, test_generated_sql_setting_one_column_null, test_count_methods
* refactor uplete sql test
* test setting both columns to null in uplete
* make AllNull generic
* test AllNull
* Merge remote-tracking branch 'upstream/main' into smoosh-tables-together
---------
Co-authored-by: phiresky <phireskyde+git@gmail.com>
2024-11-11 11:34:10 +01:00
Dessalines
df664d9d9a
Upgrading ts_rs to 10.0.0 ( #5163 )
...
* Upgrading ts_rs to 10.0.0
* Adding ts_option directives, and woodpecker test.
* Fixing ts_options.
2024-11-06 15:50:13 +01:00
Dessalines
d6d01a3b62
Adding cargo shear ( #5139 )
...
* Adding cargo shear (fail check)
* Running cargo shear.
* Fixing another missing.
* Removing cargo-machete in favor of cargo-shear
2024-10-28 11:41:09 -04:00
322538b0ce
Support markdown sub/superscript, use external crate for spoilers ( #5135 )
...
* Use external crate for spoiler tags
* Also add other plugins
* fix test
2024-10-25 17:06:37 -04:00
renovate[bot]
a2c24def87
Update Rust crate reqwest to v0.12.8 ( #5082 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-06 00:39:06 -04:00
renovate[bot]
435b207105
Update Rust crate serde_with to v3.11.0 ( #5095 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 17:37:05 -04:00
renovate[bot]
5008aa7c76
Update Rust crate serde_with to v3.10.0 ( #5094 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 15:57:17 -04:00
renovate[bot]
f17cd0a6f9
Update Rust crate regex to v1.11.0 ( #5093 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 15:22:14 -04:00
renovate[bot]
cfe2d1b18d
Update Rust crate actix-web-prom to 0.9.0 ( #5091 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 12:55:45 -04:00
renovate[bot]
6e5130378d
Update rust-futures monorepo to v0.3.31 ( #5090 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 10:30:00 -04:00
renovate[bot]
4012e35081
Update Rust crate rustls to v0.23.14 ( #5083 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 03:30:13 -04:00
renovate[bot]
2fed70f692
Update Rust crate html2text to v0.12.6 ( #5081 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 00:26:23 -04:00
renovate[bot]
f39b0992c5
Update Rust crate clap to v4.5.19 ( #5080 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-04 22:16:34 -04:00
7c2445efe7
Resolve links to remote posts into local URL ( #5057 )
...
* move code to new file
* rewrite markdown links (fixes #2987 )
* add missing file
* add helper fn
* also convert post.url
* simplify search.rs
* clippy
* also rewrite user/community links in markdown
* Call from apub handlers, cleanup
* no network requests in test
* clippy
* fix tests
* serial
* test
* no mut
* add api test
* fix api test
2024-10-03 08:24:05 -04:00
renovate[bot]
1518aed929
Update Rust crate async-trait to v0.1.83 ( #5065 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-01 07:04:11 -04:00
renovate[bot]
8d269fc08e
Update Rust crate tracing-actix-web to v0.7.13 ( #5070 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 23:48:52 -04:00
renovate[bot]
12275da318
Update Rust crate sitemap-rs to v0.2.2 ( #5069 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 23:27:01 -04:00
renovate[bot]
777992e829
Update Rust crate reqwest to v0.12.8 ( #5068 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 22:04:24 -04:00
renovate[bot]
0fcbd25ad5
Update Rust crate clap to v4.5.18 ( #5066 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 21:42:11 -04:00