Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
784 commits
Select commit Hold shift + click to select a range
4beb66d
Removing space.
q4wen May 17, 2018
f5d1896
Merge branch 'development' into infobox-link
q4wen May 17, 2018
22e535d
Display name of NGNC change
q4wen May 17, 2018
3b4ca57
Add displayName to databases.
q4wen May 18, 2018
64fb91f
Fix typo "HGNC"
q4wen May 18, 2018
4143f5e
Coding style update.
q4wen May 18, 2018
0d9df9b
Merge pull request #762 from q4wen/infobox-link
d2fong May 18, 2018
1bd82d1
Merge branch 'development' into infobox-description
q4wen May 18, 2018
71822b6
Merge pull request #758 from q4wen/infobox-description
d2fong May 18, 2018
7c830f6
Remove space
q4wen May 18, 2018
d3fb52c
pcQuery parameter changes
q4wen May 18, 2018
bc43b13
Refs #764; and to call PC ws consistently, removed pathway-commons (-…
IgorRodchenkov May 21, 2018
d7467c6
Merge branches 'development' and 'issue_764_etc' of https://github.co…
IgorRodchenkov May 21, 2018
2aa54a7
Merge pull request #772 from q4wen/parameter-name
IgorRodchenkov May 22, 2018
2480e58
Merge branches 'development' and 'issue_764_etc' of https://github.co…
IgorRodchenkov May 22, 2018
01b7295
Correct content-type in geneQuery
q4wen May 22, 2018
b361970
Updated Comments
MichaelWrana May 22, 2018
f038bdf
Remove call to pcFallback
q4wen May 22, 2018
9b745ad
Done #764 (PC_URL; no external pc client module; works!); also #761 (…
IgorRodchenkov May 22, 2018
c5abb75
Merge pull request #775 from q4wen/garbage-pc-search
d2fong May 23, 2018
8f0eacc
Merge pull request #774 from q4wen/parameter-name
d2fong May 23, 2018
ab66a7d
Refs PR #778. Fixed file download and interactioins queries.
IgorRodchenkov May 23, 2018
d621858
Merge branch 'development' of https://github.com/PathwayCommons/app-u…
IgorRodchenkov May 23, 2018
03a549e
Merge pull request #778 from PathwayCommons/issue_764_etc
IgorRodchenkov May 24, 2018
65fc3c1
changes to filter placement, new pull request for simplicity #761
CaitlinOCallaghan May 24, 2018
9c21254
Merge remote-tracking branch 'upstream/development' into databaseLabels
q4wen May 24, 2018
36b89d8
Remove unused value from geneQuery
q4wen May 24, 2018
5bfadc4
Merge pull request #782 from q4wen/query-padding
d2fong May 24, 2018
dd71f47
remove unnecessary line of code
CaitlinOCallaghan May 24, 2018
fedeee0
Merge pull request #780 from CaitlinOCallaghan/newFilterDatabases
jvwong May 25, 2018
597eedd
Merge branch 'development' into backbtn-reload
q4wen May 25, 2018
502930b
Clean nested functions and add comments to function
q4wen May 25, 2018
322211b
Merge remote-tracking branch 'upstream/development' into databaseLabels
q4wen May 25, 2018
cdc3b9e
Query parser and interatction link update
q4wen May 28, 2018
7f09f1d
Remove self-assignment in geneQuery()
q4wen May 28, 2018
7a542ea
Fix Some bugs with metadata
MichaelWrana May 28, 2018
abd7b96
Merge pull request #776 from MichaelWrana/tooltip-links
jvwong May 28, 2018
62d4971
Merge pull request #783 from q4wen/databaseLabels
jvwong May 28, 2018
c7a91c5
#784 removal of datasources filter warning
CaitlinOCallaghan May 28, 2018
ff3d71b
Updated Some Comments
MichaelWrana May 29, 2018
ff5c9ab
Updated comments and simplified code
MichaelWrana May 29, 2018
fa213e5
Added linebreaks for clarity
MichaelWrana May 29, 2018
f5df874
enrichment test case update
CaitlinOCallaghan May 29, 2018
36069c5
Updated comments and added ID match parameter
MichaelWrana May 29, 2018
49f35e4
removed recursion
MichaelWrana May 29, 2018
b009e96
Updated Comments
MichaelWrana May 29, 2018
9a5f2b7
removed pointless function
MichaelWrana May 29, 2018
2d03f63
Fixed PubMed Citation Info on Interactions
MichaelWrana May 29, 2018
d52479d
renamed a variable
MichaelWrana May 29, 2018
f4d129a
Merge pull request #788 from CaitlinOCallaghan/datasourcesFilterError
jvwong May 29, 2018
ee79a02
changes: target->targetDb , validTarget->validTargetDb , invalidTarge…
CaitlinOCallaghan May 29, 2018
5138f87
Merge pull request #791 from CaitlinOCallaghan/targetParamChangeWTest…
jvwong May 30, 2018
a9bea98
swagger doc changes without JSON-lock file #732
CaitlinOCallaghan May 30, 2018
e972b29
Text input field allows multiple words
q4wen May 30, 2018
eb4d5af
Fixed bug with pubmed citation display
MichaelWrana May 30, 2018
527ffb8
removed console logging
MichaelWrana May 30, 2018
9b1424d
correct fix for error message
CaitlinOCallaghan May 30, 2018
0b6b0ec
fixed bug with tooltip display
MichaelWrana May 30, 2018
f2b4e7d
Merge pull request #793 from CaitlinOCallaghan/datasourcesFilterError
jvwong May 30, 2018
7d61146
Added Potential Fix
MichaelWrana May 30, 2018
d345fe5
actual error fix, tested ondifferent computer too
CaitlinOCallaghan May 30, 2018
08b0c0c
Removed Cellular Location Data
MichaelWrana May 30, 2018
1d15a11
Merge pull request #795 from CaitlinOCallaghan/datasourcesFilterError
jvwong May 30, 2018
1e52e7c
Merge pull request #789 from MichaelWrana/metadata-refactoring
jvwong May 30, 2018
60f54d3
Trigger the replace only when there is a single token
q4wen May 31, 2018
5937b1d
Merge remote-tracking branch 'upstream/development' into backbtn-reload
q4wen May 31, 2018
3ad49ca
Merge branch 'backbtn-reload' of https://github.com/q4wen/app-ui into…
q4wen May 31, 2018
61298d6
warning fix
CaitlinOCallaghan May 31, 2018
cf00287
Merge pull request #796 from CaitlinOCallaghan/datasourcesFilterError
jvwong May 31, 2018
7578309
change OCWeight and JCWeight to jaccardOverlapWeight
CaitlinOCallaghan May 31, 2018
35682c4
change 'pathwayInfoList' to 'pathways'
CaitlinOCallaghan May 31, 2018
740d416
change 'cutoff' to 'similarityCutoff'
CaitlinOCallaghan May 31, 2018
7d297ad
remove 'thresholdAlgo'
CaitlinOCallaghan May 31, 2018
2b3dcbe
remove 'userThr'
CaitlinOCallaghan May 31, 2018
322a0ea
change 'custbg' to 'backgroundGenes
CaitlinOCallaghan May 31, 2018
22ad1ac
parameter changes clean up
CaitlinOCallaghan May 31, 2018
42cb95e
new route 'enrichment'
CaitlinOCallaghan May 31, 2018
80ae457
delete previous enrichment UI code
CaitlinOCallaghan May 31, 2018
b92e6d5
Restrict condition
q4wen May 31, 2018
2424cfa
create new index.js page
CaitlinOCallaghan May 31, 2018
8dc1890
Merge pull request #794 from q4wen/query-search
jvwong May 31, 2018
ec17f0f
edits to index.js
CaitlinOCallaghan May 31, 2018
bbc67e0
further edits to index.js skeleton
CaitlinOCallaghan May 31, 2018
a2f0fe6
Merge pull request #806 from MichaelWrana/remove-loading-icon
d2fong Jun 1, 2018
d8b76e2
Merge pull request #752 from q4wen/backbtn-reload
d2fong Jun 1, 2018
13fa48f
Merge pull request #804 from CaitlinOCallaghan/newEnrichRoute
d2fong Jun 1, 2018
e267f6e
Added catches, fetch timeout, extracted formData creation
jvwong Jun 2, 2018
7a04374
Handles input errors, removed explicit error check in enrichment-router
jvwong Jun 3, 2018
a28337f
reverting to deve lock.json
jvwong Jun 3, 2018
52cdac2
Improved the error passing/catch in form
jvwong Jun 4, 2018
33e7f45
Fix broken links
q4wen Jun 4, 2018
5486c1e
Merge remote-tracking branch 'upstream/development' into broken-link
q4wen Jun 4, 2018
ee30262
Variable name update
q4wen Jun 4, 2018
15becdc
Changed the link text to 'Find Pathways' in the interactions view nod…
IgorRodchenkov Jun 4, 2018
df80336
Refs #786 - no.4 - to open external links in a new tab).
IgorRodchenkov Jun 4, 2018
f7ead68
Merge branch 'development' into broken-link
q4wen Jun 4, 2018
80ea759
Fixed Error with null data
MichaelWrana Jun 4, 2018
fac08af
Merging intervening commits.
jvwong Jun 5, 2018
76b98a8
Punted the custom error
jvwong Jun 5, 2018
8e08460
Merge pull request #792 from CaitlinOCallaghan/swaggerDoc2
d2fong Jun 5, 2018
0f0d721
Merge branch 'development' into parameterChangesEnrich
d2fong Jun 5, 2018
56daa5c
Merge pull request #798 from CaitlinOCallaghan/parameterChangesEnrich
d2fong Jun 5, 2018
d1e6a2e
Merge branch 'development' into iss805_validator_hang
d2fong Jun 5, 2018
a39e28c
Merge pull request #807 from jvwong/iss805_validator_hang
d2fong Jun 5, 2018
e2ac918
menubar skeleton (gene input and node search with proper icons)
CaitlinOCallaghan Jun 4, 2018
e17e1ca
base-network-view changes for input bar, NOTE input will only render …
CaitlinOCallaghan Jun 4, 2018
f72ed40
change gene input type to textarea
CaitlinOCallaghan Jun 5, 2018
ae13941
fixed reference/address comparison
MichaelWrana Jun 6, 2018
941eb3c
Create PATHWAY_COMMONS_DATA_SYNC.md
d2fong Jun 6, 2018
f6ac449
Refs #811, #764 (there was hard-coded PC2 URL) and polishing (removin…
IgorRodchenkov Jun 6, 2018
814aac2
Merge remote-tracking branch 'origin/development' into development
IgorRodchenkov Jun 6, 2018
2b2fdda
Refs #811 (how to re-make the generics mapping json file)
IgorRodchenkov Jun 6, 2018
eafb2f6
Merge branch 'development' into v1.0.0
IgorRodchenkov Jun 6, 2018
81cd45a
clean up for enrichment documentation #731
CaitlinOCallaghan Jun 6, 2018
a1acc73
grammar improvement
CaitlinOCallaghan Jun 6, 2018
c421e90
added a comma
CaitlinOCallaghan Jun 6, 2018
12e437a
Refs #811
IgorRodchenkov Jun 7, 2018
6033d41
Merge pull request #808 from q4wen/broken-link
d2fong Jun 7, 2018
f51f312
'area' changed to 'magnitude'
CaitlinOCallaghan Jun 7, 2018
fb78e8a
minor changes
CaitlinOCallaghan Jun 7, 2018
f93c827
Merge pull request #816 from CaitlinOCallaghan/enrichmentDocCleanUp
jvwong Jun 7, 2018
3389eb0
Refs #811 - finished the script and readme - how to switch PC2 versions.
IgorRodchenkov Jun 7, 2018
303c4c6
reorganized titlebar rendering, input bar functional
CaitlinOCallaghan Jun 8, 2018
b65155c
create server helper methodfor enrichment, reroute geneQuery to this …
CaitlinOCallaghan Jun 6, 2018
f6de491
remove if/else case
CaitlinOCallaghan Jun 8, 2018
cd088fc
rename API method and add catch
CaitlinOCallaghan Jun 8, 2018
e200d5b
improved conciseness
CaitlinOCallaghan Jun 8, 2018
27129b5
change catch output
CaitlinOCallaghan Jun 8, 2018
2a7ff4f
Move graph processing in interaction view to back end
q4wen Jun 8, 2018
e25360b
braket and name fix
CaitlinOCallaghan Jun 8, 2018
a266fa1
Merge pull request #812 from CaitlinOCallaghan/toolbarSkeletonEnrich
jvwong Jun 8, 2018
45e540b
Merge pull request #820 from CaitlinOCallaghan/geneQueryAPIMethod
jvwong Jun 8, 2018
0539224
Merge pull request #818 from PathwayCommons/v1.0.0
d2fong Jun 8, 2018
63104a0
Merge remote-tracking branch 'upstream/development' into interaction-…
q4wen Jun 11, 2018
a6b8041
alert boxes indicating validity of response
CaitlinOCallaghan Jun 11, 2018
c4c8c89
Add comment
q4wen Jun 11, 2018
5b45a6e
manually expand text box while rest of toolbar remains stationary
CaitlinOCallaghan Jun 11, 2018
48b56be
rephrase alert message
CaitlinOCallaghan Jun 11, 2018
443af65
take into account that min set size default is 5 and max is 200
CaitlinOCallaghan Jun 11, 2018
465f6a9
typo fix
CaitlinOCallaghan Jun 12, 2018
f936e68
Update fetch function
q4wen Jun 12, 2018
dd17c2a
Added eref xref data collection
MichaelWrana Jun 12, 2018
3f2d447
Interaction side menu is always available
q4wen Jun 12, 2018
15f232b
add space
q4wen Jun 12, 2018
fa19756
Fixed "true" instead of "more" link
MichaelWrana Jun 12, 2018
563579e
naming changes and comments
CaitlinOCallaghan Jun 12, 2018
46dfd4a
Merge pull request #826 from q4wen/interaction-side-menu
jvwong Jun 13, 2018
f272f24
iterated name changes, data stored in map, input box is in editable d…
CaitlinOCallaghan Jun 13, 2018
234d740
Refs #811 - updated package-lock aftre pull/rebuild.
IgorRodchenkov Jun 14, 2018
622f97a
Lock to cytoscape#097f455d107472a3cfb09d91d63cf85aca75024a
maxkfranz Jun 14, 2018
3c1f12d
Remove metadata and its creation functions
q4wen Jun 14, 2018
e6f4bdd
Merge remote-tracking branch 'upstream/development' into interaction-…
q4wen Jun 14, 2018
1d9f87e
Interaction update
q4wen Jun 14, 2018
a5deda2
Remove replicate functions
q4wen Jun 14, 2018
f4c6699
db tests with callback had extra param
jvwong Jun 14, 2018
ea7c7cd
Merge pull request #827 from jvwong/dbtests
IgorRodchenkov Jun 14, 2018
549b175
Merge branch 'development' into v1.0.0
IgorRodchenkov Jun 14, 2018
48593d2
update travis to run lint tasks
d2fong Jun 15, 2018
98d3c8f
use ecmaVersion 8 to fix async/await lint errors
d2fong Jun 15, 2018
eee1c01
Merge pull request #828 from PathwayCommons/travis
IgorRodchenkov Jun 15, 2018
4593bd1
Refactored Using lodash concat
MichaelWrana Jun 18, 2018
3c096cf
String/array issue still present, fixed
MichaelWrana Jun 18, 2018
0b4632f
correctly fixed string/array issue this time
MichaelWrana Jun 18, 2018
03aee4a
Fixed Some Lint Errors
MichaelWrana Jun 19, 2018
9c50cae
console stuff later
MichaelWrana Jun 19, 2018
76e9f8b
fix minor lint errors, update sbgnml converter package
d2fong Jun 19, 2018
7daaaad
updated comments & removed rest.js changes
MichaelWrana Jun 19, 2018
def6ad2
Merge pull request #836 from MichaelWrana/lint-errors
d2fong Jun 19, 2018
cbd0e12
Merge pull request #825 from q4wen/interaction-refactor
d2fong Jun 19, 2018
8b801d1
Merge pull request #810 from MichaelWrana/tooltip-fixes
d2fong Jun 19, 2018
d6534ee
revert package-lock to the state it was in with npm v5.6
d2fong Jun 19, 2018
3f9da72
alert boxes indicating validity of response
CaitlinOCallaghan Jun 11, 2018
62c268b
manually expand text box while rest of toolbar remains stationary
CaitlinOCallaghan Jun 11, 2018
a51ba53
rephrase alert message
CaitlinOCallaghan Jun 11, 2018
5047253
take into account that min set size default is 5 and max is 200
CaitlinOCallaghan Jun 11, 2018
f88efa7
typo fix
CaitlinOCallaghan Jun 12, 2018
99ae78d
naming changes and comments
CaitlinOCallaghan Jun 12, 2018
b37ab16
iterated name changes, data stored in map, input box is in editable d…
CaitlinOCallaghan Jun 13, 2018
7f036f0
divided large functions into multiple smaller functions, more comment…
CaitlinOCallaghan Jun 14, 2018
f55237a
further organization of functions and variable names
CaitlinOCallaghan Jun 14, 2018
f8c57aa
improve input status update, return genes in same order as typed
CaitlinOCallaghan Jun 15, 2018
5da1112
iterated response update
CaitlinOCallaghan Jun 15, 2018
7f342a8
store input data on state as a map, present invalid tokens in div for…
CaitlinOCallaghan Jun 19, 2018
431f6f6
input token methods stored in seperate file
CaitlinOCallaghan Jun 19, 2018
1ddd933
only send new tokens to validation service
CaitlinOCallaghan Jun 20, 2018
1918ded
Merge branch 'inputErrorCheck' of https://github.com/CaitlinOCallagha…
CaitlinOCallaghan Jun 20, 2018
699615b
comment out console.log and remove unnecessary css
CaitlinOCallaghan Jun 20, 2018
1118b27
Merge branch 'development' into v1.0.0
IgorRodchenkov Jun 20, 2018
88d4d54
make Token-Input class a react component, render all input elements i…
CaitlinOCallaghan Jun 21, 2018
c7f1132
added change
CaitlinOCallaghan Jun 21, 2018
ca4494c
handle trailing spaces
CaitlinOCallaghan Jun 21, 2018
bbc6f46
move elements from InputToken component rendering to parent
CaitlinOCallaghan Jun 21, 2018
e5a7d08
move elements from InputToken component redering to parent, changes f…
CaitlinOCallaghan Jun 21, 2018
6e9f924
Merge pull request #838 from PathwayCommons/maintenance
jvwong Jun 22, 2018
cc0e06a
use event listener instead of DOM
CaitlinOCallaghan Jun 22, 2018
84318ce
enrichmentAPI passes error to caller
jvwong Jun 22, 2018
13244e6
errorHandler in validation uses logger
jvwong Jun 22, 2018
8faf1ce
basenetworkview unused parameter removed
jvwong Jun 22, 2018
0abda2d
remove, ignore unused params in paint
jvwong Jun 22, 2018
bb78bea
use logger in server/pathway-commons
jvwong Jun 22, 2018
ee1f17d
changes to backgroundGene parameter so that user input is properly se…
CaitlinOCallaghan Jun 25, 2018
d3381d4
Merge pull request #851 from CaitlinOCallaghan/enrichAnalysisTestBack…
jvwong Jun 25, 2018
ffca03e
cleanup base.css lint
jvwong Jun 25, 2018
b6c4820
cleanup deps.css lint
jvwong Jun 25, 2018
5731a1d
cleanup vars.css lint
jvwong Jun 25, 2018
c64f931
Enrichment network style
q4wen Jun 26, 2018
32ca5e8
combine invalid input and gene input components
CaitlinOCallaghan Jun 26, 2018
e9a1ac9
lift state from token-input.js to index.js, use state for tracking al…
CaitlinOCallaghan Jun 26, 2018
3385dd6
Merge pull request #850 from jvwong/lintErrors
jvwong Jun 27, 2018
2684bde
hide and show feedback box, hide toolbar
CaitlinOCallaghan Jun 27, 2018
87fb53e
auto expanding textareas
CaitlinOCallaghan Jun 27, 2018
d2b993b
Merge remote-tracking branch 'origin/development' into v1.0.0
IgorRodchenkov Jun 28, 2018
c305b92
textarea styling, do not allow for manual resize
CaitlinOCallaghan Jun 28, 2018
dd5835f
empty graph so /enrichment will load on BaseNetworkView
CaitlinOCallaghan Jun 28, 2018
58b4473
set gprofiler url as config, http endpoint
jvwong Jun 28, 2018
57e0abf
Merge pull request #860 from jvwong/iss854
jvwong Jun 28, 2018
9339c5a
Merge remote-tracking branch 'origin/development' into v1.0.0
IgorRodchenkov Jun 28, 2018
4baf17e
addressed error warnings, turned token-input rendering into a function
CaitlinOCallaghan Jun 29, 2018
5cdc483
merging development with inputErrorCheck
CaitlinOCallaghan Jun 29, 2018
8bf2341
change 'invalid' to 'unrecognized', only lift valid tokens to state (…
CaitlinOCallaghan Jun 29, 2018
5e67e38
change input-token.js to minimize number of functions, onClick 'submi…
CaitlinOCallaghan Jun 29, 2018
193f3de
send all tokens (valid and invalid) to index file for storage, improv…
CaitlinOCallaghan Jul 3, 2018
d8dcb1f
improved robustness, added catch
CaitlinOCallaghan Jul 3, 2018
080ea77
Update landing page links
q4wen Jul 3, 2018
9781fbf
use setState()
CaitlinOCallaghan Jul 3, 2018
9e72519
typo fix
CaitlinOCallaghan Jul 3, 2018
07807db
remove all instances of this.state = '' outside of constructor
CaitlinOCallaghan Jul 3, 2018
a1a289d
Update update.sh
IgorRodchenkov Jul 3, 2018
ada2c62
Update README.md
IgorRodchenkov Jul 3, 2018
2cdfcd1
Fixes and SIF caching
maxkfranz Jul 3, 2018
d7c206a
Issues 858, 862: cy animation and disable interactions/enrichment
jvwong Jul 3, 2018
733274d
Merge pull request #869 from q4wen/gene-card-link
jvwong Jul 3, 2018
3385bb5
cleanup; added valid genes
jvwong Jul 4, 2018
3467111
Merge pull request #839 from CaitlinOCallaghan/inputErrorCheck
jvwong Jul 4, 2018
f4c7d60
Merge pull request #852 from q4wen/enrichment-network
jvwong Jul 4, 2018
9656b6f
paint - apply expression data immediately instead of waiting for the …
jvwong Jul 4, 2018
d961103
paint - apply expression data immediately instead of waiting for the …
jvwong Jul 4, 2018
6e3d1a0
Made it clear what PC_VERSION parameter means for the update.sh script -
IgorRodchenkov Jul 4, 2018
93175cf
Updated gene cards HGNC symbol link URL
jvwong Jul 5, 2018
79abe62
infobox typo
jvwong Jul 5, 2018
706d14d
Started fixing #876 and polishing (not done yet...)
IgorRodchenkov Jul 6, 2018
d1cf513
Refs #876, almost done, but xrefs (node ids, pubmed, etc.) are still …
IgorRodchenkov Jul 9, 2018
be48f27
Refs #876 - improving mapping of sbgn/cy node IDs back onto the BioPA…
IgorRodchenkov Jul 9, 2018
78475a0
Continued #876 - after changes in Paxtools and PC service -
IgorRodchenkov Jul 9, 2018
01a1b7a
Refs PR #885 and fixed #876.
IgorRodchenkov Jul 9, 2018
c60db6f
Merge pull request #885 from PathwayCommons/issue_876
IgorRodchenkov Jul 9, 2018
b226571
Merge branch 'development' into v1.0.0
IgorRodchenkov Jul 9, 2018
474370b
Refs #885 - fixed (e.g. Cy version in the) package-lock.json
IgorRodchenkov Jul 9, 2018
a6f3654
Fixed 3 lint errors.
IgorRodchenkov Jul 10, 2018
25e7dc2
1.0.0
IgorRodchenkov Jul 10, 2018
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
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"jsx": true
}
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ node_modules
build
.DS_Store
*.log
package-lock.json
rethinkdb_data/*
src/scripts/pathways/*
src/scripts/sbgn/*
src/scripts/jsonld/*
.vscode/*
/.idea/
/nohup.out
14 changes: 10 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
dist: trusty
language: node_js
node_js:
- "6"
- "7"
- "8"
- "stable"
sudo: false
script: npm run test
script: npm run test:travis
sudo: required
before_install:
- sudo apt-get -qq update
- source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
- wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
- sudo apt-get update
- sudo apt-get install rethinkdb
- rethinkdb &
21 changes: 15 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,33 @@
# https://nodejs.org/en/docs/guides/nodejs-docker-webapp/
# https://github.com/nodejs/docker-node

# v6 is the latest LTS
FROM node:6
# Node.js base image
FROM node:8

# Create an unprivileged user w/ home directory
RUN groupadd appuser \
&& useradd --gid appuser --shell /bin/bash --create-home appuser

# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
RUN mkdir -p /home/appuser/app
WORKDIR /home/appuser/app

# Bundle app
COPY . /usr/src/app
COPY . /home/appuser/app

# Install app dependencies
RUN npm install

# Build project
# RUN npm run build
RUN npm run clean
RUN npm run build

# Expose port
EXPOSE 3000

# Change ownership of the app to the unprivileged user
RUN chown appuser:appuser -R /home/appuser/app
USER appuser

# Run the command that starts the app
CMD npm start
27 changes: 21 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# app-ui
# Pathway Commons App(s)


## Required software
Expand All @@ -19,7 +19,7 @@ npm install

For development:
```
npm run watch
npm run watch
```

For a production build:
Expand All @@ -33,14 +33,28 @@ npm run start
The following environment variables can be used to configure the server:

- `NODE_ENV` : the environment mode, either `production` or `development` (default)
- `PC_URL` : actual Pathway Commons web service endpoint URL (default: 'http://www.pathwaycommons.org/pc2/')
- `PORT` : the port on which the server runs (default 3000)

### Configure RethinkDB
1. Download [RethinkDB](https://www.rethinkdb.com/docs/install/)
2. Start your RethinkDB server by following the steps [here](https://www.rethinkdb.com/docs/start-a-server/)
3. Go to `src/server/database/config.js` and modify the ip field to match your server address
4. Start the project : `npm run start` or `npm run watch`, then the server will auto create all the required tables for you.
4. Start the project : `npm run start` or `npm run watch`, then the server will auto create all the required tables for you.

### Switching Pathway Commons Versions (release/other)

If Pathway Commons data and files have been updated since this app's last built and run,
or you simply want to connect to a different PC2 instance (and set PC_URL environment variable),
then the file `src/server/graph-generation/generic-physical-entities/generic-physical-entity-map.json`
needs to be updated. Also, purge the RethinkDb db tables or simply switch the database.

The following script downloads and processes physical_entities.json.gz file from Pathway Commons:
```sh
cd src/scripts/generic-entity-mapping/
PC_VERSION=v10 sh update.sh
```
(PC_VERSION should be set to the name of a sub-directory in `www.pathwaycommons.org/archives/PC2/`)

## Run targets

Expand Down Expand Up @@ -86,15 +100,15 @@ Notes:

### Run image hosted on Docker Hub using Docker Compose

Pathway Commons maintains a [Docker Hub](https://hub.docker.com/) image for [app-ui](https://hub.docker.com/r/pathwaycommons/app-ui/) that is automatically built each time a commit is pushed to GitHub.
Pathway Commons maintains a [Docker Hub](https://hub.docker.com/) image for [app-ui](https://hub.docker.com/r/pathwaycommons/app-ui/) that is automatically built each time a commit is pushed to GitHub.

To run the GitHub development branch:

```sh
docker-compose --file docker-compose.yml up --detach
```

Access the app instance at port `9090`.The default configuration declared in `docker-compose.yml` also runs a [rethinkdb](https://hub.docker.com/_/rethinkdb/) image; access the UI at port `8020`.
Access the app instance at port `9090`.The default configuration declared in `docker-compose.yml` also runs a [rethinkdb](https://hub.docker.com/_/rethinkdb/) image; access the UI at port `8020`.

Notes:
- References:
Expand Down Expand Up @@ -145,7 +159,7 @@ Students who work on the repo should follow these instructions for each feature
1. Using the console: `git checkout name-of-feature`, `git merge development`
1. Using GitUp:
1. Make sure your `HEAD` is the newest commit of your feature branch: Right-click the latest commit on `name-of-feature` branch and select `Checkout "name-of-feature" Branch`
1. Right-click the latest commit of the `development` branch and select `Merge into Current Branch`
1. Right-click the latest commit of the `development` branch and select `Merge into Current Branch`
1. Push your commits to GitHub:
1. Note: You can push as often as you'd like so that your code is backed up on GitHub. You *must* push everything before you make a pull request.
1. Using the console: `git push`
Expand All @@ -166,3 +180,4 @@ Students who work on the repo should follow these instructions for each feature
1. For a breaking API change, run `npm version major.`
1. For a specific version number (e.g. 1.2.3), run `npm version 1.2.3`.
1. Push the release: `git push origin --tags`

57 changes: 57 additions & 0 deletions ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/bin/bash

# This is a helper script to set up a very simple CI dev/testing server. It can
# be used with `cron` in order to set up regular builds, e.g. for every 15 minutes:
#
# `crontab -e`
#
# @reboot /home/username/rethinkdb.sh > /home/username/rethinkdb.log
# */15 * * * * /home/username/master.sh > /home/username/master.log
#
# To use this script, create a script per server instance, e.g. `master.sh`:
#
# #!/bin/bash
#
# # Mandatory repo/branch conf
# export REPO=https://github.com/PathwayCommons/factoid.git
# export BRANCH=master
#
# # Project-specific env vars
# export PORT=3000
#
# ./ci.sh

