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

[RW-1142] Decommission DSR #961

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion config/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ module:
reliefweb_bookmarks: 0
reliefweb_contact: 0
reliefweb_disaster_map: 0
reliefweb_dsr: 0
reliefweb_entities: 0
reliefweb_fields: 0
reliefweb_files: 0
Expand Down
6 changes: 0 additions & 6 deletions config/reliefweb_dsr.settings.yml

This file was deleted.

15 changes: 0 additions & 15 deletions html/modules/custom/reliefweb_entities/src/Entity/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public function getPageContent() {
*/
public function getPageSections() {
$sections = [];
$sections['digital-sitrep'] = $this->getDigitalSitrepSection();

$queries = [];

Expand Down Expand Up @@ -121,20 +120,6 @@ public function getPageTableOfContents() {
];
}

/**
* Get the Digital Situation Report for the country.
*
* @return array
* Render array for the Digital Situation Report section.
*/
protected function getDigitalSitrepSection() {
$client = \Drupal::service('reliefweb_dsr.client');
$iso3 = $this->field_iso3->value;
$ongoing = $this->getModerationStatus() === 'ongoing';

return $client->getDigitalSitrepBuild($iso3, $ongoing);
}

/**
* {@inheritdoc}
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1156,14 +1156,6 @@ protected function generateEmailContentOchaSitrep(array $subscription, array $da
],
],
];
// Add link to Digital sitrep if there is one.
$dsr_url = $this->config('reliefweb_dsr')->get('ocha_dsr_url');
if (!empty($dsr_url) && isset($data['origin']) && strpos($data['origin'], $dsr_url) === 0) {
array_unshift($prefooter_parts, [
'text' => 'Digital Situation Report for ' . $country_name,
'link' => $data['origin'],
]);
}
$variables['#prefooter'] = $this->prepareFooterLinks($prefooter_parts, $subscription);

return $variables;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,6 @@ rw-document:
theme:
components/rw-document/rw-document.css: {}

rw-dsr:
css:
theme:
components/rw-dsr/rw-dsr.css: {}

rw-entity-meta:
css:
theme:
Expand Down

This file was deleted.

115 changes: 0 additions & 115 deletions html/themes/custom/common_design_subtheme/components/rw-dsr/rw-dsr.css

This file was deleted.

This file was deleted.

Loading