Skip to content

Commit

Permalink
Merge pull request #2748 from ClearlyClaire/glitch-soc/merge-upstream
Browse files Browse the repository at this point in the history
Merge upstream changes up to 5f4d231
  • Loading branch information
ClearlyClaire authored Jun 19, 2024
2 parents 3bc513c + 52e34a6 commit 0c2b1f5
Show file tree
Hide file tree
Showing 19 changed files with 130 additions and 211 deletions.
3 changes: 3 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
// to `null` after any other rule set it to something.
dependencyDashboardHeader: 'This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more. Before approving any upgrade: read the description and comments in the [`renovate.json5` file](https://github.com/mastodon/mastodon/blob/main/.github/renovate.json5).',
postUpdateOptions: ['yarnDedupeHighest'],
lockFileMaintenance: {
enabled: true,
},
packageRules: [
{
// Require Dependency Dashboard Approval for major version bumps of these node packages
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,13 @@ jobs:

- uses: actions/download-artifact@v4
with:
path: './public'
path: './'
name: ${{ github.sha }}

- name: Expand archived asset artifacts
run: |
tar xvzf artifacts.tar.gz
- name: Set up Ruby environment
uses: ./.github/actions/setup-ruby
with:
Expand Down Expand Up @@ -405,7 +409,7 @@ jobs:

- uses: actions/download-artifact@v4
with:
path: './public'
path: './'
name: ${{ github.sha }}

- name: Set up Ruby environment
Expand Down
2 changes: 0 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
AllCops:
CacheRootDirectory: tmp
DisplayCopNames: true
DisplayStyleGuide: true
Exclude:
- Vagrantfile
Expand All @@ -10,7 +9,6 @@ AllCops:
ExtraDetails: true
NewCops: enable
TargetRubyVersion: 3.1 # Oldest supported ruby version
UseCache: true

inherit_from:
- .rubocop/layout.yml
Expand Down
21 changes: 7 additions & 14 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -528,32 +528,27 @@ GEM
opentelemetry-instrumentation-concurrent_ruby (0.21.3)
opentelemetry-api (~> 1.0)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-excon (0.22.1)
opentelemetry-instrumentation-excon (0.22.3)
opentelemetry-api (~> 1.0)
opentelemetry-common (~> 0.20.0)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-faraday (0.24.2)
opentelemetry-instrumentation-faraday (0.24.4)
opentelemetry-api (~> 1.0)
opentelemetry-common (~> 0.20.0)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-http (0.23.3)
opentelemetry-api (~> 1.0)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-http_client (0.22.4)
opentelemetry-instrumentation-http_client (0.22.6)
opentelemetry-api (~> 1.0)
opentelemetry-common (~> 0.20.0)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-net_http (0.22.4)
opentelemetry-instrumentation-net_http (0.22.6)
opentelemetry-api (~> 1.0)
opentelemetry-common (~> 0.20.0)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-pg (0.27.3)
opentelemetry-api (~> 1.0)
opentelemetry-helpers-sql-obfuscation
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-rack (0.24.3)
opentelemetry-instrumentation-rack (0.24.5)
opentelemetry-api (~> 1.0)
opentelemetry-common (~> 0.20.0)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-rails (0.30.2)
opentelemetry-api (~> 1.0)
Expand All @@ -564,13 +559,11 @@ GEM
opentelemetry-instrumentation-active_record (~> 0.7.0)
opentelemetry-instrumentation-active_support (~> 0.5.0)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-redis (0.25.4)
opentelemetry-instrumentation-redis (0.25.6)
opentelemetry-api (~> 1.0)
opentelemetry-common (~> 0.20.0)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-instrumentation-sidekiq (0.25.3)
opentelemetry-instrumentation-sidekiq (0.25.5)
opentelemetry-api (~> 1.0)
opentelemetry-common (~> 0.20.0)
opentelemetry-instrumentation-base (~> 0.22.1)
opentelemetry-registry (0.3.1)
opentelemetry-api (~> 1.1)
Expand Down
8 changes: 0 additions & 8 deletions app/lib/admin/metrics/measure/active_users_measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,4 @@ def perform_data_query
def activity_tracker
@activity_tracker ||= ActivityTracker.new('activity:logins', :unique)
end

def time_period
(@start_at.to_date..@end_at.to_date)
end

def previous_time_period
((@start_at.to_date - length_of_period)..(@end_at.to_date - length_of_period))
end
end
4 changes: 2 additions & 2 deletions app/lib/admin/metrics/measure/base_measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ def perform_data_query
end

def time_period
(@start_at..@end_at)
(@start_at.to_date..@end_at.to_date)
end

def previous_time_period
((@start_at - length_of_period)..(@end_at - length_of_period))
((@start_at.to_date - length_of_period)..(@end_at.to_date - length_of_period))
end

def length_of_period
Expand Down
8 changes: 0 additions & 8 deletions app/lib/admin/metrics/measure/instance_accounts_measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,6 @@ def sql_query_string
SQL
end

def time_period
(@start_at.to_date..@end_at.to_date)
end

def previous_time_period
((@start_at.to_date - length_of_period)..(@end_at.to_date - length_of_period))
end

def params
@params.permit(:domain, :include_subdomains)
end
Expand Down
8 changes: 0 additions & 8 deletions app/lib/admin/metrics/measure/instance_followers_measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ def sql_query_string
SQL
end

def time_period
(@start_at.to_date..@end_at.to_date)
end

def previous_time_period
((@start_at.to_date - length_of_period)..(@end_at.to_date - length_of_period))
end

def params
@params.permit(:domain, :include_subdomains)
end
Expand Down
8 changes: 0 additions & 8 deletions app/lib/admin/metrics/measure/instance_follows_measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ def sql_query_string
SQL
end

def time_period
(@start_at.to_date..@end_at.to_date)
end

def previous_time_period
((@start_at.to_date - length_of_period)..(@end_at.to_date - length_of_period))
end

def params
@params.permit(:domain, :include_subdomains)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,6 @@ def sql_query_string
SQL
end

def time_period
(@start_at.to_date..@end_at.to_date)
end

def previous_time_period
((@start_at.to_date - length_of_period)..(@end_at.to_date - length_of_period))
end

def params
@params.permit(:domain, :include_subdomains)
end
Expand Down
8 changes: 0 additions & 8 deletions app/lib/admin/metrics/measure/instance_reports_measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ def sql_query_string
SQL
end

def time_period
(@start_at.to_date..@end_at.to_date)
end

def previous_time_period
((@start_at.to_date - length_of_period)..(@end_at.to_date - length_of_period))
end

def params
@params.permit(:domain, :include_subdomains)
end
Expand Down
8 changes: 0 additions & 8 deletions app/lib/admin/metrics/measure/instance_statuses_measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,6 @@ def latest_status_id
Mastodon::Snowflake.id_at(@end_at.end_of_day, with_random: false)
end

def time_period
(@start_at.to_date..@end_at.to_date)
end

def previous_time_period
((@start_at.to_date - length_of_period)..(@end_at.to_date - length_of_period))
end

def params
@params.permit(:domain, :include_subdomains)
end
Expand Down
8 changes: 0 additions & 8 deletions app/lib/admin/metrics/measure/interactions_measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,4 @@ def perform_data_query
def activity_tracker
@activity_tracker ||= ActivityTracker.new('activity:interactions', :basic)
end

def time_period
(@start_at.to_date..@end_at.to_date)
end

def previous_time_period
((@start_at.to_date - length_of_period)..(@end_at.to_date - length_of_period))
end
end
8 changes: 0 additions & 8 deletions app/lib/admin/metrics/measure/tag_accounts_measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ def tag
@tag ||= Tag.find(params[:id])
end

def time_period
(@start_at.to_date..@end_at.to_date)
end

def previous_time_period
((@start_at.to_date - length_of_period)..(@end_at.to_date - length_of_period))
end

def params
@params.permit(:id)
end
Expand Down
8 changes: 0 additions & 8 deletions app/lib/admin/metrics/measure/tag_uses_measure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ def tag
@tag ||= Tag.find(params[:id])
end

def time_period
(@start_at.to_date..@end_at.to_date)
end

def previous_time_period
((@start_at.to_date - length_of_period)..(@end_at.to_date - length_of_period))
end

def params
@params.permit(:id)
end
Expand Down
1 change: 1 addition & 0 deletions config/locales/sv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ sv:
filter_by_action: Filtrera efter åtgärd
filter_by_user: Filtrera efter användare
title: Revisionslogg
unavailable_instance: "(domännamn inte tillgängligt)"
announcements:
destroyed_msg: Kungörelsen raderades!
edit:
Expand Down
14 changes: 7 additions & 7 deletions config/templates/privacy-policy.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
This privacy policy describes how %{domain}s ("%{domain}s", "we", "us")
collects, protects and uses the personally identifiable information you may
provide through the %{domain}s website or its API. The policy also
describes the choices available to you regarding our use of your personal
information and how you can access and update this information. This policy
does not apply to the practices of companies that %{domain}s does not own
or control, or to individuals that %{domain}s does not employ or manage.
This privacy policy describes how %{domain} ("%{domain}", "we", "us") collects,
protects and uses the personally identifiable information you may provide
through the %{domain} website or its API. The policy also describes the choices
available to you regarding our use of your personal information and how you can
access and update this information. This policy does not apply to the practices
of companies that %{domain} does not own or control, or to individuals that
%{domain} does not employ or manage.

# What information do we collect?

Expand Down
3 changes: 0 additions & 3 deletions spec/support/streaming_server_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ def stop
RSpec.configure do |config|
config.before :suite do
if streaming_examples_present?
# Compile assets
Webpacker.compile

# Start the node streaming server
streaming_server_manager.start(port: STREAMING_PORT)
end
Expand Down
Loading

0 comments on commit 0c2b1f5

Please sign in to comment.