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 #2291

Merged
merged 66 commits into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
9f078e2
Fix translate button position (#25807)
renchap Jul 7, 2023
0f9b803
Regenerate brakeman ignore, pruning warnings (#25749)
mjankowski Jul 8, 2023
e0d230f
simplify counters (#25541)
takayamaki Jul 8, 2023
20e85c0
Rewrite `<ShortNumber />` as FC and TS (#25492)
alfe Jul 8, 2023
4534498
Convert `<DismissableBanner>` to Typescript (#25582)
renchap Jul 8, 2023
e4cfe4b
First pass at multi-database for read replica using Rails native adap…
krainboltgreene Jul 8, 2023
93e8a15
Add forwarding of reported replies to servers being replied to (#25341)
Gargron Jul 8, 2023
ceeb2b8
Fix explore page being inaccessible when opted-out of trends in web U…
Gargron Jul 8, 2023
a8edbcf
Fix dropdowns being disabled for logged out users in web UI (#25714)
Gargron Jul 8, 2023
a7ca33a
Add toast with option to open post after publishing in web UI (#25564)
Gargron Jul 8, 2023
41a5055
Remove unused `missed_update` state (#25832)
renchap Jul 8, 2023
cf33028
Admin mailer parameterization (#25759)
mjankowski Jul 8, 2023
d6b387a
Remove unused `NotificationMailer#digest` preview (#25719)
mjankowski Jul 8, 2023
338a0e7
Change label and design of sensitive and unavailable media in web UI …
Gargron Jul 8, 2023
610cf6c
Fix trend calculation working on too many items at a time (#25835)
Gargron Jul 8, 2023
a1f5188
Change feed merge, unmerge and regeneration workers to use a replica …
Gargron Jul 10, 2023
f3fca78
Refactor `NotificationMailer` to use parameterization (#25718)
mjankowski Jul 10, 2023
c27b82a
Add `forward_to_domains` parameter to `POST /api/v1/reports` (#25866)
ClearlyClaire Jul 10, 2023
4b58519
Fix moderation interface for remote instances with a .zip TLD (#25885)
ClearlyClaire Jul 10, 2023
999c343
Fix remote accounts being possibly persisted to database with incompl…
ClearlyClaire Jul 10, 2023
af54bf5
Fix filters not applying to explore tab (#25887)
ClearlyClaire Jul 10, 2023
99be47f
Change searching with # to include account index (#25638)
jsgoldstein Jul 10, 2023
ea10feb
fix buttons showing inconsistent styles (#25903)
Jul 11, 2023
518890a
Fixes `latest` Docker tag (#25812)
renchap Jul 11, 2023
3aa1536
Fix changelog referencing wrong API version (#25857)
trwnh Jul 11, 2023
e110325
Run brakeman in GitHub Actions (#23713)
nschonni Jul 11, 2023
9411fa4
Update brakeman ignores (#25912)
ClearlyClaire Jul 11, 2023
a02ae37
Run the rebase conflict checker once an hour (#25914)
mjankowski Jul 11, 2023
3b92499
Fix incorrect syntax in Github action configuration (#25918)
ClearlyClaire Jul 11, 2023
ca955ad
Use invariant colors on notification toasts (#25919)
Signez Jul 11, 2023
1392f31
Fix sounds not being loaded from assets host (#25931)
Signez Jul 12, 2023
8e0fd2d
Update babel monorepo (#25930)
renovate[bot] Jul 12, 2023
9e8bc56
Enable Rubocop Style/Semicolon with config (#23652)
nschonni Jul 12, 2023
1d55730
Enable Rubocop Style/FrozenStringLiteralComment (#23793)
nschonni Jul 12, 2023
f134a5f
Run Rubocop on Rakefile (#23871)
nschonni Jul 12, 2023
c75df62
Fix `RSpec/SubjectDeclaration` cop (#25312)
mjankowski Jul 12, 2023
7824df0
Exclude `lib/linter` from simplecov report (#25916)
mjankowski Jul 12, 2023
74806de
Fix `RSpec/SubjectStub` cop (#25550)
mjankowski Jul 12, 2023
b786911
Fix `Lint/SendWithMixinArgument` cop (#25920)
mjankowski Jul 12, 2023
658742b
Fix `Lint/AmbiguousBlockAssociation` cop (#25921)
mjankowski Jul 12, 2023
b8b2470
Fix `Style/SlicingWithRange` cop (#25923)
mjankowski Jul 12, 2023
5134fc6
Fix `Naming/AccessorMethodName` cop (#25924)
mjankowski Jul 12, 2023
2e1391f
Fix `Naming/MemoizedInstanceVariableName` cop (#25928)
mjankowski Jul 12, 2023
6c5a223
Fix `RSpec/StubbedMock` cop (#25552)
mjankowski Jul 12, 2023
f831452
Refactor `Snowflake` to avoid brakeman sql injection warnings (#25879)
mjankowski Jul 12, 2023
be34b43
Update `haml-lint` (#25929)
renchap Jul 12, 2023
ecd8e0d
Update Stylelint (#25819)
renchap Jul 12, 2023
1ef0148
Refactor `Trends::Query` to avoid brakeman sql injection warnings (#2…
mjankowski Jul 12, 2023
82e477b
Update dependency capistrano-rails to v1.6.3 (#25934)
renovate[bot] Jul 12, 2023
7e54a30
Merge commit '4534498a8e43f59980ee56e9938efab8580c78c8' into glitch-s…
ClearlyClaire Jul 12, 2023
0bfa4a9
[Glitch] Fix translate button position
renchap Jul 7, 2023
55ea791
[Glitch] Convert `<DismissableBanner>` to Typescript
renchap Jul 8, 2023
5b9e431
[Glitch] Rewrite `<ShortNumber />` as FC and TS
alfe Jul 8, 2023
9e311f9
[Glitch] simplify counters
takayamaki Jul 8, 2023
82eebd0
Merge commit '41a505513fb36f7c28c8d8a4270d5ee192169462' into glitch-s…
ClearlyClaire Jul 12, 2023
c250b37
[Glitch] Fix explore page being inaccessible when opted-out of trends…
Gargron Jul 8, 2023
dd0002e
Merge commit '610cf6c3713e414995ea1a57110db400ccb88dd2' into glitch-s…
ClearlyClaire Jul 12, 2023
71f8c45
[Glitch] Change label and design of sensitive and unavailable media i…
Gargron Jul 8, 2023
075887e
Merge commit 'ea10febd257b5b729a50aeb3218389763f5f4b97' into glitch-s…
ClearlyClaire Jul 12, 2023
c699dc0
[Glitch] Add `forward_to_domains` parameter to `POST /api/v1/reports`
ClearlyClaire Jul 10, 2023
c3af91c
[Glitch] Fix filters not applying to explore tab
ClearlyClaire Jul 10, 2023
15f6fa8
[Glitch] fix buttons showing inconsistent styles
Jul 11, 2023
2aadebc
Merge commit '8e0fd2d619dac93c193da6a762564244e5622498' into glitch-s…
ClearlyClaire Jul 12, 2023
ec95f62
[Glitch] Fix sounds not being loaded from assets host
Signez Jul 12, 2023
9ae60f8
Merge commit '82e477b184b5666fff7fb55933dce22ca2925db8' into glitch-s…
ClearlyClaire Jul 12, 2023
c2bfbf5
Fix various CSS issues
ClearlyClaire Jul 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
40 changes: 40 additions & 0 deletions .github/workflows/bundler-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Bundler Audit
on:
push:
branches-ignore:
- 'dependabot/**'
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:
- cron: '0 5 * * 1'

jobs:
security:
runs-on: ubuntu-latest

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

- name: Install native Ruby dependencies
run: sudo apt-get install -y libicu-dev libidn11-dev

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

- name: Run bundler-audit
run: bundle exec bundler-audit
9 changes: 5 additions & 4 deletions .github/workflows/lint-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- 'Gemfile*'
- '.rubocop*.yml'
- '.ruby-version'
- '.bundler-audit.yml'
- 'config/brakeman.ignore'
- '**/*.rb'
- '**/*.rake'
- '.github/workflows/lint-ruby.yml'
Expand All @@ -18,7 +18,7 @@ on:
- 'Gemfile*'
- '.rubocop*.yml'
- '.ruby-version'
- '.bundler-audit.yml'
- 'config/brakeman.ignore'
- '**/*.rb'
- '**/*.rake'
- '.github/workflows/lint-ruby.yml'
Expand Down Expand Up @@ -46,5 +46,6 @@ jobs:
- name: Run rubocop
run: bundle exec rubocop

- name: Run bundler-audit
run: bundle exec bundler-audit
- name: Run brakeman
if: always() # Run both checks, even if the first failed
run: bundle exec brakeman
13 changes: 2 additions & 11 deletions .github/workflows/rebase-needed.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
name: PR Needs Rebase

on:
push:
branches-ignore:
- 'dependabot/**'
- 'renovate/**'
- 'l10n_main'
pull_request_target:
branches-ignore:
- 'dependabot/**'
- 'renovate/**'
- 'l10n_main'
types: [synchronize]
schedule:
- cron: '0 * * * *'

permissions:
pull-requests: write
Expand Down
60 changes: 5 additions & 55 deletions .haml-lint_todo.yml
Original file line number Diff line number Diff line change
@@ -1,73 +1,23 @@
# This configuration was generated by
# `haml-lint --auto-gen-config`
# on 2023-03-15 00:55:01 -0400 using Haml-Lint version 0.45.0.
# on 2023-07-11 23:58:05 +0200 using Haml-Lint version 0.48.0.
# The point is for the user to remove these configuration records
# one by one as the lints are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of Haml-Lint, may require this file to be generated again.

linters:
# Offense count: 63
# Offense count: 94
RuboCop:
exclude:
- 'app/views/accounts/_og.html.haml'
- 'app/views/admin/account_warnings/_account_warning.html.haml'
- 'app/views/admin/accounts/index.html.haml'
- 'app/views/admin/accounts/show.html.haml'
- 'app/views/admin/announcements/edit.html.haml'
- 'app/views/admin/announcements/new.html.haml'
- 'app/views/admin/disputes/appeals/_appeal.html.haml'
- 'app/views/admin/domain_blocks/edit.html.haml'
- 'app/views/admin/domain_blocks/new.html.haml'
- 'app/views/admin/ip_blocks/new.html.haml'
- 'app/views/admin/reports/actions/preview.html.haml'
- 'app/views/admin/reports/index.html.haml'
- 'app/views/admin/reports/show.html.haml'
- 'app/views/admin/roles/_form.html.haml'
- 'app/views/admin/settings/about/show.html.haml'
- 'app/views/admin/settings/appearance/show.html.haml'
- 'app/views/admin/settings/registrations/show.html.haml'
- 'app/views/admin/statuses/show.html.haml'
- 'app/views/auth/registrations/new.html.haml'
- 'app/views/disputes/strikes/show.html.haml'
- 'app/views/filters/_filter_fields.html.haml'
- 'app/views/invites/_form.html.haml'
- 'app/views/layouts/application.html.haml'
- 'app/views/layouts/error.html.haml'
- 'app/views/notification_mailer/_status.html.haml'
- 'app/views/settings/applications/_fields.html.haml'
- 'app/views/settings/imports/show.html.haml'
- 'app/views/settings/preferences/appearance/show.html.haml'
- 'app/views/settings/preferences/other/show.html.haml'
- 'app/views/statuses/_detailed_status.html.haml'
- 'app/views/statuses/_poll.html.haml'
- 'app/views/statuses/show.html.haml'
- 'app/views/statuses_cleanup/show.html.haml'
- 'app/views/user_mailer/warning.html.haml'
enabled: false

# Offense count: 913
# Offense count: 960
LineLength:
enabled: false

# Offense count: 22
UnnecessaryStringOutput:
exclude:
- 'app/views/accounts/show.html.haml'
- 'app/views/admin/custom_emojis/_custom_emoji.html.haml'
- 'app/views/admin/relays/_relay.html.haml'
- 'app/views/admin/rules/_rule.html.haml'
- 'app/views/admin/statuses/index.html.haml'
- 'app/views/auth/registrations/_sessions.html.haml'
- 'app/views/disputes/strikes/show.html.haml'
- 'app/views/notification_mailer/_status.html.haml'
- 'app/views/settings/two_factor_authentication_methods/index.html.haml'
- 'app/views/statuses/_detailed_status.html.haml'
- 'app/views/statuses/_poll.html.haml'
- 'app/views/statuses/_simple_status.html.haml'
- 'app/views/user_mailer/suspicious_sign_in.html.haml'
- 'app/views/user_mailer/webauthn_credential_added.html.haml'
- 'app/views/user_mailer/webauthn_credential_deleted.html.haml'
- 'app/views/user_mailer/welcome.html.haml'
enabled: false

# Offense count: 3
ViewLength:
Expand Down
6 changes: 5 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ AllCops:
Exclude:
- db/schema.rb
- 'bin/*'
- 'Rakefile'
- 'node_modules/**/*'
- 'Vagrantfile'
- 'vendor/**/*'
Expand Down Expand Up @@ -192,6 +191,11 @@ Style/RedundantBegin:
Style/RescueStandardError:
EnforcedStyle: implicit

# Reason: Simplify some spec layouts
# https://docs.rubocop.org/rubocop/cops_style.html#stylesemicolon
Style/Semicolon:
AllowAsExpressionSeparator: true

# Reason: Originally disabled for CodeClimate, and no config consensus has been found
# https://docs.rubocop.org/rubocop/cops_style.html#stylesymbolarray
Style/SymbolArray:
Expand Down
Loading
Loading