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/d 10 readiness #343

Merged
merged 35 commits into from
Jan 24, 2024
Merged

Feature/d 10 readiness #343

merged 35 commits into from
Jan 24, 2024

Conversation

martinyde
Copy link
Contributor

@martinyde martinyde commented Aug 16, 2023

https://jira.itkdev.dk/browse/HRIN-754

Preparing for d 10.

  • Make custom modules and themes pass code analysis and compatible with d10
  • Update contrib modules (Major versions):
    • better_exposed_filters
    • captcha
    • color_field
    • openid_connect
    • search_autocomplete
    • toolbar_visibility
    • twig_tweak
    • viewsreference

Copy link
Contributor

@rimi-itk rimi-itk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

We should go for just core_version_requirement: ^10 in custom modules to keep things clean.

Copy link
Contributor

@rimi-itk rimi-itk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with a comment.

$documents[] = $destination;
}

foreach (glob($document_source_path . '/*.docx') as $document) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code duplicates the PDF stuff above. Consider rewriting to

$extensions = ['pdf', 'docx'];
foreach ($extensions as $extension) {
  foreach (glob($document_source_path . '/*.' . $extension) as $document) {
    $destination = $this->fileSystem->copy($document, $document_target_path . '/' . basename($document), FileSystemInterface::EXISTS_REPLACE);
    $documents[] = $destination;
  }
}

@rimi-itk rimi-itk merged commit c904e39 into develop Jan 24, 2024
11 checks passed
@rimi-itk rimi-itk deleted the feature/d-10-readiness branch January 24, 2024 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants