Earlopain
691b67f0e7
[Gems] Pin rails to the minor version
...
Rails minor updates are basically like major ones, without removing
deprecations but all the potential bugs that come with a major update.
Make a concious decision to update to these new versions.
2023-10-15 19:24:53 +02:00
Earlopain
2620ea983e
[Wiki] Better diffing view
2023-10-15 13:08:28 +02:00
Earlopain
3a58ac0938
Switch to OpenSearch ( #550 )
...
Run the following commands to import data into OpenSearch:
Post.document_store.create_index!
PostVersion.document_store.create_index!
Post.document_store.import
PostVersion.document_store.import
* Add opensearch client
* Add url param to force use opensearch
* Switch import method over to opensearch
* Index to opensearch as well
* Add option to gradually roll out os
* Index os with separate queue
* Move os post creation to job as well
* Exclusively use the OpenSearch client
* Stop enqueuing OsIndexUpdateJob
* Remove remaining elasticsearch code
Bump faraday since v2 is no longer blocked
2023-10-02 18:57:07 +02:00
Earlopain
0bd651c08b
[Elasticsearch] Remove elasticsearch-model gem
...
This should be the bulk of the work to integrate with opensearch-ruby
2023-09-16 15:52:05 +02:00
Earlopain
17b9797657
[Misc] Remove elasticsearch-rails gem
...
There is no counterpart for OpenSearch.
`elasticsearch-model` needs to go too but that is more involved than
just removing something that only facilitates logging in dev.
This was responsible for
* displaying the time elasticsearch queries took per request
* logging the search parameters being sent to elasticsearch per query
The implementation isn't that complex and I could roll something myself but
considering that I haven't sought that information out by now I'll just don't.
Logging queries is trivial since we craft these manually ourselves.
2023-09-12 20:23:35 +02:00
Earlopain
f7286ccce3
[JS/Gems] Bump packages/gems
...
Also moves the vue-loader fix from my personal account to the org
2023-08-12 13:47:37 +02:00
Earlopain
7adac7b250
[Gems] Bump rubocop/regenerate todo
...
987 files inspected, 6509 offenses detected, 6224 offenses autocorrectable
2023-08-01 19:32:24 +02:00
Earlopain
ed268ddf02
[Gems] Bump bundler
...
This is the default version shipped with ruby atm so no need to install it
2023-05-26 20:17:48 +02:00
Earlopain
05b100f8da
[Cleanup] Remove Cache.hash
...
Rails already handles long keys for us
2023-05-19 22:14:34 +02:00
Earlopain
eb8e402152
[Gems] Update to sidekiq 7
...
Moves the redis handling into the cache class because of a naming
conflict with redis-client which is now being pulled in by sidekiq
2023-04-15 20:43:37 +02:00
Earlopain
46eca3cb97
[Gems] Remove pry-byebug
2023-04-15 17:08:37 +02:00
Earlopain
8f66cecb3f
[Gems] Bump rubocop and solargraph
2023-04-15 16:13:19 +02:00
Earlopain
6eeacde1da
[Gems] Bump DText
...
This imports 3 years of commits from Danbooru. See #487
2023-04-09 15:50:43 +02:00
Earlopain
94efeddf04
[JS/Gems] Bump packages/gems
...
Also regenerates rubocop-todo
2023-03-10 10:23:58 +01:00
Earlopain
3553987b6d
[Gems] Add rubocop-erb
2023-02-23 13:22:26 +01:00
Earlopain
1f6d674177
[Gems] Bump rubocop to latest version
2023-02-22 20:18:47 +01:00
Earlopain
a5df59da89
Merge pull request #467 from e621ng/dependabot/bundler/globalid-1.1.0
...
Bump globalid from 1.0.0 to 1.1.0
2023-02-03 20:05:09 +01:00
dependabot[bot]
6091824b6d
Bump globalid from 1.0.0 to 1.1.0
...
Bumps [globalid](https://github.com/rails/globalid ) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/rails/globalid/releases )
- [Commits](https://github.com/rails/globalid/compare/v1.0.0...v1.1.0 )
---
updated-dependencies:
- dependency-name: globalid
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-03 18:31:06 +00:00
dependabot[bot]
228ea04cdb
Bump rack from 2.2.4 to 2.2.6.2
...
Bumps [rack](https://github.com/rack/rack ) from 2.2.4 to 2.2.6.2.
- [Release notes](https://github.com/rack/rack/releases )
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rack/rack/compare/2.2.4...v2.2.6.2 )
---
updated-dependencies:
- dependency-name: rack
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-02-03 18:31:06 +00:00
Earlopain
8b28393596
[Misc] Move to org
2023-01-23 20:43:56 +01:00
Earlopain
00b976cde3
Bump dtext_rb
2023-01-11 18:38:55 +01:00
Earlopain
9c9a19b0ea
[Cleanup] Remove x64-mingw32 platform
2022-12-17 17:04:40 +01:00
Earlopain
e262f06a93
[Cleanup] Remove NoteSanizier
...
Notes are formatted using dtext only. Even though the existance of this
class suggests that some html elements are allowed, it doesn't actually do anything.
Link relativization also didn't work, same with dtext colors.
2022-12-17 17:00:27 +01:00
Kira
34bf4873b6
[Gems] Update NR gem as well
2022-12-14 23:01:00 -08:00
Kira
89095724de
[Gems] Update more gems
2022-12-14 22:59:12 -08:00
Kira
1c17ca2641
[Gems] Update gems
2022-12-14 22:55:45 -08:00
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
a34c2217b6
[Tests] Use factory_bot_rails and clean up test_helper requires
2022-11-25 19:56:14 +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
Earlopain
dd3fb80b8c
Merge remote-tracking branch 'origin/master' into rails-7
2022-10-23 19:35:57 +02:00
Earlopain
179a948cf2
[Docker] Add solargraph to the image, and a few more things
...
* Allow modifying .env without git complainging about changes to commit
* Require COMPOSE_PROFILE=solargraph for solargraph to be included in the image
* Set required vscode settings for solargraph to correctly work in docker
* Clean up .solargraph.yml. All these removed values are the default
* Disable autocomplete in the rails console
* Add a compose service to run rubocop
* Upddate rubocop config
Added some, removed some, ordered alphabetically.
Before: 844 files inspected, 6871 offenses detected, 6095 offenses autocorrectable
After: 844 files inspected, 8024 offenses detected, 7538 offenses autocorrectable
Most of the new offences are because of Style/StringLiterals (1312)
2022-10-18 23:35:18 +02:00
Earlopain
fbc06182cc
[Rails] Update to 7 and run app:update
2022-10-10 13:22:35 +02:00
Earlopain
668a004f08
[Gems] Bump dtext_rb
2022-09-28 19:03:50 +02:00
Kira
b4672dadee
[Gems] Bump gems
2022-07-13 19:44:55 -07:00
Earlopain
7331b9a5de
[Cleanup] Remove unused packages
2022-06-12 20:58:18 +02:00
Earlopain
57f711bb4d
Merge branch 'master' into ruby-3
2022-05-28 15:45:25 +02:00
dependabot[bot]
2fddda22b4
Bump rack from 2.2.3 to 2.2.3.1
...
Bumps [rack](https://github.com/rack/rack ) from 2.2.3 to 2.2.3.1.
- [Release notes](https://github.com/rack/rack/releases )
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rack/rack/compare/2.2.3...2.2.3.1 )
---
updated-dependencies:
- dependency-name: rack
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-27 19:14:47 +00:00
Kira
42578e58a5
[Gems] Add missing gems needed for prod config.
...
It seems like active_mailer loads these even if they aren't used.
2022-05-26 15:51:05 -07:00
Earlopain
eff1500059
[Cleanup] Remove some unusted dev/test gems
2022-05-26 19:23:25 +02:00
Earlopain
b05a8a5a51
[Cleanup] Replace ruby-imagespec with Vips::Image
...
ImageSpec is also capable of providing sizes for flash, but that isn't
exactly relevant anymore
2022-05-26 18:10:20 +02:00
dependabot[bot]
c1845c6800
Bump sinatra from 2.1.0 to 2.2.0
...
Bumps [sinatra](https://github.com/sinatra/sinatra ) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/sinatra/sinatra/releases )
- [Changelog](https://github.com/sinatra/sinatra/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sinatra/sinatra/compare/v2.1.0...v2.2.0 )
---
updated-dependencies:
- dependency-name: sinatra
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-19 04:58:12 +00:00
dependabot[bot]
4b7f806062
Bump nokogiri from 1.13.4 to 1.13.6
...
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri ) from 1.13.4 to 1.13.6.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases )
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.13.4...v1.13.6 )
---
updated-dependencies:
- dependency-name: nokogiri
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-19 02:50:01 +00:00
Kira
bcc14fdd55
[Gems] Update rails
2022-04-28 07:57:55 -07:00
Earlopain
87235d6e92
[Ruby] Update to 3.1
...
net-smtp is no longer bundled by default
Webrick is no longer bundled by default, new rails projects are created
with puma in the gemfile
2022-04-25 21:27:09 +02:00
Earlopain
e45e9023d4
[Bundler] Update to 2.3.12
...
This is currently the lastest version. The currently used version prints
a deprecation warning everytime with ruby 3
2022-05-19 12:04:58 +02:00
Earlopain
326bf9594f
[Cleanup] Remove mock services
2022-05-19 12:04:56 +02:00
Earlopain
3de690961d
[Cleanup] Remove unused gems and tables/columns
2022-04-07 19:17:33 +02:00