-
Notifications
You must be signed in to change notification settings - Fork 11
/
config.py
68 lines (56 loc) · 1.77 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Connection to the database where we save orcid-claims (this database
# serves as a running log of claims and storage of author-related
# information). It is not consumed by others (ie. we 'push' results)
# SQLALCHEMY_URL = 'postgres://docker:docker@localhost:6432/docker'
SQLALCHEMY_URL = "sqlite:///"
SQLALCHEMY_ECHO = False
# possible values: WARN, INFO, DEBUG
LOGGING_LEVEL = "INFO"
CELERY_INCLUDE = ["adsmp.tasks"]
OUTPUT_CELERY_BROKER = "pyamqp://test:test@localhost:5682/test_augment_pipeline"
OUTPUT_TASKNAME = "ADSAffil.tasks.task_update_record"
# db connection to the db instance where we should send data; if not present
# the SOLR can still work but no metrics updates can be done
METRICS_SQLALCHEMY_URL = None #'postgres://postgres@localhost:5432/metrics'
# Main Solr
SOLR_URLS = ["http://localhost:9983/solr/collection1/update"]
# For the run's argument --validate_solr, which compares two Solr instances for
# the given bibcodes or file of bibcodes
SOLR_URL_NEW = "http://localhost:9983/solr/collection1/query"
SOLR_URL_OLD = "http://localhost:9984/solr/collection1/query"
# url and token for the update endpoint of the links resolver microservice
# new links data is sent to this url, the mircoservice updates its datastore
LINKS_RESOLVER_UPDATE_URL = "http://localhost:8080/update"
ADS_API_TOKEN = "fixme"
ENABLE_HAS = True
HAS_FIELDS = [
"abstract",
"ack",
"aff",
"aff_id",
"author",
"bibgroup",
"body",
"citation_count",
"comment",
"database",
"doctype",
"doi",
"first_author",
"identifier",
"institution",
"issue",
"keywords",
"orcid_other",
"orcid_pub",
"orcid_user",
"origin",
"property",
"pub",
"pub_raw",
"publisher",
"references",
"title",
"uat",
"volume",
]