JOB_NAME=$BRANCH
WORKSPACE=/home/`whoami`/$JOB_NAME
WORKSPACE_TMP=/tmp/$JOB_NAME

rm -rf $WORKSPACE_TMP
mkdir -p $WORKSPACE_TMP
cd $WORKSPACE_TMP

# get the repo
git clone $REPO $WORKSPACE_TMP
git checkout $BRANCH

# build
npm install
npm run clean

export NODE_ENV=production

npm run build

# stop the old screen session
screen -X -S $JOB_NAME quit || echo "No screen session to stop"

# swap out old workspace with new one
mkdir -p /tmp/rm
mv $WORKSPACE /tmp/rm/$JOB_NAME || echo "No old workspace to move"
mv $WORKSPACE_TMP $WORKSPACE

# start the server in a screen session
screen -d -m -S $JOB_NAME npm start

# delete the old workspace files
rm -rf /tmp/rm/$JOB_NAME || echo "No old workspace to delete"

13 changes: 5 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
version: '2'
version: '3'
services:
webapp:
image: pathwaycommons/app-ui:latest
image: pathwaycommons/app-ui:development
container_name: appui_webapp
ports:
- "3000:3000"
- "9090:3000"
environment:
ip: "db"
links:
- db
host: "db"
db:
container_name: appui_db
image: rethinkdb:2.3.6
ports:
- "8080:8080"
- "28015:28015"
- "8020:8080"
Loading