Earlopain
934c8e3b87
[Docker] Run daily maintenance
...
Remove whenever, it's not used in prod. Prod uses systemd timers.
This executes the daily task on container startup. My PC isn't going to
run when this would execute 99% of the time.
2022-12-09 18:16:53 +01:00
Earlopain
598d1f289a
[Users] Add link for email domain search
2022-12-07 18:40:36 +01:00
Earlopain
2249cb3ebb
[Cleanup] Remove joins for db post query builder
...
This just removes things that the elastic builder doesn't support, and comment_count
2022-12-07 18:10:08 +01:00
Earlopain
6d44c07c97
[Docker] Set correct pwd for yarn install
...
See #449
2022-12-07 09:07:39 +01:00
Earlopain
3294fabad5
Revert "[Docker] Remove node_modules volume"
...
This reverts commit 12cf54a8f3
.
2022-12-06 23:13:51 +01:00
Earlopain
8916eff2b6
[JS] Update yarn deps
...
Fixes a sass deprecation notice and vue compilation error.
@vue/compiler-sfc is now pulled in by the vue dependency, so it's no longer
needed to explicitly mention it in package.json
Fixes #449
2022-12-06 20:09:39 +01:00
Earlopain
12cf54a8f3
[Docker] Remove node_modules volume
...
My intention was to share it between the test/main service (I think).
But since it's using the main one as a base anways it's already there.
This volume overlays on the one from newer builds, hiding js package changes.
public_packs_test is unused as well, remove.
2022-12-06 18:51:16 +01:00
Earlopain
a2677fd609
[Docker] Add troubleshooting steps
...
Setup issues pop up occasionally, and sometimes it's fixable by
just redoing the build for some reason.
Also some general changes, heading titles/sizes,
removing outdated/useless information, formatting etc.
2022-12-06 16:04:44 +01:00
Earlopain
1dc250290c
[Users] Properly allow admins to edit users with blank email
...
See e4cfa55f35
That fix wasn't sufficient because prod doesn't have an unique index on emails.
2022-12-01 17:38:29 +01:00
Earlopain
4640862271
[Docker] Explicitly use new alpine version
...
Alpine 3.17 has jemalloc back in it's repositories, which means it can just
be installed through the package manager.
Also explicitly install postgres 12 packages. That was already possible with
alpine 3.16 but I didn't know about it back then.
2022-12-01 15:57:24 +01:00
Earlopain
cb3d34b650
[Cleanup] Use the same method names for Cache as Rails
2022-11-29 19:14:09 +01:00
Earlopain
731fc5a42f
[Users] Style usernames by default
...
This only takes effect when logged out and for newly created accounts.
2022-11-27 17:44:03 +01:00
Earlopain
50e0a49385
[Tickets] Show correct error when submitting with empty reason
...
Also constistently use qtype instead of type.
2022-11-27 17:21:22 +01:00
Earlopain
07b2f1077d
[Tickets] Fix missing template for type=posts
...
posts get converted to Post, and that exists. camelize does what I wanted to do
2022-11-27 17:14:36 +01:00
Earlopain
32c731407a
[Posts] Show the artist upload indicator to all users
2022-11-27 16:52:49 +01:00
Earlopain
5888d8d7da
[Posts] Change the artist indicator icon
2022-11-27 16:50:47 +01:00
Earlopain
60fd2b3bac
[Users] Show uploads on profile when privacy mode is active
...
Privacy mode only hides favorites. Uploads were only hidden on the profile
but where otherwise accessible.
2022-11-27 14:53:03 +01:00
Earlopain
ec776aa0c9
[Cleanup] Remove duplicate Diff::LCS code
...
The wiki page presenter wasn't used, and other_names from wiki page versions
is also unused.
That makes the remaing two implementations functionally the same.
2022-11-26 20:19:23 +01:00
Earlopain
7a028cf003
[Tests] Set CurrentUser.ip_addr in base setup
2022-11-26 16:20:16 +01:00
Earlopain
d20184ebcf
[Cleanup] Replace CurrentUser.as with CurrentUser.scoped
2022-11-26 15:41:39 +01:00
Earlopain
c4dfc5b52e
[Tests] Remove user.as_current
2022-11-26 15:25:27 +01:00
Earlopain
c68fdfce2b
[Tests] Always use CurrentUser as helper
2022-11-26 15:20:15 +01:00
Earlopain
20ef412b68
[Cleanup] Remove CurrentUser.root_url
2022-11-26 14:43:43 +01:00
Earlopain
98e55562eb
[Tests] Clean up teardowns
2022-11-26 14:02:06 +01:00
Earlopain
918a3f491d
[Tests] Remove useless travel_to
2022-11-26 13:52:37 +01:00
Earlopain
b6fb6d3ee6
[Tests] Remove as_user helper
2022-11-26 12:49:35 +01:00
Earlopain
11d1e05f7c
[Users] Force as_system to take a block
2022-11-26 12:39:56 +01:00
Earlopain
e0819dfd5f
[Tests] Remove as_admin helper
2022-11-26 12:37:22 +01:00
Earlopain
87313c437c
[Tests] Include FactoryBot::Syntax::Methods
...
The newly included create method behaves exacly like the self-written one,
with the added benefit of it not appearing in backtraces.
2022-11-25 21:06:54 +01:00
Earlopain
5e8989d3df
[Tests] Fix duplicate setup/teardown for IntegrationTest
...
Everything inherits from ActiveSupport::TestCase. Because of that
you can also simply add the global helpers to the class directly.
2022-11-25 20:15:48 +01:00
Earlopain
b690177f07
[Tests] Remove useless stub
2022-11-25 20:09:24 +01:00
Earlopain
a34c2217b6
[Tests] Use factory_bot_rails and clean up test_helper requires
2022-11-25 19:56:14 +01:00
Earlopain
00c1dc27e1
[Tests] Use file_fixture/fixture_file_upload
2022-11-25 18:44:36 +01:00
Earlopain
04b18d0852
[Tests] Disallow and stub all requests being made
...
Make CloudflareService a module for easier stubbing
2022-11-25 17:27:38 +01:00
Earlopain
32112d9e42
[Tests] Remove unused mock_redis
2022-11-25 14:33:58 +01:00
Earlopain
55d020877f
[Tests] Replace FFaker with FactoryBot sequences
2022-11-25 14:33:02 +01:00
Earlopain
c9f65608de
[Tests] Replace timecop with native Rails method
...
Also removes it at a bunch of places where it's not needed
2022-11-25 14:32:56 +01:00
Earlopain
044901ab44
[Gems] Lock sidekiq to v6
...
sidekiq-unique-jobs is incompatible with sidekiq 7, but doesn't prevent the upgrade.
2022-11-25 09:13:30 +01:00
Kira
963b67d0b9
[Rails 7] Fix bad response format on show all comments.
2022-11-24 16:58:55 -08:00
Kira
13f9f7365e
[Rails 7] Fix open redirect protection on discord route.
2022-11-24 16:56:09 -08:00
Zwagoth
debb6fe993
Merge pull request #439 from zwagoth/rails-7
...
Rails 7
2022-11-24 17:13:58 -05:00
Earlopain
372cb8a1ac
[Docker] Clean up bin/setup
2022-11-09 18:35:20 +01:00
Earlopain
79fd71e1f6
[Docker] Use healthcheck to wait for elasticsearch
...
Fixes #446
2022-11-09 18:18:30 +01:00
Earlopain
cd837d2eb8
[Misc] Update config to more closely resemble prod
2022-11-09 17:32:32 +01:00
Earlopain
4c34904642
Merge branch 'master' into rails-7
2022-10-30 18:19:22 +01:00
Earlopain
44796ecb52
[Artists] Limit length fo name and other_names
...
Fixes #444
2022-10-30 18:16:29 +01:00
Earlopain
e198c77b93
[Posts] Enable reloading of elastic paginator for dev
...
to_prepare is run on every code reload in dev, and once on startup for prod
2022-10-23 19:58:41 +02:00
Earlopain
dd3fb80b8c
Merge remote-tracking branch 'origin/master' into rails-7
2022-10-23 19:35:57 +02:00
Earlopain
cc2a395b37
[Docker] Add seeding for mascots
...
Will only work after deploy, because of the added field in the API response
2022-10-20 18:52:07 +02:00
Earlopain
0de7135df9
[Docker] Clean up seeding script
2022-10-20 18:39:45 +02:00