Fix #3501 - Fix aggregation counts for elements removed and deleted (#3543)
authorPiotr Juszczyk <74842304+pijuszczyk@users.noreply.github.com>
Mon, 10 Jul 2023 15:30:30 +0000 (17:30 +0200)
committerGitHub <noreply@github.com>
Mon, 10 Jul 2023 15:30:30 +0000 (11:30 -0400)
commit9c2490d4f24671cc2770ba68feaf6d7562b1db6a
tree8ed5f6bad34808e3b3e734e85cf21b9700b93e6f
parent651f2747ee704b149ca59bb5dce6ec2ff05cc5b7
Fix #3501 - Fix aggregation counts for elements removed and deleted (#3543)

Two bugs were found and fixed:
- previously elements removal and deletion were counted as two separate disappearances
- removing comments did not affect post aggregations
crates/db_schema/src/aggregates/community_aggregates.rs
crates/db_schema/src/aggregates/post_aggregates.rs
crates/db_schema/src/aggregates/site_aggregates.rs
migrations/2023-07-08-101154_fix_soft_delete_aggregates/down.sql [new file with mode: 0644]
migrations/2023-07-08-101154_fix_soft_delete_aggregates/up.sql [new file with mode: 0644]