-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4678 from wri/bug/FLAG-911--temp-disable-viirs-as…
…-widget-option FLAG-911: temporary remove VIIIRS from the dataset op…
- Loading branch information
Showing
12 changed files
with
18 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,7 @@ const defaultConfig = { | |
alerts: [ | ||
{ | ||
id: 'cumulative-burned-areas-1', | ||
text: | ||
'We are preparing to remove MODIS Burned Areas from the Global Forest Watch site and will not be updating the data going forward. Please e-mail [email protected] with any requests to keep this dataset or with suggestions for new fire-related data sets.', | ||
text: 'We are preparing to remove MODIS Burned Areas from the Global Forest Watch site and will not be updating the data going forward. Please e-mail [email protected] with any requests to keep this dataset or with suggestions for new fire-related data sets.', | ||
visible: ['country', 'dashboard'], | ||
}, | ||
], | ||
|
@@ -99,7 +98,7 @@ const defaultConfig = { | |
fires: 3, | ||
}, | ||
settings: { | ||
dataset: 'modis_burned_area', | ||
dataset: 'modis', | ||
firesThreshold: 0, | ||
}, | ||
sentences: { | ||
|
@@ -152,12 +151,10 @@ export default { | |
refetchKeys: ['dataset'], | ||
getWidget: (widgetSettings) => { | ||
// called when settings changes | ||
if (!widgetSettings || !widgetSettings.dataset) { | ||
return defaultConfig; | ||
} | ||
if (widgetSettings.dataset !== 'modis_burned_area') { | ||
if (widgetSettings?.dataset !== 'modis_burned_area') { | ||
return firesAlertsCumulative; | ||
} | ||
|
||
return defaultConfig; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,8 +22,7 @@ const defaultConfig = { | |
alerts: [ | ||
{ | ||
id: 'regions-most-burned-areas-1', | ||
text: | ||
'We are preparing to remove MODIS Burned Areas from the Global Forest Watch site and will not be updating the data going forward. Please e-mail [email protected] with any requests to keep this dataset or with suggestions for new fire-related data sets.', | ||
text: 'We are preparing to remove MODIS Burned Areas from the Global Forest Watch site and will not be updating the data going forward. Please e-mail [email protected] with any requests to keep this dataset or with suggestions for new fire-related data sets.', | ||
visible: ['global', 'country', 'adm0', 'adm1', 'dashboard'], | ||
}, | ||
], | ||
|
@@ -119,7 +118,7 @@ const defaultConfig = { | |
page: 0, | ||
period: 'week', | ||
weeks: 4, | ||
dataset: 'modis_burned_area', | ||
dataset: 'modis', | ||
layerStartDate: null, | ||
layerEndDate: null, | ||
firesThreshold: 0, | ||
|
@@ -164,12 +163,10 @@ export default { | |
refetchKeys: ['dataset'], | ||
getWidget: (widgetSettings) => { | ||
// called when settings changes | ||
if (!widgetSettings || !widgetSettings.dataset) { | ||
return defaultConfig; | ||
} | ||
if (widgetSettings.dataset !== 'modis_burned_area') { | ||
if (widgetSettings?.dataset !== 'modis_burned_area') { | ||
return firesRanked; | ||
} | ||
|
||
return defaultConfig; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters