Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge upstream changes up to d5f02adad716520b6b9014553bc730dcef5b2f50 #2744

Merged
merged 63 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
cec8e34
Remove unused CI env vars (#30660)
mjankowski Jun 11, 2024
1dfd516
Fix duplicate `@context` attribute in user export (#30653)
ClearlyClaire Jun 12, 2024
ced4633
New Crowdin Translations (automated) (#30666)
github-actions[bot] Jun 12, 2024
dff48ff
fix(deps): update dependency sass to v1.77.5 (#30665)
renovate[bot] Jun 12, 2024
9321a45
Combine CI migration tests (#30661)
mjankowski Jun 12, 2024
47f97e1
Update the bundler-audit vulnerability DB when running (#30658)
mjankowski Jun 12, 2024
0a7249c
fix(deps): update dependency pino to v9.2.0 (#30659)
renovate[bot] Jun 12, 2024
54ab70d
chore(deps): update yarn to v4.3.0 (#30644)
renovate[bot] Jun 12, 2024
19f1c08
Update `rubocop-rspec` to version 3.0.1 (#30655)
mjankowski Jun 12, 2024
9984243
Fix a few visual glitches with link previews in web UI (#30670)
Gargron Jun 12, 2024
a5a1584
Update README.md (#30626)
devsujay19 Jun 12, 2024
bf56e98
Fix notifications from limited users being outright dropped (#30559)
ClearlyClaire Jun 12, 2024
7ad5a3a
Disable `consistent-return` eslint rule for Typescript files (#30675)
renchap Jun 13, 2024
fc2f49c
chore(deps): update docker.io/ruby docker tag to v3.3.3 (#30679)
renovate[bot] Jun 13, 2024
b379dc1
Update parser to version 3.3.3.0 (#30676)
mjankowski Jun 13, 2024
fe74045
chore(deps): update dependency ruby to v3.3.3 (#30667)
renovate[bot] Jun 13, 2024
37f5354
Fix limit handling in grouped notifications CTE (#30685)
ClearlyClaire Jun 13, 2024
ed6d243
Add author links on the explore page in web UI (#30521)
Gargron Jun 13, 2024
64fc173
chore(deps): update dependency sanitize to v6.1.1 (#30683)
renovate[bot] Jun 13, 2024
474dda7
chore(deps): update dependency aws-sdk-s3 to v1.152.2 (#30680)
renovate[bot] Jun 13, 2024
3b7c50a
Remove bundler-audit ignore config (#30672)
mjankowski Jun 13, 2024
8889816
Use stock ruby environment on CI lint tasks (#30657)
mjankowski Jun 13, 2024
dd587d2
New Crowdin Translations (automated) (#30684)
github-actions[bot] Jun 13, 2024
45abddb
Fix pagination attributes not being returned in ungroupable-only page…
ClearlyClaire Jun 13, 2024
3a191b3
Add `rubocop` binstub, simplify configuration (#30407)
mjankowski Jun 13, 2024
f0ca874
Include crossorigin in inert css (#30687)
louis77 Jun 13, 2024
271a8e9
Update merge conflict rebase action version (silences node version wa…
mjankowski Jun 13, 2024
f8ce61d
chore(deps): update dependency nokogiri to v1.16.6 (#30689)
renovate[bot] Jun 13, 2024
a66f6e1
Add binstub for `brakeman` (#30493)
mjankowski Jun 13, 2024
179f7b1
Build libvips from source in Dockerfile (#30571)
vmstan Jun 13, 2024
a243963
LanguageDropdown: remove unused function (#30346)
mkljczk Jun 13, 2024
3d9f00a
Fix unsafe URLs in audit log resulting from domain blocks (#27139)
ThisIsMissEm Jun 14, 2024
e1f8cd5
chore(deps): update dependency aws-sdk-s3 to v1.152.3 (#30701)
renovate[bot] Jun 14, 2024
a7264a2
New Crowdin Translations (automated) (#30704)
github-actions[bot] Jun 14, 2024
8d5ed19
Migrate `form_tag` to `form_with` in admin and auth views (#30692)
mjankowski Jun 14, 2024
ab8474f
Fix (relax) remaining `RSpec/*` cops (#30693)
mjankowski Jun 14, 2024
222ab80
Fix `Style/GlobalStdStream` cop in environments/* files (#30694)
mjankowski Jun 14, 2024
980034e
Fix `Style/NilLambda` cop in paperclip initializer (#30695)
mjankowski Jun 14, 2024
b5d1d48
Convert `form_for` -> `form_with` in views (#30700)
mjankowski Jun 14, 2024
8eb27c6
Add `most_recent_notification_id` to `NotificationGroup` (#30707)
ClearlyClaire Jun 14, 2024
b9fd757
Change sidebar text in web UI (#30696)
Gargron Jun 14, 2024
09dca8b
chore(deps): update dependency fog-openstack to v1.1.3 (#30671)
renovate[bot] Jun 14, 2024
4a5442e
Add ffmpeg and ImageMagick versions to admin dashboard (#30710)
vmstan Jun 14, 2024
2b10b0e
Reduce docker service container health check wait times (#30703)
mjankowski Jun 14, 2024
a777f7e
Restore short Ruby version on admin dashboard (#30711)
vmstan Jun 14, 2024
e80710f
chore(deps): update dependency rubocop-performance to v1.21.1 (#30731)
renovate[bot] Jun 17, 2024
dd5fc53
chore(deps): update dependency memory_profiler to v1.0.2 (#30737)
renovate[bot] Jun 17, 2024
5addffb
chore(deps): update dependency public_suffix to v5.1.1 (#30725)
renovate[bot] Jun 17, 2024
43bbdea
Fix invalid `mask-icon` when a custom instance icon is configured (#3…
renchap Jun 17, 2024
04d6cde
chore(deps): update devdependencies (non-major) (#30735)
renovate[bot] Jun 17, 2024
c739b7f
fix(deps): update dependency ws to v8.17.1 (#30733)
renovate[bot] Jun 17, 2024
f287462
Fix repeated Delete/Undo assertion in remove status service spec (#30…
mjankowski Jun 17, 2024
f195c46
chore(deps): update dependency irb to v1.13.2 (#30727)
renovate[bot] Jun 17, 2024
677f73f
Merge commit '3a191b3797dde1daf79cd748a14b87240532d543' into glitch-s…
ClearlyClaire Jun 17, 2024
454dc40
[Glitch] Fix a few visual glitches with link previews in web UI
Gargron Jun 12, 2024
fd36977
[Glitch] Add author links on the explore page in web UI
Gargron Jun 13, 2024
35d52d7
New Crowdin Translations (automated) (#30723)
github-actions[bot] Jun 17, 2024
d7b7617
Use `class_names` in admin/account_moderation_notes helper (#30719)
mjankowski Jun 17, 2024
d5f02ad
Add option to use native Ruby driver for Redis (#30717)
vmstan Jun 17, 2024
8089fa6
Merge commit 'a7264a2b42631bd876d114b96f689492e2908a8d' into glitch-s…
ClearlyClaire Jun 17, 2024
f0dba9a
[Glitch] LanguageDropdown: remove unused function
mkljczk Jun 13, 2024
395b901
Merge commit 'd5f02adad716520b6b9014553bc730dcef5b2f50' into glitch-s…
ClearlyClaire Jun 17, 2024
eccec92
[Glitch] Change sidebar text in web UI
Gargron Jun 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .bundler-audit.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ module.exports = defineConfig({
// Disable formatting rules that have been enabled in the base config
'indent': 'off',

// This is not needed as we use noImplicitReturns, which handles this in addition to understanding types
'consistent-return': 'off',

'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],

'@typescript-eslint/consistent-type-definitions': ['warn', 'interface'],
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/bundler-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ on:
paths:
- 'Gemfile*'
- '.ruby-version'
- '.bundler-audit.yml'
- '.github/workflows/bundler-audit.yml'

pull_request:
paths:
- 'Gemfile*'
- '.ruby-version'
- '.bundler-audit.yml'
- '.github/workflows/bundler-audit.yml'

schedule:
Expand All @@ -23,12 +21,17 @@ jobs:
security:
runs-on: ubuntu-latest

env:
BUNDLE_ONLY: development

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Set up Ruby environment
uses: ./.github/actions/setup-ruby
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Run bundler-audit
run: bundle exec bundler-audit
run: bundle exec bundler-audit check --update
10 changes: 8 additions & 2 deletions .github/workflows/lint-haml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,18 @@ on:
jobs:
lint:
runs-on: ubuntu-latest

env:
BUNDLE_ONLY: development

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Set up Ruby environment
uses: ./.github/actions/setup-ruby
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Run haml-lint
run: |
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/lint-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,24 @@ jobs:
lint:
runs-on: ubuntu-latest

env:
BUNDLE_ONLY: development

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Set up Ruby environment
uses: ./.github/actions/setup-ruby
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Set-up RuboCop Problem Matcher
uses: r7kamura/rubocop-problem-matchers-action@v1

- name: Run rubocop
run: bundle exec rubocop
run: bin/rubocop

- name: Run brakeman
if: always() # Run both checks, even if the first failed
run: bundle exec brakeman
run: bin/brakeman
2 changes: 1 addition & 1 deletion .github/workflows/rebase-needed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Check for merge conflicts
uses: eps1lon/actions-label-merge-conflict@releases/2.x
uses: eps1lon/actions-label-merge-conflict@v3
with:
dirtyLabel: 'rebase needed :construction:'
repoToken: '${{ secrets.GITHUB_TOKEN }}'
Expand Down
95 changes: 0 additions & 95 deletions .github/workflows/test-migrations-two-step.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Test one step migrations
name: Historical data migration test

on:
push:
branches-ignore:
Expand All @@ -17,7 +18,7 @@ jobs:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
paths: '["Gemfile*", ".ruby-version", "**/*.rb", ".github/workflows/test-migrations-one-step.yml", "lib/tasks/tests.rake"]'
paths: '["Gemfile*", ".ruby-version", "**/*.rb", ".github/workflows/test-migrations.yml", "lib/tasks/tests.rake"]'

test:
runs-on: ubuntu-latest
Expand All @@ -40,32 +41,31 @@ jobs:
POSTGRES_USER: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
--health-interval 10ms
--health-timeout 3s
--health-retries 50
ports:
- 5432:5432

redis:
image: redis:7-alpine
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
--health-interval 10ms
--health-timeout 3s
--health-retries 50
ports:
- 6379:6379

env:
CONTINUOUS_INTEGRATION: true
DB_HOST: localhost
DB_USER: postgres
DB_PASS: postgres
DISABLE_SIMPLECOV: true
RAILS_ENV: test
BUNDLE_CLEAN: true
BUNDLE_FROZEN: true
BUNDLE_WITHOUT: 'development production'
BUNDLE_WITHOUT: 'development:production'
BUNDLE_JOBS: 3
BUNDLE_RETRY: 3

Expand All @@ -75,14 +75,19 @@ jobs:
- name: Set up Ruby environment
uses: ./.github/actions/setup-ruby

- name: Create database
run: './bin/rails db:create'

- name: Run historical migrations with data population
run: './bin/rails tests:migrations:prepare_database'

- name: Run all remaining migrations
run: './bin/rails db:migrate'
- name: Test "one step migration" flow
run: |
bin/rails db:drop
bin/rails db:create
bin/rails tests:migrations:prepare_database
bin/rails db:migrate
bin/rails tests:migrations:check_database

- name: Check migration result
run: './bin/rails tests:migrations:check_database'
- name: Test "two step migration" flow
run: |
bin/rails db:drop
bin/rails db:create
SKIP_POST_DEPLOYMENT_MIGRATIONS=true bin/rails tests:migrations:prepare_database
SKIP_POST_DEPLOYMENT_MIGRATIONS=true bin/rails db:migrate
bin/rails db:migrate
bin/rails tests:migrations:check_database
Loading