Compare commits

...

3 Commits

Author SHA1 Message Date
Matt Jankowski
afbd4ee045
Merge 838f21461c into 74fc4dbacf 2025-07-15 17:05:56 +00:00
diondiondion
74fc4dbacf
refactor: Only remove pointer-events when necessary (#35390)
Some checks failed
Check i18n / check-i18n (push) Waiting to run
Chromatic / Run Chromatic (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
CodeQL / Analyze (ruby) (push) Waiting to run
Check formatting / lint (push) Waiting to run
CSS Linting / lint (push) Waiting to run
Ruby Testing / build (production) (push) Waiting to run
Ruby Testing / build (test) (push) Waiting to run
Ruby Testing / test (.ruby-version) (push) Blocked by required conditions
Ruby Testing / test (3.2) (push) Blocked by required conditions
Ruby Testing / test (3.3) (push) Blocked by required conditions
Ruby Testing / ImageMagick tests (.ruby-version) (push) Blocked by required conditions
Ruby Testing / ImageMagick tests (3.2) (push) Blocked by required conditions
Ruby Testing / ImageMagick tests (3.3) (push) Blocked by required conditions
Ruby Testing / End to End testing (.ruby-version) (push) Blocked by required conditions
Ruby Testing / End to End testing (3.2) (push) Blocked by required conditions
Ruby Testing / End to End testing (3.3) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:8.10.2) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, opensearchproject/opensearch:2) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (3.2, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (3.3, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Blocked by required conditions
Crowdin / Upload translations / upload-translations (push) Has been cancelled
Haml Linting / lint (push) Has been cancelled
Ruby Linting / lint (push) Has been cancelled
Historical data migration test / test (14-alpine) (push) Has been cancelled
Historical data migration test / test (15-alpine) (push) Has been cancelled
Historical data migration test / test (16-alpine) (push) Has been cancelled
Historical data migration test / test (17-alpine) (push) Has been cancelled
2025-07-15 15:57:31 +00:00
Matt Jankowski
838f21461c Fix Style/FetchEnvVar cop in paperclip initializer 2025-07-03 18:26:21 -04:00
3 changed files with 17 additions and 25 deletions

View File

@ -27,12 +27,6 @@ Metrics/CyclomaticComplexity:
Metrics/PerceivedComplexity: Metrics/PerceivedComplexity:
Max: 27 Max: 27
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedVars, DefaultToNil.
Style/FetchEnvVar:
Exclude:
- 'config/initializers/paperclip.rb'
# This cop supports safe autocorrection (--autocorrect). # This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals. # Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
Style/GuardClause: Style/GuardClause:

View File

@ -2848,7 +2848,6 @@ a.account__display-name {
&__pane { &__pane {
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
pointer-events: none;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
min-width: 285px; min-width: 285px;
@ -2860,7 +2859,6 @@ a.account__display-name {
&__inner { &__inner {
position: fixed; position: fixed;
width: 285px; width: 285px;
pointer-events: auto;
height: 100%; height: 100%;
} }
} }

View File

@ -58,9 +58,9 @@ if ENV['S3_ENABLED'] == 'true'
s3_region: s3_region, s3_region: s3_region,
s3_credentials: { s3_credentials: {
bucket: ENV['S3_BUCKET'], bucket: ENV.fetch('S3_BUCKET', nil),
access_key_id: ENV['AWS_ACCESS_KEY_ID'], access_key_id: ENV.fetch('AWS_ACCESS_KEY_ID', nil),
secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'], secret_access_key: ENV.fetch('AWS_SECRET_ACCESS_KEY', nil),
}, },
s3_options: { s3_options: {
@ -86,7 +86,7 @@ if ENV['S3_ENABLED'] == 'true'
if ENV.key?('S3_ALIAS_HOST') || ENV.key?('S3_CLOUDFRONT_HOST') if ENV.key?('S3_ALIAS_HOST') || ENV.key?('S3_CLOUDFRONT_HOST')
Paperclip::Attachment.default_options.merge!( Paperclip::Attachment.default_options.merge!(
url: ':s3_alias_url', url: ':s3_alias_url',
s3_host_alias: ENV['S3_ALIAS_HOST'] || ENV['S3_CLOUDFRONT_HOST'] s3_host_alias: ENV['S3_ALIAS_HOST'] || ENV.fetch('S3_CLOUDFRONT_HOST', nil)
) )
end end
@ -121,22 +121,22 @@ elsif ENV['SWIFT_ENABLED'] == 'true'
Paperclip::Attachment.default_options.merge!( Paperclip::Attachment.default_options.merge!(
fog_credentials: { fog_credentials: {
provider: 'OpenStack', provider: 'OpenStack',
openstack_username: ENV['SWIFT_USERNAME'], openstack_username: ENV.fetch('SWIFT_USERNAME', nil),
openstack_project_id: ENV['SWIFT_PROJECT_ID'], openstack_project_id: ENV.fetch('SWIFT_PROJECT_ID', nil),
openstack_project_name: ENV['SWIFT_TENANT'], openstack_project_name: ENV.fetch('SWIFT_TENANT', nil),
openstack_tenant: ENV['SWIFT_TENANT'], # Some OpenStack-v2 ignores project_name but needs tenant openstack_tenant: ENV.fetch('SWIFT_TENANT', nil), # Some OpenStack-v2 ignores project_name but needs tenant
openstack_api_key: ENV['SWIFT_PASSWORD'], openstack_api_key: ENV.fetch('SWIFT_PASSWORD', nil),
openstack_auth_url: ENV['SWIFT_AUTH_URL'], openstack_auth_url: ENV.fetch('SWIFT_AUTH_URL', nil),
openstack_domain_name: ENV.fetch('SWIFT_DOMAIN_NAME') { 'default' }, openstack_domain_name: ENV.fetch('SWIFT_DOMAIN_NAME') { 'default' },
openstack_region: ENV['SWIFT_REGION'], openstack_region: ENV.fetch('SWIFT_REGION', nil),
openstack_cache_ttl: ENV.fetch('SWIFT_CACHE_TTL') { 60 }, openstack_cache_ttl: ENV.fetch('SWIFT_CACHE_TTL') { 60 },
openstack_temp_url_key: ENV['SWIFT_TEMP_URL_KEY'], openstack_temp_url_key: ENV.fetch('SWIFT_TEMP_URL_KEY', nil),
}, },
fog_file: { 'Cache-Control' => 'public, max-age=315576000, immutable' }, fog_file: { 'Cache-Control' => 'public, max-age=315576000, immutable' },
fog_directory: ENV['SWIFT_CONTAINER'], fog_directory: ENV.fetch('SWIFT_CONTAINER', nil),
fog_host: ENV['SWIFT_OBJECT_URL'], fog_host: ENV.fetch('SWIFT_OBJECT_URL', nil),
fog_public: true fog_public: true
) )
elsif ENV['AZURE_ENABLED'] == 'true' elsif ENV['AZURE_ENABLED'] == 'true'
@ -148,9 +148,9 @@ elsif ENV['AZURE_ENABLED'] == 'true'
protocol: 'https', protocol: 'https',
}, },
azure_credentials: { azure_credentials: {
storage_account_name: ENV['AZURE_STORAGE_ACCOUNT'], storage_account_name: ENV.fetch('AZURE_STORAGE_ACCOUNT', nil),
storage_access_key: ENV['AZURE_STORAGE_ACCESS_KEY'], storage_access_key: ENV.fetch('AZURE_STORAGE_ACCESS_KEY', nil),
container: ENV['AZURE_CONTAINER_NAME'], container: ENV.fetch('AZURE_CONTAINER_NAME', nil),
} }
) )
if ENV.key?('AZURE_ALIAS_HOST') if ENV.key?('AZURE_ALIAS_HOST')