Commit Graph

10981 Commits

Author SHA1 Message Date
Earlopain
a7228612a2
[Rails] Update to 7.1
Run `app:update`, fix the one deprecation warning
2024-01-25 22:05:29 +01:00
Earlopain
d3bee95caa
[Gems] Bump gems 2024-01-25 21:28:28 +01:00
Earlopain
10e3f1662a
[Posts] Fix fav buttons in the sidebar 2024-01-25 18:51:51 +01:00
Earlopain
0fad5d5659
[Comments] Fix exception when searching by poster_id
Caused by 2c832dc633
poster_id requires a join and these columns weren't fully qualified.
2024-01-25 18:47:26 +01:00
Earlopain
2c832dc633
[Comments] Show hidden sticky comments to Janitors 2024-01-22 19:26:00 +01:00
Earlopain
9ec5ab3e1d
[Comments] Simplify hidden method
Instead of having the cognitive load of checking if this is indeed the inverse of `visible`, just wrap it all in sql not
I'd love to have rails take care of this but haven't found something for that
2024-01-22 19:20:40 +01:00
Earlopain
c4bd8e961f
[Comments] Simplify should_see? 2024-01-22 18:57:44 +01:00
Earlopain
23fcee2356
[Comments] Allow janitor to sticky 2024-01-22 17:52:48 +01:00
Donovan Daniels
465a91a69f
[PostVersions] Allow searching for only uploads (#595)
* [PostVersions] Allow searching for only uploads

* include_blank: true
2024-01-22 17:30:42 +01:00
Cinder
f5aa020ad3
[Tickets] Add warnings to the comment report form (#588)
* [Tickets] Add warnings to the comment report form

* [Tickets] Add warnings to blip and forum reports

* Indent
2024-01-21 20:10:43 +01:00
Earlopain
5252153b73
Merge pull request #591 from Sindrake/post-type-in-info
[Posts] Show file type in the post sidebar
2024-01-21 19:51:38 +01:00
Earlopain
15728b2862
Merge pull request #593 from Sindrake/belarussian-fix
[Users] Update Belarussian welcome message
2024-01-21 19:50:30 +01:00
Earlopain
1b982f64e1
[PostVersions] Downcase tag query
Allows searches like `Hi_res` to function
2024-01-21 17:56:47 +01:00
Earlopain
ae96db548e
[Cleanup] Avoid nested methods
These are redefined every time the enclosing method is called
2024-01-21 17:55:11 +01:00
Earlopain
dd7106ed2d
[Discord] Add a report for AIBURs 2024-01-21 17:28:46 +01:00
Sindrake
048da4ea92 [Users] Update Belarussian welcome message 2024-01-19 17:51:23 -08:00
Sindrake
8d96a5194a [Posts] Show file type in the post sidebar 2024-01-16 04:07:22 -08:00
Earlopain
7826b72835
[Docker] Default to running as root
Previous setups will already contain folders created as root. Making a different user the default
will break these setups. So just make it opt-in instead.
2024-01-15 08:59:56 +00:00
Earlopain
f8d54b65bb
[Tests] Fix CI
Previous commits made docker run as a different user than root.
Unfortunately the checkout action creates the files as root, regardless of what
user might actually be running. As such, docker commands need to be run as
root as well to not run into permission issues when creating the `tmp` folder for example.

This basically reverts 2de0ebb5b8 for CI but since that was intended for local development its not a big deal
2024-01-14 20:49:30 +00:00
Earlopain
5a1e833e7e
[Docker] Set default for UID/GID in Dockerfile as well
We can't rely on this being set by using compose, since CI as an example just does `docker build .`
2024-01-14 20:13:08 +00:00
Earlopain
b0b5e2a7a7
Merge pull request #576 from DonovanDMC/post-sets-missing-postids
[PostSets] require post_ids[] for adding/removing posts
2024-01-14 21:08:21 +01:00
Donovan Daniels
8f8feac8aa
[Artists] Show error when changing notes with locked wiki page (#580)
* [Artists] Show error when changing notes with locked wiki page

* [Tests] Add tests for editing artists with locked wiki pages
2024-01-14 21:01:01 +01:00
Earlopain
10156208ac
[Docker] Start only a single service for the devcontainer
Doesn't pull the other stuff in which greatly increases startup performance and reliability
2024-01-14 18:36:16 +01:00
Earlopain
2de0ebb5b8
[Docker] Allow running as different user 2024-01-14 16:30:49 +00:00
Earlopain
4ede4cefb3
[Docker] Improve file permissions
Volumes get created on the host as the user that docker is running as (root, most likely)
This is annoying, and creates issues when running the image as a non-root user
2024-01-14 16:30:51 +01:00
Earlopain
8e94b9776e
[Discord] Generalize reports a bit more 2024-01-14 13:39:57 +01:00
Cinder
49cf270d90
[Posts] Tweak the janitor toolbar (#589)
* [Posts] Tweak the janitor toolbar

* [Posts] Remove the duplicate count from the modbar

* [Posts] More tweaks to the janitor toolbar

Based on the input from the janitors themselves.

* Linting
2024-01-14 12:38:02 +01:00
Earlopain
1fed677a45
[Tickets] Make response mandatory 2024-01-14 12:36:37 +01:00
Earlopain
bca7d2cdd0
[Posts] HIde the pending info-notice when user can approve 2024-01-14 12:19:17 +01:00
Earlopain
cd188a797f
[Tests] Handle empty git hash
The app directory isn't marked as safe => a test fails for accessing nil
Not sure how there's only 1 test failing because of this.
Either way, this is more correct
2024-01-12 22:56:20 +00:00
Earlopain
3d1a53233b
[Docker] Reenable irb autocomplete
Feels much better than when I disabled this
2024-01-12 21:16:36 +00:00
Earlopain
0f1a96476e
[Docker] Give OpenSearch more time to start up 2024-01-12 20:52:00 +00:00
Earlopain
fa9fb531f7
[Docker] Add a devcontainer
This removes the need for all the ruby-lsp setup stuff.

ruby-lsp will try to install the debug gem which contains native code, add that to the gemfile so it doesn't cause trouble.

I'm probably going to remove the rubocop/test compose services at some point. With devcontainers you are just able to run the commands directly.
2024-01-12 20:50:24 +00:00
Earlopain
5c14472878
[Misc] Tweak readme
Also adds back something to .env.sample that I accidentally removed last commit.

The installation instructions to properly set up ruby-lsp are pretty convoluted at the moment,
I'm hoping that this will improve in the future. I openend https://github.com/Shopify/ruby-lsp/issues/1303 Let's see how that goes
2024-01-12 17:52:22 +01:00
Earlopain
a0a0d8db13
[Docker] Replace solargraph with ruby-lsp
It just works.
Requires a bit of a workaround for the .rubocop.yml env setup currently in use but thats alright.
The companion ruby-lsp-rails doesn't do much right now but I imagine that to become quite powerful in the future.
2024-01-11 23:16:03 +01:00
Earlopain
7c53f9331b
Merge pull request #584 from Sindrake/post-toolbar-fix
[Posts] Fix post toolbar styles on mobile devices
2024-01-11 19:29:00 +01:00
Sindrake
bbd5ca5a39 [Posts] Add icons to some toolbar buttons 2024-01-11 09:51:03 -08:00
Earlopain
2c03ccf681
Merge pull request #581 from DonovanDMC/add-user-feedback-updater
[UserFeedback] Add Updater
2024-01-11 17:29:45 +01:00
Earlopain
40792f6d43
[Discord] Add moderator report 2024-01-09 17:24:48 +01:00
Earlopain
3e1af2183a
[Discord] Move some things for discord webhook to base class 2024-01-09 17:12:43 +01:00
Earlopain
a12b8d0d03
[Users] Remove outdated note about hidden favs in settings 2024-01-09 17:12:33 +01:00
Sindrake
21759d0845 [Posts] Fix post toolbar styles on mobile devices 2024-01-06 08:46:07 -08:00
Donovan Daniels
c11ad6b874
[UserFeedback] Add Updater 2024-01-04 14:31:54 -06:00
Donovan Daniels
21facdd638
[PostSets] require post_ids[] for adding/removing posts 2024-01-04 14:24:45 -06:00
Donovan Daniels
330fb7cb8b
[DMails] Return no content in api instead of redirecting (#575)
* [DMails] Return no content in api instead of redirecting

* Expand `fmt`, remove explicit 204
2024-01-04 17:53:16 +01:00
Earlopain
be9fca4198
Merge pull request #577 from DonovanDMC/forum-topics-mark-as-read-json
[ForumTopics] Return no content instead of redirecting when marking all as read
2024-01-03 15:57:49 +01:00
Earlopain
95003d2014
Merge pull request #578 from DonovanDMC/fix-uploads-parent_id-search
[Uploads] Fix parent_id search
2024-01-03 15:56:34 +01:00
Earlopain
ea53b3d925
Merge pull request #579 from DonovanDMC/cub-is-dead
[Uploader] Remove cub from contentious examples
2024-01-03 15:56:18 +01:00
Donovan Daniels
8b3b7c7051
[Uploader] Remove cub from contentious examples 2023-12-28 22:10:12 -06:00
Donovan Daniels
bce86389b0
[Uploads] Fix parent_id search 2023-12-22 19:13:52 -06:00