dullbananas
b1d689066f
Merge branch 'main' into bliss
2024-04-17 17:32:59 -07:00
dullbananas
0f6b13a4ec
Test coverage ( #4596 )
...
* update .gitignore
* add test-with-coverage.sh
* coverage gutters extension comment
* move lcov.info to target folder
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-04-11 10:32:07 +02:00
Dessalines
555f789269
Fixing custom_thumbnail updates. ( #4593 )
...
* Fixing custom_thumbnail updates.
* Fixing issue with image posts.
* Fixing upgrade deps script.
* Adding API tests for custom thumbnails.
* Remove pointless todo.
* Address PR comments.
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-04-10 10:59:46 -04:00
Nutomic
b4670988b5
Change exponential backoff algorithm for federation send ( #4597 )
...
* Limit federation send retry interval to one hour
* clippy
* avoid overflow
* change base for exp backoff
* ignore first error
* fix day duration
2024-04-09 19:33:01 -04:00
Dull Bananas
f07e14b24d
move sql files
2024-03-07 16:33:20 +00:00
Dull Bananas
b2fe792169
Merge remote-tracking branch 'upstream/main' into bliss
2024-03-07 16:08:01 +00:00
Nutomic
328a48c9f5
Remove error-type feature from lemmy-utils ( #4474 )
...
* Remove error-type feature from lemmy-utils
* fixes
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-02-27 11:13:52 -05:00
Dull Bananas
9cd6e778f9
fix dump_schema.sh
2024-02-16 23:23:52 +00:00
Dull Bananas
11ebc8117f
make dump_schema.sh executable
2024-02-16 23:22:17 +00:00
Dull Bananas
484fc8d8ca
a
2024-02-10 20:35:34 +00:00
dullbananas
de6ca135c7
Merge branch 'main' into bliss
2024-02-08 18:42:54 -07:00
Dessalines
9367cbdb00
Upgrading from postgres 15 -> 16-alpine. ( #4426 )
...
- Includes an upgrade script.
- Fixes #4406
2024-02-07 11:21:02 +01:00
dullbananas
668705bb7c
Update sql_format_check.sh
2024-02-03 12:53:49 -07:00
Dull Bananas
5894443637
Merge remote-tracking branch 'upstream/main' into bliss
2024-02-03 17:59:56 +00:00
Dessalines
3647a46e86
Remove ansible tagging. ( #4417 )
...
- See https://github.com/LemmyNet/lemmy-ansible/issues/215
2024-01-31 10:46:13 +01:00
Nutomic
a09027c4c0
Silence warnings from ts-rs ( #4415 )
...
* Silence warnings from ts-rs
https://github.com/Aleph-Alpha/ts-rs/issues/108
* fmt
2024-01-29 09:22:53 -05:00
Dessalines
eb0dc2fda4
Moving from yarn to pnpm. ( #4414 )
...
* Moving from yarn to pnpm.
* Prettier check.
2024-01-29 11:38:39 +01:00
dullbananas
e37be27687
Merge branch 'main' into bliss
2024-01-25 19:32:52 -07:00
dullbananas
759f6d8a9a
Better query plan viewing experience ( #4285 )
...
* stuff
* stuff including batch_upsert function
* stuff
* do things
* stuff
* different timestamps
* stuff
* Revert changes to comment.rs
* Update comment.rs
* Update comment.rs
* Update post_view.rs
* Update utils.rs
* Update up.sql
* Update up.sql
* Update down.sql
* Update up.sql
* Update main.rs
* use anyhow macro
* replace get(0) with first()
* as_slice
* Update series.rs
* Update db_perf.sh
* Update and rename crates/db_schema/src/utils/series.rs to crates/db_perf/src/series.rs
* Update utils.rs
* Update main.rs
* Update main.rs
* Update .woodpecker.yml
* fmt main.rs
* Update .woodpecker.yml
* Instance::delete at end
* Update main.rs
* Update Cargo.toml
---------
Co-authored-by: Nutomic <me@nutomic.com>
2024-01-24 10:22:33 -05:00
Dull Bananas
12b1e12c2b
Merge remote-tracking branch 'origin/change-test-db' into bliss
2023-12-27 22:47:16 +00:00
Dull Bananas
39eb0e8841
stuff
2023-12-25 17:00:59 +00:00
dullbananas
b333988882
Update start_dev_db.sh
2023-12-23 08:38:29 -07:00
dullbananas
bd67514937
Create dump_schema.sh
2023-12-23 08:36:05 -07:00
dullbananas
53f1c76421
Update sql_format_check.sh
2023-12-22 18:01:06 -07:00
dull b
82e37f7b57
stuff
2023-12-20 22:50:55 +00:00
dull b
ad2af54384
stuff
2023-12-20 20:56:37 +00:00
dull b
869a2466b7
do things
2023-12-20 06:28:27 +00:00
dull b
9b9314a1d6
stuff
2023-12-16 20:52:19 +00:00
dull b
fdebc85753
stuff including batch_upsert function
2023-12-16 05:15:08 +00:00
dull b
4fe1dd9af4
stuff
2023-12-15 20:25:38 +00:00
Dessalines
70530a8ad2
Optimizing sql format check. ( #4268 )
...
* Optimizing sql format check.
* Fixing format testing.
* Fixing format testing 2.
2023-12-14 11:35:52 -05:00
Nutomic
a790a24c4d
Revert debug auth ( #4232 )
...
* Revert "Some changes to help debug auth problems on lemmy.ml (#4220 )"
This reverts commit 16ac893e15
.
* Rename auth cookie back to jwt
2023-12-05 11:22:08 -05:00
Nutomic
16ac893e15
Some changes to help debug auth problems on lemmy.ml ( #4220 )
...
* Some changes to help debug auth problems on lemmy.ml
* fix
* clippy
2023-12-01 09:18:29 -05:00
dullbananas
30f7135f32
Use rust 1.74.0 in CI and move clippy lints to Cargo.toml ( #4170 )
...
* ci rust 1.74.0
* do it
* Update .woodpecker.yml
* Update Cargo.toml
* Update lint.sh
* Update lib.rs
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-11-21 08:51:22 -05:00
Dessalines
8deb4e5752
Convert more responses to SuccessResponse. Fixes #2860 ( #4058 )
...
* Convert more responses to SuccessResponse. Fixes #2860
* Upgrading lemmy-js-client.
2023-10-19 13:21:05 -04:00
Anon
fe3ebea95a
Add logging for pictrs uploads ( #3927 )
...
* Add logging for pictrs uploads
* cleanup
2023-09-06 09:13:30 -04:00
Dessalines
be1389420b
Adding SQL format checking via pg_format
/ pgFormatter ( #3740 )
...
* SQL format checking, 1.
* SQL format checking, 2.
* SQL format checking, 3.
* SQL format checking, 4.
* SQL format checking, 5.
* Running pg_format
* Getting rid of comment.
* Upping pg_format version.
* Using git ls-files for sql format check.
* Fixing sql lints.
* Addressing PR comments.
2023-08-02 12:44:51 -04:00
cetra3
9256895635
Cache & Optimize Woodpecker CI ( #3450 )
...
* Try using drone cache plugin
* Try another path
* Include volume
* Fix formatting
* Include fmt
* Exclude cargo dir from prettier
* Don't override cargo
* Just do check
* Add cache key
* Use different cache plugin
* Add clippy
* Try minio
* Add quotes
* Try adding secrets
* Try again
* Again
* Use correct secret formation
* Add back clippy
* Use secret for the root bucket name
* Try drone cache instead
* Add region
* Add path-style option
* Include cargo clippy
* Include everything again
* Fix formatting
* Don't run clippy twice
* Add `allow` statements for tests to pass
* Adjust endpoint to be a secret
* Fix prettier
* Merge & fix tests
* Try to restart the woodpecker test
* Change the ENV var name
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-17 11:04:14 -04:00
Dessalines
164f4b93d9
Make lemmy_api_common
wasm-compatible ( #3587 )
...
* Fixing lemmy_api_common optionals
* Adding taplo for .toml files.
* Versioning taplo in woodpecker.
* Addressing PR comments.
2023-07-14 10:45:18 +02:00
dullbananas
7d3894d5dd
Automatically manage database when running scripts/test.sh ( #3389 )
...
* Update .gitignore
* Create start-dev-db.sh
* Rename start-dev-db.sh to start_dev_db.sh
* Update .gitignore
* Update start_dev_db.sh
* Update start_dev_db.sh
* Update start_dev_db.sh
* Update start_dev_db.sh
* h
* Update test.sh
* Update start_dev_db.sh
* made it work
* Make test.sh work when run from scripts dir
2023-06-30 09:50:30 +02:00
Dessalines
6c64cb5233
Fixing release script. ( #3398 )
...
* Fixing release script.
* Version 0.18.1-rc.2
* Removing cargo update from release script.
* Fixing topdir location.
2023-06-29 16:17:59 +02:00
dullbananas
bef76630c5
Remove redundant calls to Iterator::collect
( #3365 )
...
* Remove redundant calls to `Iterator::collect`
* Update mentions.rs
* Add clippy lints and run fmt
* CI ran on the wrong commit again
2023-06-28 11:19:26 +02:00
Nutomic
e4b739320c
Run cargo update as part of release script ( #3369 )
...
To get newest dependency patches and get rid of yanked deps
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-06-27 08:59:58 -04:00
Dessalines
98482b1564
Fixing the release script. ( #3295 )
...
* Fixing the release script.
* Updating the submodules.
2023-06-27 10:28:56 +02:00
cetra3
9406c3ad2b
Adjust the config check to be a separate faster to compile binary ( #3313 )
2023-06-26 06:23:21 -04:00
Patrick Roe
87aa0acaf1
Align default DB password with documentation ( #3068 )
2023-06-13 22:23:07 +02:00
Dessalines
8cb5939f50
Adding hot_rank columns in place of function sorting. ( #2952 )
...
* Adding hot_rank columns in place of function sorting.
- Creates hot_rank columns for post, comment, and community.
- Fixes #2932
* Updating all hot ranks on startup.
* Fixing post.url migration.
* Removing update_instance_software from startup.
* Adding post_rank query
2023-06-08 16:15:15 -04:00
Charles Hall
4e5798852f
make shebangs posix compliant ( #2974 )
...
Previously, these scripts wouldn't work on exotic systems such as NixOS.
```
fd '\.sh$' -t f --exec sed -i 's@#!/bin/bash@#!/usr/bin/env bash@'
```
2023-06-08 15:38:26 -04:00
Dessalines
8c0c1628e0
Adding a vector indexing check to prevent panics. Fixes #2753 ( #2754 )
...
* Adding a vector indexing check to prevent panics. Fixes #2753
* Fixing for new clippy lint.
* Externalizing get_top_mod check. Adding get_first clippy lint
* Removing unit tests get(0)s
* Fixing some firsts manually
2023-02-28 12:34:50 +01:00
Dessalines
3735c6fabf
Adding instance software and version. Fixes #2222 ( #2733 )
...
* Adding instance software and version. Fixes #2222
* Fix clippy.
* Fix clippy 2
* Fixing some more issues.
2023-02-18 09:36:12 -05:00