Skip to content

Commit f1fe419

Browse files
committed
- changed the old api endpoint format to the new one
- added EventRegistry.getServiceStatus() method that reports status of the services - renamed filenames for tests so that we can isolate which tests to run
1 parent ee0704a commit f1fe419

37 files changed

+427
-564
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Change Log
22

3+
## [v8.7]() (2019-10-16)
4+
5+
**Added**
6+
7+
- added `EventRegistry.getServiceStatus()` method that reports status of the services
8+
- `ComplexQueryArticles` and `ComplexQueryEvents` classes now support in the constructor additional filters like `minSentiment`, `maxSentiment`, `minFacebookShares`, `endSourceRankPercentile`, etc.
9+
10+
**Updated**
11+
12+
- `ReturnInfo` classes (`ArticleInfoFlags`, `ConceptInfoFlags`, ...) were updated. Some obsolete parameters were removed and we have added support for kwdargs to supply some very rarely used parameters directly.
13+
- `TopicPage.getArticles` and `TopicPage.getEvents` methods now support also `**kwargs` so that you can now also provide other available parameters that are less frequently used.
14+
15+
**Removed**
16+
17+
- removed `EventRegistry.suggestCustomConcepts()` and `EventRegistry.getCustomConceptUri()` methods. Not used anymore since we are not supporting anymore the correlation feature.
18+
19+
320
## [v8.6]() (2019-02-22)
421

522
**Added**

eventregistry/Correlations.py

Lines changed: 0 additions & 220 deletions
This file was deleted.

eventregistry/Counts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class CountsBase(QueryParamsBase):
1111
def _getPath(self):
12-
return "/json/counters"
12+
return "/api/v1/counters"
1313

1414

1515

eventregistry/DailyShares.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self,
3030

3131

3232
def _getPath(self):
33-
return "/json/article"
33+
return "/api/v1/article"
3434

3535

3636
# get top shared events for today or any other day
@@ -53,4 +53,4 @@ def __init__(self,
5353

5454

5555
def _getPath(self):
56-
return "/json/event"
56+
return "/api/v1/event"

eventregistry/EventForText.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ def compute(self,
4646
compute the list of most similar events for the given text
4747
"""
4848
params = { "lang": lang, "text": text, "topClustersCount": self._nrOfEventsToReturn }
49-
res = self._er.jsonRequest("/json/getEventForText/enqueueRequest", params)
49+
res = self._er.jsonRequest("/api/v1/getEventForText/enqueueRequest", params)
5050

5151
requestId = res["requestId"]
5252
for i in range(10):
5353
time.sleep(1) # sleep for 1 second to wait for the clustering to perform computation
54-
res = self._er.jsonRequest("/json/getEventForText/testRequest", { "requestId": requestId })
54+
res = self._er.jsonRequest("/api/v1/getEventForText/testRequest", { "requestId": requestId })
5555
if isinstance(res, list) and len(res) > 0:
5656
return res
5757
return None

0 commit comments

Comments
 (0)