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

SHS-5631: Retire legacy codebase #1559

Merged
merged 6 commits into from
Jun 26, 2024

Conversation

cienvaras
Copy link
Collaborator

@cienvaras cienvaras commented Jun 24, 2024

READY FOR REVIEW

Summary

  • Uninstall all legacy themes
  • Remove related configuration
  • Update hs_layouts module to remove references to su_humsci_theme.
  • Remove references to su_humsci_theme in the documentation

Need Review By (Date)

06/28

Urgency

medium

Steps to Test

  1. Setup hs_traditional and hs_colorful sites locally
  2. Confirm that the installation process is successful
  3. In both sites, login and visit the "Appereance" admin page
  4. Confirm that none of the following themes is installed:
    • Archaeology 8.x (archaeology)
    • France-Stanford 8.x (francestanford)
    • Mathematics 8.x (mathematics)
    • Stanford HumSci Theme 8.x (su_humsci_theme)
    • Stanford HumSci SubTheme 8.x (su_humsci_subtheme)
  5. Confirm that both sites work as expected

PR Checklist

@cienvaras cienvaras marked this pull request as ready for review June 25, 2024 21:38
@cienvaras
Copy link
Collaborator Author

cienvaras commented Jun 25, 2024

@joegl We're planning to add this PR to this sprint's release, but I was wondering if it's possible for you to take a quick look before, to make sure we're not missing anything. Thanks!

There's a follow-up PR (#1562) that we intend to include in the next release to remove the legacy theme files (and the hs_mathematics module)

@cienvaras cienvaras requested a review from joegl June 25, 2024 21:40
Copy link
Contributor

@joegl joegl left a comment

Choose a reason for hiding this comment

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

Looks fine to me. Just left one comment on the update hook. You might also want to merge the latest 11.0.1-release branch into the fk-stnfd-sprint-53 sprint branch before merging.

Comment on lines 853 to 864
$extension_config = \Drupal::service('config.factory')->get('core.extension');
$legacy_themes = [
'archaeology',
'francestanford',
'mathematics',
'su_humsci_subtheme',
'su_humsci_theme',
];
// Filter out the themes that are not installed.
$installed_themes = array_filter($legacy_themes, function ($theme) use ($extension_config) {
return $extension_config->get("theme.{$theme}") !== NULL;
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just use \Drupal::service('extension.list.theme)->getList() to get a list of installed themes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@joegl Thanks for the feedback! I just implemented the change, just replaced the getList() method for getAllInstalledInfo(), because getList() returns all available themes, not only the installed ones.

@cienvaras cienvaras merged commit eba5be7 into fk-stnfd-sprint-53 Jun 26, 2024
13 of 16 checks passed
@cienvaras cienvaras deleted the shs-5631-retire-legacy-codebase branch June 26, 2024 23:45
joegl pushed a commit that referenced this pull request Jul 1, 2024
* feat(shs-5664): back to top goes all the way (#1558)
* SHS-5620: CSS Code Cleanup: Hero mixins cleanup and improvements (#1557)
* fix(SHS-5648): spotlight link to /media/<id> rendered as wrong URL (#1546)
* fix(shs-5653): add missing vertical spacing in mobile grid (#1549)
* feat(shs-5645): update multi-select box default text (#1547)
* feat(shs-5646): make the multi-select box and single select box have square edges in Traditional (#1548)
* SHS-5639 issues with toolbar not behaving correctly after logging out then logging back in (#1554)
* fix(SHS-5639): fatal JS errors both when logged out/in.
* fix(SHS-5639): toolbar does not behave correctly when logging out and then back in
* feat(shs-5620): fix minor issues detected on hero mixins
* feat(shs-5620): fix minor issues detected in hb-hero-full-width mixin
* feat(shs-5620): fix more minor issues detected in hb-hero-link-field and hb-hero-button mixins
* fix(shs-5620): fix margin top in hb-gradient-hero
* fix(shs-5620): linter errors
* SHS-5631: Retire legacy codebase (#1559)
* feat(shs-5631): uninstall legacy themes and remove related configuration
* fix(shs-5631): remove references to su_humsci_theme in hs_layouts module
* chore(shs-5631): update documentation to remove references to legacy themes
* fix(shs-5631): refactor legacy themes uninstall code
* feat(shs-5656): upgrade decanter to current version (#1568)
* SHS-5643 rethink the purpose of alt text listing (#1560)
* chore(SHS-5643): enable Views options so that we can see (and debug) its queries
* fix(SHS-5643): misc bugs with alt text listing
* fix(SHS-5643): fixed fatal PHP errors when looking at the default view display
* fix(shsh-5643): update image alt text view filter labels
* feat(shs-5513): colorband link text character limit (#1569)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants