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

Feature/drupal 10 #375

Merged
merged 34 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
31f4824
Drupal 10
martinyde Nov 23, 2023
5a2a6f3
Swithched deskpro-api-client-php to use fork
martinyde Nov 23, 2023
3c62637
Added void as return type to certain methods. Updated pretix module
martinyde Nov 23, 2023
dd9573e
Updated config to match drupal 10
martinyde Nov 23, 2023
e1b574c
Added system flag config
martinyde Nov 23, 2023
b9d2ec9
Merge branch 'feature/d-10-readiness' into feature/drupal-10
martinyde Nov 24, 2023
5978b30
Changed composer dev dependencies
martinyde Nov 24, 2023
09127e6
Added dev dependencies
martinyde Nov 24, 2023
8c5d16d
Updated deskpro apiclient repo and guzzle adapter
martinyde Nov 24, 2023
45f162f
Updated deskpro apiclient repo and guzzle adapter
martinyde Nov 24, 2023
daf310e
Updated config to match d10
martinyde Nov 24, 2023
ef17d17
Changed config
martinyde Nov 24, 2023
1f31317
Udated docker
martinyde Nov 24, 2023
8765c94
Updated itk_pretix module
martinyde Nov 24, 2023
581e8b7
Added chx/drupal-issue-fork pr, and added client_max_body_size 90M
martinyde Nov 27, 2023
af62378
Removed upgrade status module
martinyde Nov 27, 2023
386437f
Updated itk-pretix
martinyde Dec 14, 2023
8fa7551
HRIN-767: Patched Publication Date module
rimi-itk Dec 18, 2023
34cf85c
Merge branch 'feature/d-10-readiness' into feature/drupal-10
rimi-itk Jan 22, 2024
2a11636
Updated config
rimi-itk Jan 22, 2024
a25bfd5
Added empty view texts to prevent views from being hidden
rimi-itk Jan 22, 2024
e4fcc1c
Always returned array from block build function
rimi-itk Jan 22, 2024
b0387bd
Updated changelog
rimi-itk Jan 22, 2024
a4fdf75
Upgraded Allowed Formats
rimi-itk Jan 22, 2024
28b6bcf
Upgraded Config Ignore
rimi-itk Jan 22, 2024
9ca23ac
Upgraded Inline Entity Form
rimi-itk Jan 22, 2024
140bd6b
Updated Drupal (and Drush)
rimi-itk Jan 22, 2024
45901cd
Updated empty view texts
rimi-itk Jan 23, 2024
616f2ab
Updated PHP version in GitHub Action
rimi-itk Jan 23, 2024
32e29b7
Made code analysis happy
rimi-itk Jan 23, 2024
0a5b823
Updated config
rimi-itk Jan 23, 2024
6daf478
Made BlockBase::render() implementation return array
rimi-itk Jan 23, 2024
e43cf2b
Newline after tagname breaks search indexer
rimi-itk Jan 23, 2024
d959b5c
Disabled AJAX in views
rimi-itk Jan 23, 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
39 changes: 15 additions & 24 deletions .docker/vhost.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ server {
}

# Block access to "hidden" files and directories whose names begin with a
# period. This includes directories used by version control systems such
# as Subversion or Git to store control files.
# period.
location ~ (^|/)\. {
return 403;
}
Expand All @@ -46,7 +45,7 @@ server {
}

location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1;
rewrite ^ /index.php;
}

# Don't allow direct access to PHP files in the vendor directory.
Expand All @@ -55,13 +54,23 @@ server {
return 404;
}

# Protect files and directories from prying eyes.
location ~* \.(engine|inc|install|make|module|profile|po|sh|.*sql|.tar|.gz|.bz2|theme|twig|tpl(\.php)?|xtmpl|yml)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\.(?!well-known).*|Entries.*|Repository|Root|Tag|Template|composer\.(json|lock)|web\.config)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig|\.save)$ {
deny all;
return 404;
}

location ~ '\.php$|^/update.php' {
include fastcgi_params;

fastcgi_buffers 16 32k;
fastcgi_buffer_size 64k;
fastcgi_busy_buffers_size 64k;

fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
include fastcgi_params;

# Ensure the php file exists. Mitigates CVE-2019-11043
try_files $fastcgi_script_name =404;

fastcgi_param HTTP_PROXY "";
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
Expand All @@ -72,30 +81,12 @@ server {
fastcgi_pass phpfpm:9000;
}

location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}

# Handle private files through Drupal. Private file's path can come
# with a language prefix.
location ~ ^(/[a-z\-]+)?/system/files/ {
try_files $uri /index.php?$query_string;
}

location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
try_files $uri @rewrite;
expires max;
log_not_found off;
}

# Enforce clean URLs
# Removes index.php from urls like:
# www.example.com/index.php/my-page --> www.example.com/my-page
#
# Removes index.php from urls like www.example.com/index.php/my-page --> www.example.com/my-page
# Could be done with 301 for permanent or other redirect codes.
absolute_redirect off;
if ($request_uri ~* "^(.*/)index\.php/(.*)") {
return 301 /$2;
return 307 $1$2;
}

