-
Notifications
You must be signed in to change notification settings - Fork 97
[FLAG-997] GADM country list #4891
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
Open
willian-viana
wants to merge
36
commits into
epic/gadm
Choose a base branch
from
feat/GADM-country-list-FLAG-997
base: epic/gadm
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
562fb2f
fix(map): Fix sluggish map when panning or zooming
clementprdhomme 0cef10c
feat(jsdoc): add JSDoc
willian-viana 346f660
chore(logs): remove console.logs
willian-viana b6f6e22
feat(metadata): add new geostore query for admin level 0
willian-viana a3d250d
feat(countries): migrate queries from gadm 3.6 to 4.1
willian-viana 370243c
chore(comments): remove old comments
willian-viana ba1948a
chore(gadm): replace parseGadm36Id method name to parseGadmId
willian-viana dc214fb
fix(countryProvider): fix country provider implementation
willian-viana 3b14425
feat(location-service): migrate countryConfig request from Carto to D…
willian-viana 2577f64
chore(location-service): extract search by Iso and ID logic
willian-viana f3d2753
feat(location-service): add location tests
willian-viana 903f555
feat(country-service): add tests for country service
willian-viana cfa7374
fix(gadm): fix setSubRegions actions
willian-viana a33a935
chore(gadm): remove 3.6 from GADM methods name
willian-viana 70d760e
feat(gadm): add tests for gadm utils
willian-viana 87f566c
chore(fao): remove WHERE 1 = 1
willian-viana 5d387a2
chore(location-service): refact countryConfig to avoid providers dupl…
willian-viana 3618a54
chore(country-service): improve tests adding SQL queries directly
willian-viana 15938ba
fix(gadm): fix adm level validation
willian-viana a54e8ad
fix(gadm): add name_0 as a fallback for country name
willian-viana 92f1c22
fix(gadm): remove conflicted areas from country list
willian-viana 38b88d5
fix(country-list): fix country order
willian-viana 2d276ae
feat(gadm): remove Taiwan and Caspian Sea from the GADM country list
willian-viana 1474ceb
feat(gadm): set new dataset versions
willian-viana 57b42af
chore(geostore): set gadm version to 4.1
willian-viana 247f3b7
chore(gadm): set gadm version to 4.1 inside getAreas
willian-viana 6f4e126
feat(aoi-card): display outdated areas warning and modal for gadm 3.6…
wri7tno 55c3bff
chore(country-service): enforce long names for countries larger than …
willian-viana 3ce241e
feat(search): remove carto from geocoding serach location
willian-viana 917ec76
feat(search): remove interaction when user clicks on search result
willian-viana 2b2ce96
chore(gadm): set gadm version to 4.1 and remove hard coded endpoint f…
willian-viana efe7beb
chore(cache): add timestamp to sentence requets to invalidate cache i…
willian-viana d7ea04c
fix(cache): add cache control to dataRequest axios method
willian-viana f3f4509
chore(country-service): bump dataset version to v4.1.75
willian-viana d7a3bd3
chore(cache): remove interceptor to rollback data api cache
willian-viana 304eab9
chore(mapbox): remove types from mapbox search query
willian-viana File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import Modal from 'components/modal'; | ||
|
||
const OutdatedAreaModal = ({ isOpen, handleCloseModal }) => { | ||
return ( | ||
<Modal | ||
open={isOpen} | ||
contentLabel="Outdated area" | ||
onRequestClose={handleCloseModal} | ||
className="c-confirm-subscription-modal" | ||
title=" " | ||
> | ||
<p> | ||
This area uses an outdated version of political boundaries. As a result, | ||
alert notification emails can no longer be sent for this area. To | ||
continue receiving alerts, please navigate to this area on the map and | ||
re-save the area. Instructions on how to save an area and subscribe to | ||
alerts are available via in{' '} | ||
<a | ||
href="https://www.globalforestwatch.org/help/map/guides/save-area-subscribe-forest-change-notifications/" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
this Help Center article | ||
</a> | ||
. Please read through our{' '} | ||
<a | ||
href="https://www.globalforestwatch.org/blog/data-and-tools/updated-political-boundaries-gadm?utm_medium=email&utm_source=email1&utm_campaign=gadmupdate" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
blog outlining these changes | ||
</a>{' '} | ||
and let us know if you have any questions at{' '} | ||
<a href="mailto:[email protected]">[email protected]</a>. | ||
</p> | ||
</Modal> | ||
); | ||
}; | ||
|
||
OutdatedAreaModal.propTypes = { | ||
isOpen: PropTypes.bool, | ||
handleCloseModal: PropTypes.func, | ||
}; | ||
|
||
export default OutdatedAreaModal; |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I'm glad removing the analysis modal wasn't complicated, @willian-viana . 😅