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

USAGOV-1773-clear-menu-link: #1923

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from
Open

Conversation

omerida
Copy link
Contributor

@omerida omerida commented Sep 4, 2024

Jira Task

https://cm-jira.usa.gov/browse/USAGOV-1937

Description

Adds an event subscriber to clear menu link cache.

Needed when running a Tome export to build page navigation correctly when more than one path is exported by a process.

Type of Changes

  • New Feature
  • Bugfix
  • Frontend (Twig, Sass, JS)
    • Add screenshot showing what it should look like
  • Drupal Config (requires "drush cim")
  • New Modules (requires rebuild)
  • Documentation
  • Infrastructure
    • CMS
    • WAF
    • Egress
    • Tools
  • Other

Testing Instructions

Change Requirements

  • Requires New Documentation (Link: {})
  • Requires New Config
  • Requires New Content

Validation Steps

  • Run scripts/tome-static.sh (updated path-count to 10) to export the site to html/
  • Browse the static site exported and confirm the left nav menu, on pages that have one, is the correct menu (i.e., not missing or seeing Spanish navigation on English pages and vice-versa).

Security Review

  • Adds/updates software (including a library or Drupal module)
  • Communication with external service
  • Changes permissions or workflow
  • Requires SSPP updates

Reviewer Reminders

  • Reviewed code changes
  • Reviewed functionality
  • Security review complete or not required

Post PR Approval Instructions

Follow these steps as soon as you merge the new changes.

  1. Go to the USAGov Circle CI project.
  2. Find the commit of this pull request.
  3. Build and deploy the changes.
  4. Update the Jira ticket by changing the ticket status to Review in Test and add a comment. State whether the change is already visible on cms-dev.usa.gov and beta-dev.usa.gov, or if the deployment is still in process.

@omerida omerida marked this pull request as draft September 4, 2024 17:59
@omerida omerida marked this pull request as ready for review September 6, 2024 14:50
…ink cache.

 Needed when running a Tome export to build page navigation correctly when more than one path is exported by a process.
@akf akf self-requested a review September 9, 2024 22:30
@@ -30,7 +30,7 @@ echo "Starting Static Site Generation : "$(date)
mkdir -p /var/www/html
# time drush -vvv tome:static --uri=$URI --process-count=1 --path-count=1
# time drush tome:static -y --uri=$URI --process-count=5 --path-count=1
time drush tome:static -y --uri=$URI --process-count=$TOME_PROCESS_COUNT --path-count=1
time drush tome:static -y --uri=$URI --process-count=$TOME_PROCESS_COUNT --path-count=10
Copy link
Member

Choose a reason for hiding this comment

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

Let's drop this back down to 1.
I've identified what I think is another Tome bug; many details are on the Jira ticket.

class RequestPrepareSubscriber implements EventSubscriberInterface {

public function __construct(
private MenuActiveTrailInterface $menu_active_trail,
Copy link
Member

Choose a reason for hiding this comment

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

Is this what you want to inherit from?

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