error_log /dev/stderr;
Expand Down
55 changes: 35 additions & 20 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,32 @@
"reference": "3.0.3"
}
}
},
"deskpro/deskpro-api-client-php": {
"type": "package",
"package": {
"name": "deskpro/deskpro-api-client-php",
"version": "4.1.0",
"type": "library",
"source": {
"url": "https://github.com/itk-dev/deskpro-api-client-php.git",
"type": "git",
"reference": "hotfix/change-psr-log-dependency"
},
"autoload": {
"psr-0": {
"Deskpro\\": "src/"
}
}
}
}
},
"require": {
"php": "^8.1.0",
"bower-asset/jquery-simple-color": "^1.2",
"bower-asset/jqueryui-touch-punch": "dev-gh-pages",
martinyde marked this conversation as resolved.
Show resolved Hide resolved
"bower-asset/spectrum": "^1.8",
"chx/drupal-issue-fork": "dev-main",
"composer/installers": "^1.7",
"cure53/dompurify": "^3.0",
"cweagans/composer-patches": "^1.7",
Expand All @@ -96,10 +115,11 @@
"drupal/color_field": "^3.0",
"drupal/config_ignore": "^2.2",
"drupal/config_import_locale": "^2.0",
"drupal/core-composer-scaffold": "^9.3",
"drupal/core-project-message": "^9.3",
"drupal/core-recommended": "^9.3",
"drupal/csv_serialization": "^2.0 || ^3.0",
"drupal/core": "^10.0",
"drupal/core-composer-scaffold": "^10.0",
"drupal/core-project-message": "^10.0",
"drupal/core-recommended": "^10.0",
"drupal/csv_serialization": "^4.0",
"drupal/ds": "^3.1",
"drupal/editor_advanced_link": "^2.2",
"drupal/email_registration": "^1.0@RC",
Expand All @@ -108,8 +128,8 @@
"drupal/entityqueue": "^1.0@alpha",
"drupal/field_group": "^3.0",
"drupal/flag": "^4.0@alpha",
"drupal/hoeringsportal_citizen_proposal": "1.0-dev",
"drupal/hoeringsportal_citizen_proposal_archiving": "1.0-dev",
"drupal/hoeringsportal_citizen_proposal": "^1.0",
"drupal/hoeringsportal_citizen_proposal_archiving": "^1.0",
"drupal/hoeringsportal_data": "^1.0",
"drupal/hoeringsportal_deskpro": "^1.0",
"drupal/hoeringsportal_openid_connect": "^1.0",
Expand All @@ -124,21 +144,19 @@
"drupal/quick_node_clone": "^1.12",
"drupal/redirect": "^1.6",
"drupal/search_autocomplete": "^3.0",
"drupal/system_status": "^2.8",
"drupal/toolbar_visibility": "^2.1",
"drupal/twig_tweak": "^3.2",
"drupal/view_custom_table": "^2.0",
"drupal/views_data_export": "^1.3",
"drupal/viewsreference": "^2.0@beta",
"drupal/webform": "^6.2@beta",
"drupal/webprofiler": "^9.0",
"drupal/xls_serialization": "^1.2",
"drush/drush": "^11",
"itk-dev/composer-virtualenv": "^1.0",
"itk-dev/itk_azure_video": "^2.0",
"itk-dev/itk_pretix": "^1.0",
"itk-dev/itk_siteimprove": "^1.2",
"itk-dev/serviceplatformen": "^1.4",
"itk-dev/serviceplatformen": "^1.5",
"itk-dev/web_accessibility_statement": "^1.0",
"onelogin/php-saml": "^4.0",
"oomphinc/composer-installers-extender": "^2.0",
Expand All @@ -147,13 +165,12 @@
"webmozart/path-util": "^2.3"
},
"require-dev": {
"drupal/content_fixtures": "^3.1",
"drupal/core-dev": "^9.3",
"drupal/masquerade": "^2.0",
"drupal/upgrade_status": "^3.13",
"mglaman/phpstan-drupal": "^1.1",
"phpstan/extension-installer": "^1.2",
"phpstan/phpstan-deprecation-rules": "^1.1"
"drupal/content_fixtures": "^3.1",
"drupal/core-dev": "^10.0",
"drupal/masquerade": "^2.0",
"mglaman/phpstan-drupal": "^1.1",
"phpstan/extension-installer": "^1.2",
"phpstan/phpstan-deprecation-rules": "^1.1"
},
"conflict": {
"drupal/drupal": "*"
Expand All @@ -170,7 +187,8 @@
"drupal/core-project-message": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"oomphinc/composer-installers-extender": true,
"phpstan/extension-installer": true
"phpstan/extension-installer": true,
"chx/drupal-issue-fork": true
}
},
"scripts": {
Expand Down Expand Up @@ -240,9 +258,6 @@
"composer-exit-on-patch-failure": true,
"enable-patching": true,
"patches": {
"deskpro/deskpro-api-client-php": {
"Add typehinting to APIResponse to avoid drupal warnings in log": "patches/deskpro/deskpro-api-client-php/addTypeHinting.patch"
},
"drupal/better_exposed_filters": {
"Add option to hide exposed filter field labels (https://www.drupal.org/project/better_exposed_filters/issues/3282228)": "https://www.drupal.org/files/issues/2022-09-08/bef-visually_hidden.3282228.8.patch",
"Add option to hide exposed sort field labels (based on “Add option to hide exposed filter field labels”)": "patches/drupal/better_exposed_filters/visually-hidden-label-on-sort.patch"
Expand Down
Loading
Loading