Merge pull request #162 from jyothisjagan/dev

Renamed ElasticSearch indices to have 'tuid' prefix.
This commit is contained in:
Ajumal 2019-10-13 00:12:48 +05:30 коммит произвёл GitHub
Родитель adc741acdd 0f5a5d3f6c
Коммит f950dc79be
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
6 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@ -17,7 +17,7 @@
"branches": {
"host": "http://localhost",
"port": 9201,
"index": "branches",
"index": "repo-branches",
"type": "branch",
"typed": false,
"timeout": 300,
@ -52,7 +52,7 @@
"csetLog": {
"host": "http://localhost",
"port": 9201,
"index": "csetlog",
"index": "tuid-csetlog",
"type": "csetlogtype",
"typed": false,
"timeout": 300,

Просмотреть файл

@ -14,7 +14,7 @@
"branches": {
"host": "http://localhost",
"port": 9200,
"index": "branches",
"index": "repo-branches",
"type": "branch",
"typed": false,
"timeout": 300,

Просмотреть файл

@ -17,7 +17,7 @@
"branches": {
"host": "http://localhost",
"port": 9200,
"index": "branches",
"index": "repo-branches",
"type": "branch",
"typed": false,
"timeout": 300,

Просмотреть файл

@ -15,7 +15,7 @@
"branches": {
"host": "http://localhost",
"port": 9200,
"index": "branches",
"index": "repo-branches",
"type": "branch",
"typed": false,
"timeout": 300,
@ -50,7 +50,7 @@
"csetLog": {
"host": "http://localhost",
"port": 9200,
"index": "csetlog",
"index": "tuid-csetlog",
"type": "csetlogtype",
"typed": false,
"timeout": 300,
@ -63,7 +63,7 @@
"temporal": {
"host": "http://localhost",
"port": 9200,
"index": "temporal",
"index": "tuid-temporal",
"type": "temporaltype",
"typed": false,
"timeout": 300,
@ -74,7 +74,7 @@
"annotations": {
"host": "http://localhost",
"port": 9200,
"index": "annotations",
"index": "tuid-annotations",
"type": "annotationstype",
"typed": false,
"timeout": 300,

2
vendor/mo_hg/hg_branches.py поставляемый
Просмотреть файл

@ -33,7 +33,7 @@ def get_branches(hg, branches, kwargs=None):
try:
es = cluster.get_index(kwargs=branches, read_only=False)
esq = jx_elasticsearch.new_instance(branches)
found_branches = esq.query({"from": "branches", "format": "list", "limit": 10000}).data
found_branches = esq.query({"from": "repo-branches", "format": "list", "limit": 10000}).data
# IF IT IS TOO OLD, THEN PULL FROM HG
oldest = Date(MAX(found_branches.etl.timestamp))

2
vendor/mo_hg/hg_mozilla_org.py поставляемый
Просмотреть файл

@ -579,7 +579,7 @@ class HgMozillaOrg(object):
please_stop = False
locker = Lock()
output = []
queue = Queue("branches", max=2000)
queue = Queue("repo-branches", max=2000)
queue.extend(
b
for b in self.branches