Skip to content

Commit

Permalink
Move /engage/ to /community/ (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish authored Apr 23, 2024
1 parent 843a894 commit e283cf7
Show file tree
Hide file tree
Showing 22 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion config/sync/block.block.caw_theme_pagetitle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ visibility:
id: request_path
negate: true
context_mapping: { }
pages: "/node/*\r\n/engage/news*\r\n/people*\r\n/engage/events*\r\n/event-series*\r\n/publications*\r\n/user/login"
pages: "/node/*\r\n/engage/news*\r\n/community/news*\r\n/people*\r\n/engage/events*\r\n/community/events*\r\n/event-series*\r\n/publications*\r\n/user/login"
response_code:
id: response_code
negate: true
Expand Down
2 changes: 1 addition & 1 deletion config/sync/block.block.stanford_basic_pagetitle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ visibility:
id: request_path
negate: true
context_mapping: { }
pages: "/node/*\r\n/engage/news*\r\n/people*\r\n/engage/events*\r\n/event-series*\r\n/publications*"
pages: "/node/*\r\n/engage/news*\r\n/community/news*\r\n/people*\r\n/engage/events*\r\n/community/events*\r\n/event-series*\r\n/publications*"
response_code:
id: response_code
negate: true
Expand Down
2 changes: 1 addition & 1 deletion config/sync/page_manager.page.stanford_events_past.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ id: stanford_events_past
label: 'Events - Past'
description: 'Past events'
use_admin_theme: false
path: /engage/events/past
path: /community/events/past
access_logic: and
access_conditions: { }
parameters: { }
2 changes: 1 addition & 1 deletion config/sync/pathauto.pattern.event_nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies:
id: event_nodes
label: 'Event Nodes'
type: 'canonical_entities:node'
pattern: 'engage/events/[node:su_event_type:entity:name]/[node:title]'
pattern: 'community/events/[node:su_event_type:entity:name]/[node:title]'
selection_criteria:
5b543c59-0804-4b8a-b4c4-fe911792ef69:
id: 'entity_bundle:node'
Expand Down
2 changes: 1 addition & 1 deletion config/sync/pathauto.pattern.event_series.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies:
id: event_series
label: 'Event Series'
type: 'canonical_entities:node'
pattern: 'engage/events/series/[node:title]'
pattern: 'community/events/series/[node:title]'
selection_criteria:
7e335004-e90f-455b-811f-8f26492117ae:
id: 'entity_bundle:node'
Expand Down
2 changes: 1 addition & 1 deletion config/sync/pathauto.pattern.event_types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies:
id: event_types
label: 'Event Types'
type: 'canonical_entities:taxonomy_term'
pattern: 'engage/events/[term:name]'
pattern: 'community/events/[term:name]'
selection_criteria:
ab7d6e8b-cf04-47cd-b752-9e18cfb789a7:
id: 'entity_bundle:taxonomy_term'
Expand Down
2 changes: 1 addition & 1 deletion config/sync/pathauto.pattern.news_nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies:
id: news_nodes
label: 'News Nodes'
type: 'canonical_entities:node'
pattern: 'engage/news/[node:su_news_topics:0:entity:name]/[node:title]'
pattern: 'community/news/[node:su_news_topics:0:entity:name]/[node:title]'
selection_criteria:
b5eca1b9-55f1-4af5-bbac-a0f3cc014869:
id: 'entity_bundle:node'
Expand Down
2 changes: 1 addition & 1 deletion config/sync/pathauto.pattern.news_topics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies:
id: news_topics
label: 'News Topics'
type: 'canonical_entities:taxonomy_term'
pattern: 'engage/news/[term:name]'
pattern: 'community/news/[term:name]'
selection_criteria:
0ee0a4fe-7620-4ed6-9aa2-b09655827f3d:
id: 'entity_bundle:taxonomy_term'
Expand Down
6 changes: 3 additions & 3 deletions config/sync/views.view.stanford_events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ display:
css_class: stanford-events-list-page
use_ajax: true
link_display: custom_url
link_url: /engage/events
link_url: /community/events
header: { }
footer: { }
display_extenders: { }
Expand Down Expand Up @@ -6157,7 +6157,7 @@ display:
use_more_always: true
use_more_text: 'All Upcoming Events'
link_display: custom_url
link_url: /engage/events
link_url: /community/events
display_extenders: { }
block_category: 'Events Lists (Views)'
block_hide_empty: true
Expand Down Expand Up @@ -7390,7 +7390,7 @@ display:
format: stanford_html
plugin_id: text
link_display: custom_url
link_url: /engage/events/past
link_url: /community/events/past
cache_metadata:
max-age: -1
contexts:
Expand Down
8 changes: 4 additions & 4 deletions config/sync/views.view.stanford_news.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ display:
alter_text: false
text: ''
make_link: false
path: '/engage/news/{{ su_news_topics }}'
path: '/community/news/{{ su_news_topics }}'
absolute: false
external: false
replace_spaces: true
Expand Down Expand Up @@ -1363,7 +1363,7 @@ display:
alter_text: false
text: ''
make_link: false
path: '/engage/news/{{ su_news_topics }}'
path: '/community/news/{{ su_news_topics }}'
absolute: false
external: false
replace_spaces: true
Expand Down Expand Up @@ -1611,7 +1611,7 @@ display:
use_more_always: false
use_more_text: 'See All News'
link_display: custom_url
link_url: /engage/news
link_url: /community/news
block_hide_empty: 1
cache_metadata:
max-age: -1
Expand Down Expand Up @@ -1885,7 +1885,7 @@ display:
use_more_always: false
use_more_text: 'See All News'
link_display: custom_url
link_url: /engage/news
link_url: /community/news
display_extenders: { }
block_description: ''
block_category: 'News Lists (Views)'
Expand Down
2 changes: 1 addition & 1 deletion content/node/0b83d1e9-688a-4475-9673-a4c385f26247.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ default:
value: true
path:
-
alias: /engage/news
alias: /community/news
langcode: en
pathauto: 0
rh_action:
Expand Down
2 changes: 1 addition & 1 deletion content/node/139be5f7-983c-44e2-9b49-29287acdd5e2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ default:
value: true
path:
-
alias: /engage/news/sample-stanford-researchers-find-misfiring-jittery-neurons
alias: /community/news/sample-stanford-researchers-find-misfiring-jittery-neurons
langcode: en
pathauto: 1
rh_action:
Expand Down
2 changes: 1 addition & 1 deletion content/node/5760692a-e336-4a77-a3f6-7ed5def2418f.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ default:
value: true
path:
-
alias: /engage/news/sample-runners-15-feet-new-6-feet-social-distancing
alias: /community/news/sample-runners-15-feet-new-6-feet-social-distancing
langcode: en
pathauto: 1
rh_action:
Expand Down
2 changes: 1 addition & 1 deletion content/node/8ba98fcf-d390-4014-92de-c77a59b30f3b.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ default:
value: false
path:
-
alias: /engage/events
alias: /community/events
langcode: en
pathauto: 0
rh_action:
Expand Down
2 changes: 1 addition & 1 deletion content/node/fbd6c70d-fab6-4aae-956f-2df92610fad6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ default:
value: true
path:
-
alias: /engage/news/blog/sample-smith-conference
alias: /community/news/blog/sample-smith-conference
langcode: en
pathauto: 1
rh_action:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ default:
value: true
path:
-
alias: /engage/news/blog
alias: /community/news/blog
langcode: en
pathauto: 1
rh_action:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ default:
value: true
path:
-
alias: /engage/events/lecture-reading
alias: /community/events/lecture-reading
langcode: en
pathauto: 1
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ default:
value: true
path:
-
alias: /engage/news/announcement
alias: /community/news/announcement
langcode: en
pathauto: 1
rh_action:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ default:
value: true
path:
-
alias: /engage/events/conference-symposium
alias: /community/events/conference-symposium
langcode: en
pathauto: 1
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ default:
value: true
path:
-
alias: /engage/events/seminar
alias: /community/events/seminar
langcode: en
pathauto: 1
6 changes: 3 additions & 3 deletions tests/codeception/acceptance/Content/EventsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function testListIntro(AcceptanceTester $I) {
}

$I->logInWithRole('site_manager');
$I->amOnPage('/engage/events');
$I->amOnPage('/community/events');
$I->canSeeResponseCodeIs(200);
$I->canSee('No events at this time');

Expand All @@ -66,7 +66,7 @@ public function testListIntro(AcceptanceTester $I) {
$I->click('Save');
$I->canSee($event->label(), 'h1');

$I->amOnPage('/engage/events');
$I->amOnPage('/community/events');
$I->canSee($event->label());
$I->cantSee('No events at this time');

Expand Down Expand Up @@ -117,7 +117,7 @@ public function testPageTitleIgnoreCondition(AcceptanceTester $I) {
if (is_string($values)) {
$values = explode("\n", $values);
}
$I->assertContains("/engage/events*", $values);
$I->assertContains("/community/events*", $values);
}

/**
Expand Down
12 changes: 6 additions & 6 deletions tests/codeception/acceptance/Content/NewsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct() {
*/
public function testListIntro(AcceptanceTester $I) {
$I->logInWithRole('site_manager');
$I->amOnPage('/engage/news');
$I->amOnPage('/community/news');
$I->canSeeResponseCodeIs(200);
}

Expand All @@ -44,13 +44,13 @@ public function testDefaultContentExists(AcceptanceTester $I) {
$I->see("Sample: For Runners, Is 15 Feet the New 6 Feet for Social Distancing?");
$I->see("Sample: Stanford researchers find that misfiring from jittery neurons");

$I->amOnPage("/engage/news/blog/sample-smith-conference");
$I->amOnPage("/community/news/blog/sample-smith-conference");
$I->see("This page is currently unpublished and not visible to the public.");

$I->amOnPage("/engage/news/announcement/sample-runners-15-feet-new-6-feet-social-distancing");
$I->amOnPage("/community/news/announcement/sample-runners-15-feet-new-6-feet-social-distancing");
$I->see("This page is currently unpublished and not visible to the public.");

$I->amOnPage("/engage/news/announcement/sample-stanford-researchers-find-misfiring-jittery-neurons");
$I->amOnPage("/community/news/announcement/sample-stanford-researchers-find-misfiring-jittery-neurons");
$I->see("This page is currently unpublished and not visible to the public.");

$I->see("News", ".su-multi-menu");
Expand All @@ -69,9 +69,9 @@ public function testVocabularyTermsExists(AcceptanceTester $I) {
* Test that the view pages exist.
*/
public function testViewPagesExist(AcceptanceTester $I) {
$I->amOnPage('/engage/news');
$I->amOnPage('/community/news');
$I->seeLink('Announcement');
$I->click("a[href='/engage/news/announcement']");
$I->click("a[href='/community/news/announcement']");
$I->canSeeResponseCodeIs(200);
$I->see("News Topics");
}
Expand Down

0 comments on commit e283cf7

Please sign in to comment.