Skip to content
Merged

V0.22.1 #1127

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
a4bfd39
Merge pull request #1116 from PathwayCommons/v0.22.0
jvwong Feb 6, 2023
66e7a3c
Use version 16 LTS
jvwong Feb 7, 2023
69ef230
Feb 7th:
lindajiawenli Feb 7, 2023
331c1cd
Bump node version.
jvwong Feb 7, 2023
efe8cbc
Trying a different connection to neo4j
lindajiawenli Feb 7, 2023
a798142
Merge pull request #1117 from PathwayCommons/iss1085_versions
jvwong Feb 7, 2023
58394a4
Max has helped me start testing/actually running my code
lindajiawenli Feb 8, 2023
2a56322
Can now run code in test-temp-run.js
lindajiawenli Feb 8, 2023
67a5011
Test now runs, generates helpful errors about cypher/neo4j
lindajiawenli Feb 8, 2023
208228e
helloWorld function can write to sandbox successfully
lindajiawenli Feb 8, 2023
905452b
makeGeneNodeTest() is successful, but has exit issue
lindajiawenli Feb 8, 2023
f6a8bf3
Got rid of helloWorld test. Pruned relationship properties
lindajiawenli Feb 9, 2023
396c2b9
Co-authored-by: Jeffrey <jvwong@users.noreply.github.com>
lindajiawenli Feb 9, 2023
5811664
Docker-compose working now
lindajiawenli Feb 9, 2023
783585c
code now writes to docker instance
lindajiawenli Feb 9, 2023
b6ba65b
put document functions in a different file for organization
lindajiawenli Feb 9, 2023
c0a491f
put query strings and hard coded data in different files
lindajiawenli Feb 10, 2023
970a0fa
makeGeneNodeTest now works
lindajiawenli Feb 13, 2023
db670c6
using "executeWrite" in tests instead of "run"
lindajiawenli Feb 13, 2023
39c28f4
2 node + relationship test has succeeded
lindajiawenli Feb 13, 2023
9378be3
read1() test for primary use case works
lindajiawenli Feb 13, 2023
c2e484e
Made addNode, addEdge. addNode works confirmed
lindajiawenli Feb 14, 2023
3210615
addEdge and searchByGeneId work confirmed
lindajiawenli Feb 14, 2023
d945a8e
searchByGeneId prints edge info as well as node info
lindajiawenli Feb 14, 2023
4c266eb
updated addNode: fixed parameters, deleted factoidId
lindajiawenli Feb 14, 2023
ed3ca2f
updated addNode: deleted dbName and dbId from parameters
lindajiawenli Feb 14, 2023
47a5f90
updated addEdge: fixed parameters
lindajiawenli Feb 14, 2023
bf35b32
update addNode: delete type parameter
lindajiawenli Feb 14, 2023
2f5478c
sanitized ids to always be lower case
lindajiawenli Feb 14, 2023
c1dfb2d
driver functions added
lindajiawenli Feb 15, 2023
8827681
updated addEdge: xref instead of factoidId/factoidDocumentId
lindajiawenli Feb 15, 2023
96a5264
integrated the new driver functions in code
lindajiawenli Feb 15, 2023
4d36f40
made first test (not yet run successfully)
lindajiawenli Feb 15, 2023
c8f1766
more work on tests
lindajiawenli Feb 16, 2023
980c29a
Merge pull request #1118 from PathwayCommons/neo4j-beginning
lindajiawenli Feb 16, 2023
b00479d
Configuration for graph db.
jvwong Feb 16, 2023
5421cbc
Docs
jvwong Feb 16, 2023
a90a660
Initiate the driver in get
jvwong Feb 16, 2023
fd9f870
Tests
jvwong Feb 16, 2023
a166870
Optional config for initDriver
jvwong Feb 16, 2023
b63006d
The getter should just return the existing driver singleton
jvwong Feb 16, 2023
aaac9a1
Test
jvwong Feb 16, 2023
7360380
init driver is not async
jvwong Feb 16, 2023
57a6087
Update test docs
jvwong Feb 16, 2023
c4096df
Merge pull request #1123 from PathwayCommons/iss1122_uri-config
jvwong Feb 17, 2023
d1f752a
Drop www host in doi links
jvwong Feb 17, 2023
1110274
Merge pull request #1126 from PathwayCommons/iss1125_doi-base-url
jvwong Feb 17, 2023
adb1ae0
0.22.1
jvwong Feb 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

],
"rules": {
"semi": "error"
"semi": "error",
"no-console": "warn",
"no-unused-vars": "warn"
}
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10
16.19.0
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ AppSignal:
- `APPSIGNAL_APP_NAME` : name of this app (e.g. 'Biofactoid')
- `APPSIGNAL_APP_ENV` : used to indicate which instance is running (e.g 'master', 'production', 'unstable')

Graph Database:

- `GRAPHDB_CONN` : The connection string
- `GRAPHDB_USER` : Authentication username
- `GRAPHDB_PASS` : Authentication password

The following environment variables should always be set in production instances:

- `NODE_ENV` : set to `production`
Expand Down
23 changes: 23 additions & 0 deletions neo4j-test/connect-neo4j.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { expect } from 'chai';
import neo4j from 'neo4j-driver';

import { closeDriver, getDriver, initDriver } from '../src/neo4j/neo4j-driver.js';

describe('01. Initiate Driver', () => {

it('initDriver Should initialize and return a driver', () => {
const driver = initDriver();
expect(driver).an.instanceof(neo4j.Driver);
});

it('getDriver should return the driver', () => {
initDriver();
const driver = getDriver();
expect(driver).an.instanceof(neo4j.Driver);
});

it('closeDriver should remove driver instance', async () => {
const driver = await closeDriver();
expect(driver).to.be.undefined;
});
});
29 changes: 29 additions & 0 deletions neo4j-test/example.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
describe('Example set of tests', function () {
before(function () {

});

after(function () {

});

beforeEach(function () {

});

afterEach(function () {

});

it('does something', function () {

});

it('does something else', function () {

});

it('does something completely different', function () {

});
});
Loading