Skip to content

Commit 6fdd491

Browse files
Merge pull request #139 from bcgsc/release/v7.3.1
Release/v7.3.1
2 parents 463626a + 04a01c2 commit 6fdd491

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"plugin:jest/recommended",
1111
"plugin:jest-formatting/recommended"
1212
],
13+
"parserOptions": {
14+
"ecmaVersion": 2020
15+
},
1316
"rules": {
1417
"indent": [
1518
"error",

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,3 @@ RUN npm ci --only=production
1111

1212
# Bundle app source
1313
COPY . .
14-
EXPOSE 8080
15-
CMD [ "npm", "start" ]

app/routes/graphkb/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ router.use(loginMiddleware);
1515
* Autocomplete endpoint for interfacing with GraphKB. This endpoint is used by the client
1616
* for the therapeutic options input forms
1717
*/
18-
router.post('/:targetType(variant|therapy|evidenceLevel|context)', async (req, res) => {
19-
const {body: {keyword}, params: {targetType}, graphkbToken} = req;
18+
router.get('/:targetType(variant|therapy|evidenceLevel|context)', async (req, res) => {
2019
try {
21-
const data = await graphkbAutocomplete(targetType, graphkbToken, keyword);
20+
const data = await graphkbAutocomplete(req.params.targetType, req.graphkbToken, req.query?.search);
2221
return res.status(HTTP_STATUS.OK).json(data);
2322
} catch (error) {
2423
logger.error(error);

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "ipr-api",
4-
"version": "7.3.0",
4+
"version": "7.3.1",
55
"description": "Integrated Pipeline Reports API",
66
"main": "bin/server.js",
77
"scripts": {

test/routes/graphkb.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ const BASE_URL = '/api/graphkb';
1313

1414
const testAutocompleteWithKeyword = async (request, type, keyword) => {
1515
const {body} = await request
16-
.post(`${BASE_URL}/${type}`)
17-
.send({keyword})
16+
.get(`${BASE_URL}/${type}?search=${keyword}`)
1817
.auth(username, password)
1918
.type('json')
2019
.expect(HTTP_STATUS.OK);
@@ -36,7 +35,7 @@ const testAutocompleteWithKeyword = async (request, type, keyword) => {
3635

3736
const testAutocompleteWithoutKeyword = async (request, type) => {
3837
const {body} = await request
39-
.post(`${BASE_URL}/${type}`)
38+
.get(`${BASE_URL}/${type}`)
4039
.auth(username, password)
4140
.type('json')
4241
.expect(HTTP_STATUS.OK);

0 commit comments

Comments
 (0)