2020-12-21 16:30:34 +00:00
|
|
|
[package]
|
|
|
|
name = "lemmy_db_views"
|
2022-11-17 15:23:01 +00:00
|
|
|
version.workspace = true
|
|
|
|
edition.workspace = true
|
|
|
|
description.workspace = true
|
|
|
|
license.workspace = true
|
|
|
|
homepage.workspace = true
|
|
|
|
documentation.workspace = true
|
2022-11-24 16:38:00 +00:00
|
|
|
repository.workspace = true
|
2020-12-21 16:30:34 +00:00
|
|
|
|
2021-02-25 19:43:39 +00:00
|
|
|
[lib]
|
|
|
|
doctest = false
|
|
|
|
|
2023-11-21 13:51:22 +00:00
|
|
|
[lints]
|
|
|
|
workspace = true
|
|
|
|
|
2022-05-03 17:44:13 +00:00
|
|
|
[features]
|
2023-07-14 08:45:18 +00:00
|
|
|
full = [
|
2023-08-29 14:47:57 +00:00
|
|
|
"lemmy_utils",
|
2023-07-14 08:45:18 +00:00
|
|
|
"diesel",
|
|
|
|
"diesel-async",
|
|
|
|
"diesel_ltree",
|
|
|
|
"tracing",
|
|
|
|
"ts-rs",
|
2023-08-29 14:47:57 +00:00
|
|
|
"actix-web",
|
2024-01-24 15:50:11 +00:00
|
|
|
"i-love-jesus",
|
2023-11-21 15:08:19 +00:00
|
|
|
"lemmy_db_schema/full",
|
2023-07-14 08:45:18 +00:00
|
|
|
]
|
2022-05-03 17:44:13 +00:00
|
|
|
|
2020-12-21 16:30:34 +00:00
|
|
|
[dependencies]
|
2022-11-17 15:23:01 +00:00
|
|
|
lemmy_db_schema = { workspace = true }
|
2024-02-27 16:13:52 +00:00
|
|
|
lemmy_utils = { workspace = true, optional = true }
|
2022-11-17 15:23:01 +00:00
|
|
|
diesel = { workspace = true, optional = true }
|
2023-07-14 08:45:18 +00:00
|
|
|
diesel-async = { workspace = true, optional = true }
|
|
|
|
diesel_ltree = { workspace = true, optional = true }
|
2022-11-17 15:23:01 +00:00
|
|
|
serde = { workspace = true }
|
2023-04-26 04:26:10 +00:00
|
|
|
serde_with = { workspace = true }
|
2024-12-18 13:54:35 +00:00
|
|
|
serde_json = { workspace = true }
|
2022-11-17 15:23:01 +00:00
|
|
|
tracing = { workspace = true, optional = true }
|
2023-07-14 08:45:18 +00:00
|
|
|
ts-rs = { workspace = true, optional = true }
|
2023-08-29 14:47:57 +00:00
|
|
|
actix-web = { workspace = true, optional = true }
|
2024-01-24 15:50:11 +00:00
|
|
|
i-love-jesus = { workspace = true, optional = true }
|
2024-03-04 13:19:51 +00:00
|
|
|
chrono = { workspace = true }
|
2025-01-05 17:48:57 +00:00
|
|
|
derive-new.workspace = true
|
Search combined (#5271)
* Renaming person_mention to person_comment_mention.
* Finishing up post body mentions.
* 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 89359dde4bc5fee39fdd2840828330f398444a36.
* 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.
* Adding types, fixing allow and blocklist crud.
* Starting to work on combined views.
* Using dullbananas trigger procedure
* Adding the full combined view queries.
* Adding tests.
* taplo fmt.
* Upgrading package.json deps.
* Updating pnpm
* Most of the bulk work done, need to add tests yet.
* Finishing up inbox.
* Using assert_length
* Fixing sql_format.
* Running fmt.
* Fixing cargo shear.
* Fixing clippy.
* Addressing PR comments.
* Starting to work on search combined.
* Fix
* Removing serialization
* Removing serialization
* Moving db_views_actor and _moderator into db_views.
- This is necessary because the combined views use both, and that
separation was arbitrary to begin with. db_schema has no such crate
separation.
* Adding search combined view, need to write tests yet.
* Filters done, working on tests.
* Adding tests for person, post, and community.
* Finishing up tests.
* Fixing duped trigger.
* Remove saved_only test.
* Remove pointless post_tags types.
* Remove pointless index.
* Changing published to saved for person_saved_combined.
* Removing comment.
* Renaming modlog when_ columns to published.
- Fixes #5312
* Adding strum and simplifying imports.
* Avoiding clone in map_to_enum
* Changing modded_person to other_person.
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update crates/db_views_moderator/src/modlog_combined_view.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Addressing PR comments.
* Fixing split.
* Revert "Adding strum and simplifying imports."
This reverts commit 15f167110721429dd6e465f522250c8beb3d4dd7.
* Running fmt.
* Using assert + matches instead of filter_map.
* Adding listPersonContent check.
* Updating lemmy-js-client
* Fixing mark all as read route, changing mark read to SuccessResponse.
* Adding post body mention api test, fixing api tests.
* Fixing route locations, and api tests.
* Formatting sql.
* Formatting sql 2.
* Fixing search result, running clippy.
* Fixing ts_option.
* Adding search_combined.score column, and DB triggers.
* Fixing API tests.
* Adding an index for score.
* Update crates/db_schema/src/newtypes.rs
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Avoiding inner joins for up.sql
* Adding person_aggregates.published column.
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2025-01-28 03:58:19 +00:00
|
|
|
strum = { workspace = true }
|
2021-02-25 19:43:39 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2022-11-17 15:23:01 +00:00
|
|
|
serial_test = { workspace = true }
|
|
|
|
tokio = { workspace = true }
|
2024-01-04 09:47:18 +00:00
|
|
|
pretty_assertions = { workspace = true }
|
2024-02-16 12:24:35 +00:00
|
|
|
url = { workspace = true }
|
2024-12-18 13:54:35 +00:00
|
|
|
test-context = "0.3.0"
|