-
Notifications
You must be signed in to change notification settings - Fork 24
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 #6441 from OCHA-DAP/feat/HDX-10138_post_CKAN_upgra…
…de_config_declaration_yaml (Draft) HDX-10138 - Post CKAN upgrade - conf yaml
- Loading branch information
Showing
59 changed files
with
543 additions
and
367 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
8 changes: 8 additions & 0 deletions
8
ckanext-hdx_dataviz/ckanext/hdx_dataviz/config_declaration.yaml
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,8 @@ | ||
version: 1 | ||
groups: | ||
- annotation: Ignore Plugin | ||
options: | ||
- key: hdx.ignore.plugin.hdx_dataviz | ||
############################################################################### | ||
# All options are in the config_declarations.yml of the hdx_theme extension | ||
############################################################################### |
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
8 changes: 8 additions & 0 deletions
8
ckanext-hdx_hxl_preview/ckanext/hdx_hxl_preview/config_declaration.yaml
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,8 @@ | ||
version: 1 | ||
groups: | ||
- annotation: Ignore Plugin | ||
options: | ||
- key: hdx.ignore.plugin.hdx_hxl_preview | ||
############################################################################### | ||
# All options are in the config_declarations.yml of the hdx_theme extension | ||
############################################################################### |
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
8 changes: 8 additions & 0 deletions
8
ckanext-hdx_office_preview/ckanext/hdx_office_preview/config_declaration.yaml
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,8 @@ | ||
version: 1 | ||
groups: | ||
- annotation: Ignore Plugin | ||
options: | ||
- key: hdx.ignore.plugin.hdx_office_preview | ||
############################################################################### | ||
# All options are in the config_declarations.yml of the hdx_theme extension | ||
############################################################################### |
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
8 changes: 8 additions & 0 deletions
8
ckanext-hdx_org_group/ckanext/hdx_org_group/config_declaration.yaml
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,8 @@ | ||
version: 1 | ||
groups: | ||
- annotation: Ignore Plugin | ||
options: | ||
- key: hdx.ignore.plugin.hdx_org_group | ||
############################################################################### | ||
# All options are in the config_declarations.yml of the hdx_theme extension | ||
############################################################################### |
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 |
---|---|---|
|
@@ -537,16 +537,16 @@ def _additional_hdx_resource_show_processing(context, resource_dict, just_for_re | |
if not resource_dict.get('last_modified'): | ||
resource_dict['last_modified'] = resource_dict['metadata_modified'] | ||
|
||
if config.get('hdx.apihighways.enabled') == 'true': | ||
resource_dict['apihighways_id'] = _get_resource_id_apihighways(resource_dict.get('id')) | ||
if resource_dict['apihighways_id']: | ||
resource_dict['apihighways_url'] = config.get('hdx.apihighways.baseurl') + resource_dict.get( | ||
'apihighways_id') | ||
else: | ||
if 'apihighways_id' in resource_dict: | ||
del resource_dict['apihighways_id'] | ||
if 'apihighways_url' in resource_dict: | ||
del resource_dict['apihighways_url'] | ||
# if config.get('hdx.apihighways.enabled'): | ||
# resource_dict['apihighways_id'] = _get_resource_id_apihighways(resource_dict.get('id')) | ||
# if resource_dict['apihighways_id']: | ||
# resource_dict['apihighways_url'] = config.get('hdx.apihighways.baseurl') + resource_dict.get( | ||
# 'apihighways_id') | ||
# else: | ||
# if 'apihighways_id' in resource_dict: | ||
# del resource_dict['apihighways_id'] | ||
# if 'apihighways_url' in resource_dict: | ||
# del resource_dict['apihighways_url'] | ||
if resource_dict.get('url'): | ||
_process_url(context, resource_dict) | ||
if not just_for_reindexing: | ||
|
@@ -1109,7 +1109,7 @@ def hdx_guess_format_from_extension(context, data_dict): | |
def hdx_send_mail_request_tags(context, data_dict): | ||
_check_access('hdx_send_mail_request_tags', context, data_dict) | ||
|
||
hdx_email = config.get('hdx.faqrequest.email', '[email protected]') | ||
hdx_email = config.get('hdx.faqrequest.email') | ||
|
||
subject = u'New tag(s) request' | ||
email_data = { | ||
|
8 changes: 8 additions & 0 deletions
8
ckanext-hdx_package/ckanext/hdx_package/config_declaration.yaml
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,8 @@ | ||
version: 1 | ||
groups: | ||
- annotation: Ignore Plugin | ||
options: | ||
- key: hdx.ignore.plugin.hdx_package | ||
############################################################################### | ||
# All options are in the config_declarations.yml of the hdx_theme extension | ||
############################################################################### |
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 |
---|---|---|
|
@@ -56,7 +56,7 @@ def send_mail(self): | |
'pkg_title': self.request.form.get('pkg_title'), | ||
'pkg_id': self.request.form.get('pkg_id'), | ||
'pkg_url': h.url_for('dataset_read', id=self.request.form.get('pkg_id'), qualified=True), | ||
'hdx_email': config.get('hdx.faqrequest.email', '[email protected]'), | ||
'hdx_email': config.get('hdx.faqrequest.email'), | ||
} | ||
|
||
get_action('hdx_send_mail_contributor')(self.context, data_dict) |
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
38 changes: 0 additions & 38 deletions
38
ckanext-hdx_package/ckanext/hdx_package/helpers/screenshot.py
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -75,7 +75,7 @@ def contact_members(): | |
data_dict['pkg_id'] = request.form.get('pkg_id') | ||
data_dict['pkg_url'] = h.url_for('dataset_read', id=request.form.get('pkg_id'), | ||
qualified=True) | ||
data_dict['hdx_email'] = config.get('hdx.faqrequest.email', '[email protected]') | ||
data_dict['hdx_email'] = config.get('hdx.faqrequest.email') | ||
|
||
hdx_validate_email(data_dict['email']) | ||
|
||
|
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,8 @@ | ||
version: 1 | ||
groups: | ||
- annotation: Ignore Plugin | ||
options: | ||
- key: hdx.ignore.plugin.hdx_pages | ||
############################################################################### | ||
# All options are in the config_declarations.yml of the hdx_theme extension | ||
############################################################################### |
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
8 changes: 8 additions & 0 deletions
8
ckanext-hdx_search/ckanext/hdx_search/config_declaration.yaml
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,8 @@ | ||
version: 1 | ||
groups: | ||
- annotation: Ignore Plugin | ||
options: | ||
- key: hdx.ignore.plugin.hdx_search | ||
############################################################################### | ||
# All options are in the config_declarations.yml of the hdx_theme extension | ||
############################################################################### |
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
8 changes: 8 additions & 0 deletions
8
ckanext-hdx_service_checker/ckanext/hdx_service_checker/config_declaration.yaml
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,8 @@ | ||
version: 1 | ||
groups: | ||
- annotation: Ignore Plugin | ||
options: | ||
- key: hdx.ignore.plugin.hdx_service_checker | ||
############################################################################### | ||
# All options are in the config_declarations.yml of the hdx_theme extension | ||
############################################################################### |
Oops, something went wrong.