Skip to content

Commit 611dba8

Browse files
committed
cherry-pick updates to domain throught the codebase + a fresh db.dist
1 parent e271161 commit 611dba8

File tree

13 files changed

+19
-19
lines changed

13 files changed

+19
-19
lines changed

DevUtils/Swirl.postman_collection.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
],
2222
"body": {
2323
"mode": "raw",
24-
"raw": "{\n \"name\": \"Swirl Documentation TEST - Google PSE\",\n \"active\": false,\n \"default\": true,\n \"authenticator\": \"\",\n \"connector\": \"RequestsGet\",\n \"url\": \"https://www.googleapis.com/customsearch/v1\",\n \"query_template\": \"{url}?cx={cx}&key={key}&q={query_string}\",\n \"post_query_template\": {},\n \"http_request_headers\": {},\n \"page_fetch_config_json\": {\n \"cache\": \"false\",\n \"headers\": {\n \"User-Agent\": \"Swirlbot/1.0 (+http://swirl.today)\"\n },\n \"timeout\": 10\n },\n \"query_processors\": [\n \"AdaptiveQueryProcessor\"\n ],\n \"query_mappings\": \"cx=f047885d9696f447c,DATE_SORT=sort=date,PAGE=start=RESULT_INDEX,NOT_CHAR=-\",\n \"result_grouping_field\": \"\",\n \"result_processors\": [\n \"MappingResultProcessor\",\n \"DateFinderResultProcessor\",\n \"CosineRelevancyResultProcessor\"\n ],\n \"response_mappings\": \"FOUND=searchInformation.totalResults,RETRIEVED=queries.request[0].count,RESULTS=items\",\n \"result_mappings\": \"title=title,url=link,body=snippet,author=displayLink,cacheId,pagemap.metatags[*].['og:type'],pagemap.metatags[*].['og:site_name'],pagemap.metatags[*].['og:description'],NO_PAYLOAD\",\n \"results_per_query\": 10,\n \"credentials\": \"key=AIzaSyDvVeE-L6nCC9u-TTGuhggvSmzhtiTHJsA\",\n \"eval_credentials\": \"\",\n \"tags\": [\n \"Swirl\",\n \"Documentation\"\n ]\n }"
24+
"raw": "{\n \"name\": \"Swirl Documentation TEST - Google PSE\",\n \"active\": false,\n \"default\": true,\n \"authenticator\": \"\",\n \"connector\": \"RequestsGet\",\n \"url\": \"https://www.googleapis.com/customsearch/v1\",\n \"query_template\": \"{url}?cx={cx}&key={key}&q={query_string}\",\n \"post_query_template\": {},\n \"http_request_headers\": {},\n \"page_fetch_config_json\": {\n \"cache\": \"false\",\n \"headers\": {\n \"User-Agent\": \"Swirlbot/1.0 (+http://swirlaiconnect.com)\"\n },\n \"timeout\": 10\n },\n \"query_processors\": [\n \"AdaptiveQueryProcessor\"\n ],\n \"query_mappings\": \"cx=f047885d9696f447c,DATE_SORT=sort=date,PAGE=start=RESULT_INDEX,NOT_CHAR=-\",\n \"result_grouping_field\": \"\",\n \"result_processors\": [\n \"MappingResultProcessor\",\n \"DateFinderResultProcessor\",\n \"CosineRelevancyResultProcessor\"\n ],\n \"response_mappings\": \"FOUND=searchInformation.totalResults,RETRIEVED=queries.request[0].count,RESULTS=items\",\n \"result_mappings\": \"title=title,url=link,body=snippet,author=displayLink,cacheId,pagemap.metatags[*].['og:type'],pagemap.metatags[*].['og:site_name'],pagemap.metatags[*].['og:description'],NO_PAYLOAD\",\n \"results_per_query\": 10,\n \"credentials\": \"key=AIzaSyDvVeE-L6nCC9u-TTGuhggvSmzhtiTHJsA\",\n \"eval_credentials\": \"\",\n \"tags\": [\n \"Swirl\",\n \"Documentation\"\n ]\n }"
2525
},
2626
"url": {
2727
"raw": "{{baseUrl}}swirl/searchproviders/",

SearchProviders/europe_pmc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"page_fetch_config_json": {
1111
"cache": "false",
1212
"headers": {
13-
"User-Agent": "Swirlbot/1.0 (+http://swirl.today)"
13+
"User-Agent": "Swirlbot/1.0 (+http://swirlaiconnect.com)"
1414
},
1515
"timeout": 10
1616
},

SearchProviders/google.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"page_fetch_config_json": {
1212
"cache": "false",
1313
"headers": {
14-
"User-Agent": "Swirlbot/1.0 (+http://swirl.today)"
14+
"User-Agent": "Swirlbot/1.0 (+http://swirlaiconnect.com)"
1515
},
1616
"www.businesswire.com": {
1717
"timeout": 60
@@ -106,7 +106,7 @@
106106
]
107107
},
108108
{
109-
"name": "Swirl Documentation - docs.swirl.today",
109+
"name": "Swirl Documentation - docs.swirlaiconnect.com",
110110
"active": true,
111111
"default": true,
112112
"connector": "RequestsGet",
@@ -117,7 +117,7 @@
117117
"page_fetch_config_json": {
118118
"cache": "false",
119119
"headers": {
120-
"User-Agent": "Swirlbot/1.0 (+http://swirl.today)"
120+
"User-Agent": "Swirlbot/1.0 (+http://swirlaiconnect.com)"
121121
},
122122
"www.businesswire.com": {
123123
"timeout": 60

SearchProviders/preloaded.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"page_fetch_config_json": {
1212
"cache": "false",
1313
"headers": {
14-
"User-Agent": "Swirlbot/1.0 (+http://swirl.today)"
14+
"User-Agent": "Swirlbot/1.0 (+http://swirlaiconnect.com)"
1515
},
1616
"www.businesswire.com": {
1717
"timeout": 60
@@ -109,7 +109,7 @@
109109
]
110110
},
111111
{
112-
"name": "Swirl Documentation - docs.swirl.today",
112+
"name": "Swirl Documentation - docs.swirlaiconnect.com",
113113
"active": true,
114114
"default": true,
115115
"connector": "RequestsGet",
@@ -120,7 +120,7 @@
120120
"page_fetch_config_json": {
121121
"cache": "false",
122122
"headers": {
123-
"User-Agent": "Swirlbot/1.0 (+http://swirl.today)"
123+
"User-Agent": "Swirlbot/1.0 (+http://swirlaiconnect.com)"
124124
},
125125
"www.businesswire.com": {
126126
"timeout": 60
@@ -200,7 +200,7 @@
200200
"page_fetch_config_json": {
201201
"cache": "false",
202202
"headers": {
203-
"User-Agent": "Swirlbot/1.0 (+http://swirl.today)"
203+
"User-Agent": "Swirlbot/1.0 (+http://swirlaiconnect.com)"
204204
},
205205
"timeout": 10
206206
},

db.sqlite3.dist

0 Bytes
Binary file not shown.

install-ui.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ where_jq=`which jq`
4646
if [ $? -eq 0 ]; then
4747
echo $PROG "Found jq command in ${where_jq}"
4848
else
49-
echo $PROG "Could not find jq command on your path, please consult the admin guide at https://docs.swirl.today/Admin-Guide#installation."
49+
echo $PROG "Could not find jq command on your path, please consult the Installation Guide at https://docs.swirlaiconnect.com/Installation-Community.html."
5050
exit 1
5151
fi
5252

swirl.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def start(service_list):
146146
if not is_running_celery_redis():
147147
print(f"Error: Celery requires redis, settings.CELERY_BROKER_URL:{settings.CELERY_BROKER_URL}\n"
148148
f"settings.CELERY_RESULT_BACKEND:{settings.CELERY_RESULT_BACKEND} but it does not appear to be running,\n"
149-
"please consult the admin guide at https://docs.swirl.today/Admin-Guide#installation.")
149+
"please consult the admin guide at https://docs.swirlaiconnect.com/Admin-Guide.html.")
150150
return False
151151

152152
# start service_list

swirl/connectors/postgresql.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
try:
2222
import psycopg2
2323
except ImportError as e:
24-
logger.error(f"postgresql.py: Error: can't load psycopg2: {e}, see https://docs.swirl.today/Developer-Reference.html#postgresql")
24+
logger.error(f"postgresql.py: Error: can't load psycopg2: {e}, see https://docs.swirlaiconnect.com/Developer-Reference.html#postgresql")
2525

2626
from swirl.connectors.db_connector import DBConnector
2727

swirl/tasks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
DEV_FETCH_OPTIONS = {
3737
"cache": "false",
3838
"headers": {
39-
"User-Agent": "Swirlbot/1.0 (+http://swirl.today)"
39+
"User-Agent": "Swirlbot/1.0 (+http://swirlaiconnect.com)"
4040
},
4141
"timeout": 10
4242
}

swirl/templates/rest_framework/api.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% load i18n %}
33

44
{% block branding %}
5-
<a class="navbar-brand" rel="nofollow" href="http://swirl.today/">
5+
<a class="navbar-brand" rel="nofollow" href="https://swirlaiconnect.com/">
66
{% trans 'Swirl' %}
77
</a>
88
{% endblock %}

swirl/tests/test_web_page.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def test_page_fetch_factory_options_1(self):
7777
self.assert_page_fetch_default_options(pf, do_cache=False)
7878

7979
## set values in the headers
80-
test_user_agent = 'Testbot/1.0 (+http://swirl.today)'
80+
test_user_agent = 'Testbot/1.0 (+http://swirlaiconnect.com)'
8181
test_header_val = "bar-value"
8282
pf = PageFetcherFactory.alloc_page_fetcher(url=test_url,
8383
options= {
@@ -115,7 +115,7 @@ def test_page_fetch_factory_options_1(self):
115115

116116
## set all
117117
test_timeout = 22
118-
test_user_agent = 'Testbot/1.0 (+http://swirl.today)'
118+
test_user_agent = 'Testbot/1.0 (+http://swirlaiconnect.com)'
119119
test_header_val = 'bar-value'
120120
pf = PageFetcherFactory.alloc_page_fetcher(url=test_url,
121121
options= {

swirl/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
import logging
2323
logger = logging.getLogger(__name__)
2424

25-
SWIRL_MACHINE_AGENT = {'User-Agent': 'SwirlMachineServer/1.0 (+http://swirl.today)'}
26-
SWIRL_CONTAINER_AGENT = {'User-Agent': 'SwirlContainer/1.0 (+http://swirl.today)'}
25+
SWIRL_MACHINE_AGENT = {'User-Agent': 'SwirlMachineServer/1.0 (+http://swirlaiconnect.com)'}
26+
SWIRL_CONTAINER_AGENT = {'User-Agent': 'SwirlContainer/1.0 (+http://swirlaiconnect.com)'}
2727

2828

2929
##################################################

swirl/web_page.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def __init__(self, options={},url=""):
215215
@staticmethod
216216
def get_page_fetch_defaults():
217217
return {
218-
"headers":{'User-Agent': 'Swirlbot/1.0 (+http://swirl.today)'},
218+
"headers":{'User-Agent': 'Swirlbot/1.0 (+http://swirlaiconnect.com)'},
219219
"timeout": WEB_PAGE_FETCHER_DEFAULT_TIMEOUT_SECONDS,
220220
}
221221

0 commit comments

Comments
 (0)