Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync: pipeline2 with pipeline2-sync-f89b #792

Merged
merged 77 commits into from
Nov 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
3577086
Merge pull request #712 from VirtualFlyBrain/development
Robbie1977 Oct 22, 2020
ad54ec4
Merge pull request #714 from VirtualFlyBrain/development
Robbie1977 Oct 23, 2020
af7e4b5
Merge pull request #722 from VirtualFlyBrain/development
Robbie1977 Oct 26, 2020
8e3ebf9
Merge pull request #724 from VirtualFlyBrain/development
Robbie1977 Oct 27, 2020
75d3388
Merge pull request #734 from VirtualFlyBrain/debug
Robbie1977 Nov 2, 2020
0dcf129
Merge pull request #741 from VirtualFlyBrain/debug
Robbie1977 Nov 3, 2020
d1cf944
Merge pull request #745 from VirtualFlyBrain/development
Robbie1977 Nov 4, 2020
5a1c0ed
Merge pull request #750 from VirtualFlyBrain/debug
Robbie1977 Nov 5, 2020
243aa4d
Merge pull request #755 from VirtualFlyBrain/debug
Robbie1977 Nov 5, 2020
d9659aa
hiding circuit browser
Robbie1977 Nov 5, 2020
6522385
Fix camera when only single node is rendered inside term context. Update
jrmartin Nov 5, 2020
59ac70f
comments
jrmartin Nov 5, 2020
5318b74
taking Nervious system nodes
Robbie1977 Nov 5, 2020
480fd50
moving circuit preference out
Robbie1977 Nov 5, 2020
a0e232c
reloasing working tests
Robbie1977 Nov 5, 2020
df27ec1
Merge pull request #759 from VirtualFlyBrain/debug
Robbie1977 Nov 5, 2020
e49e299
Changing Slice Viewer tutorial Image
Robbie1977 Nov 6, 2020
ddaa13d
update term info tutorial image
Robbie1977 Nov 6, 2020
9bff9e7
updating for Class only Relationships
Robbie1977 Nov 6, 2020
994d784
Merge pull request #760 from VirtualFlyBrain/debug
Robbie1977 Nov 6, 2020
a12cbee
Merge pull request #761 from VirtualFlyBrain/debug
Robbie1977 Nov 6, 2020
52d429e
Reverting to Anatomy
Robbie1977 Nov 6, 2020
f015ed1
Merge pull request #762 from VirtualFlyBrain/debug
Robbie1977 Nov 6, 2020
a59c466
making Deprecated labels RED
Robbie1977 Nov 6, 2020
e62659b
testing removing Depreciated
Robbie1977 Nov 6, 2020
cf6e30d
Reverting fix for synonym label list
Robbie1977 Nov 6, 2020
f6cf38c
Revert "Reverting fix for synonym label list"
Robbie1977 Nov 7, 2020
9d5c745
Merge pull request #763 from VirtualFlyBrain/debug
Robbie1977 Nov 7, 2020
6f31ec7
Merge pull request #764 from VirtualFlyBrain/development
Robbie1977 Nov 7, 2020
49ff395
filter fix
Robbie1977 Nov 7, 2020
17e5145
Merge pull request #765 from VirtualFlyBrain/debug
Robbie1977 Nov 7, 2020
d2c598e
fix for any failing queries
Robbie1977 Nov 7, 2020
afc223f
Temp fix for link_postfix
Robbie1977 Nov 8, 2020
f157ba9
Merge pull request #766 from VirtualFlyBrain/debug
Robbie1977 Nov 8, 2020
04a55af
Merge pull request #767 from VirtualFlyBrain/alpha
Robbie1977 Nov 8, 2020
279515a
forcing all image visiable inside the image frame.
Robbie1977 Nov 9, 2020
8455208
Fix for Anatomy P{R41C07-GAL4.DBD} ∩ P{R13F02-p65.AD} expression patt…
Robbie1977 Nov 9, 2020
5eae4cd
Merge pull request #758 from VirtualFlyBrain/feature/753
ddelpiano Nov 9, 2020
58f2559
Merge pull request #768 from VirtualFlyBrain/development
Robbie1977 Nov 9, 2020
ad4f5ea
defaulting to main PDB
Robbie1977 Nov 9, 2020
95cde49
adding facet match on space
Robbie1977 Nov 9, 2020
6e1da4d
typo fix
Robbie1977 Nov 9, 2020
ab52d24
syntax fix
Robbie1977 Nov 9, 2020
58d68ce
typo fix
Robbie1977 Nov 9, 2020
9201365
lint fix
Robbie1977 Nov 9, 2020
85221fa
fixing type and runiing processing step for count
Robbie1977 Nov 9, 2020
e336d1f
corrected for single ID passing
Robbie1977 Nov 9, 2020
0dd3ec7
adding releases
Robbie1977 Nov 9, 2020
aa0b812
Merge pull request #769 from VirtualFlyBrain/debug
Robbie1977 Nov 9, 2020
7406d8c
Merge pull request #770 from VirtualFlyBrain/debug
Robbie1977 Nov 9, 2020
fcbbb49
on all release stages
Robbie1977 Nov 9, 2020
58f87ac
Fix all queries
Robbie1977 Nov 9, 2020
7ea2fa3
Merge branch 'debug' of https://github.com/VirtualFlyBrain/geppetto-v…
Robbie1977 Nov 9, 2020
d7e4b7a
Merge pull request #771 from VirtualFlyBrain/alpha
Robbie1977 Nov 9, 2020
600435a
Merge pull request #772 from VirtualFlyBrain/debug
Robbie1977 Nov 9, 2020
0189eda
Merge pull request #773 from VirtualFlyBrain/debug
Robbie1977 Nov 9, 2020
4a07d1d
Merge pull request #774 from VirtualFlyBrain/alpha
Robbie1977 Nov 9, 2020
5a82c8c
bring up shorter matches
Robbie1977 Nov 11, 2020
48b73a5
testing new solr fix
Robbie1977 Nov 12, 2020
600eb29
trest without quick open
Robbie1977 Nov 13, 2020
3afe727
Merge pull request #778 from VirtualFlyBrain/debug
Robbie1977 Nov 16, 2020
3a6b2cc
Merge pull request #779 from VirtualFlyBrain/development
Robbie1977 Nov 16, 2020
6136482
Fix for GITHUB ticket formatting
Robbie1977 Nov 16, 2020
71428b5
Testing term info matched process
Robbie1977 Nov 17, 2020
cb7ec84
tidying up
Robbie1977 Nov 17, 2020
a7aa48a
using consistent syntax
Robbie1977 Nov 17, 2020
23fe295
increasing limit on returns for term info
Robbie1977 Nov 18, 2020
23d1202
removing syntax issues
Robbie1977 Nov 18, 2020
01a74e8
forcing padding fix
Robbie1977 Nov 18, 2020
6be48c2
using hemibrain 1.1 as test dataset
Robbie1977 Nov 18, 2020
ca00c42
reducing to single comment
Robbie1977 Nov 18, 2020
4db7211
removing url encoding
Robbie1977 Nov 18, 2020
3eab323
typo fix
Robbie1977 Nov 18, 2020
39f702c
checked test
Robbie1977 Nov 18, 2020
4caec74
trying image itself
Robbie1977 Nov 18, 2020
fdd6c57
Merge pull request #784 from VirtualFlyBrain/debug
Robbie1977 Nov 19, 2020
e2862ae
adding auto branch syncing from master
Robbie1977 Nov 19, 2020
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 .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name: CI
on:
push:
branches: '*'
release:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Sync
on:
push:
branches:
- master

jobs:
sync-branches:
runs-on: ubuntu-latest
name: Syncing branches
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 12
- name: Create Sync PR
uses: sudoStatus200/create-sync-pr@0.3.1
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
SOURCE_BRANCH: "master"
TARGET_BRANCH: "development,debug,alpha,vfb_geppetto_application,pipeline2"
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ARG geppettoSimulationRelease=vfb_20200604_a
ARG geppettoDatasourceRelease=vfb_20200604_a
ARG geppettoModelSwcRelease=v1.0.1
ARG geppettoFrontendRelease=development
ARG geppettoClientRelease=VFBv2.2.0.5
ARG geppettoClientRelease=VFBv2.2.0.6
ARG ukAcVfbGeppettoRelease=pipeline2

ARG mvnOpt="-Dhttps.protocols=TLSv1.2 -DskipTests --quiet -Pmaster"
Expand Down
8 changes: 4 additions & 4 deletions NoLongerUsed.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
- export VFB_REPO=$(echo ${TRAVIS_REPO_SLUG##*/} | awk '{gsub(/\-/,"_",$0);gsub(/\./,"_",$0);print toupper($0)}')
- export REPO=$(echo ${TRAVIS_REPO_SLUG} | awk '{gsub(/\./,"_",$0);print tolower($0)}')
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo ${TRAVIS_BRANCH/\//-}; fi`
- export VFB_PDB_SERVER=https://pdb.p2.virtualflybrain.org;
- export VFB_PDB_SERVER=https://pdb.virtualflybrain.org;
- export VFB_OWL_SERVER=http://owl.p2.virtualflybrain.org/kbs/vfb/;
- export VFB_R_SERVER=http://r.virtualflybrain.org/ocpu/library/vfbr/R/vfb_nblast;
- export VFB_TREE_PDB_SERVER=https://pdb.p2.virtualflybrain.org;
- export VFB_TREE_PDB_SERVER=https://pdb.virtualflybrain.org;
- export SOLR_SERVER=https://solr.p2.virtualflybrain.org/solr/ontology/select;
- if [ "$TRAVIS_BRANCH" == "master" ]; then
export VFB_TREE_PDB_SERVER=https://pdb.virtualflybrain.org;
Expand Down Expand Up @@ -249,8 +249,8 @@ jobs:
# export VFB_TREE_PDB_SERVER=https://pdb.virtualflybrain.org;
# export SOLR_SERVER=https://solr.virtualflybrain.org/solr/ontology/select;
# fi;
- export VFB_TREE_PDB_SERVER=https://pdb.p2.virtualflybrain.org;
- export VFB_PDB_SERVER=http://pdb.p2.virtualflybrain.org;
- export VFB_TREE_PDB_SERVER=https://pdb.virtualflybrain.org;
- export VFB_PDB_SERVER=http://pdb.virtualflybrain.org;
- export VFB_OWL_SERVER=http://owl.p2.virtualflybrain.org/kbs/vfb/;
- export VFB_R_SERVER=http://r.virtualflybrain.org/ocpu/library/vfbr/R/vfb_nblast;
- export SOLR_SERVER=https://solr.p2.virtualflybrain.org/solr/ontology/select;
Expand Down
6 changes: 5 additions & 1 deletion components/VFBMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class VFBMain extends React.Component {
canvasVisible: true,
listViewerVisible: true,
graphVisible : true,
circuitBrowserVisible : true,
circuitBrowserVisible : false,
htmlFromToolbar: undefined,
idSelected: undefined,
instanceOnFocus: undefined,
Expand Down Expand Up @@ -531,9 +531,12 @@ class VFBMain extends React.Component {
var otherName = click.parameters[0].split(',')[2];
var path = click.parameters[0].split(',')[0];
var entity = Model[path];

$("body").css("cursor", "progress");
this.refs.querybuilderRef.open();
this.refs.querybuilderRef.switchView(false, false);
this.refs.querybuilderRef.clearAllQueryItems();
// $('#add-new-query-container')[0].hidden = true; $('#query-builder-items-container')[0].hidden = true;

var callback = function () {
// check if any results with count flag
Expand All @@ -545,6 +548,7 @@ class VFBMain extends React.Component {
}
// show query component
that.refs.querybuilderRef.open();
$("body").css("cursor", "default");
GEPPETTO.trigger('stop_spin_logo');
};
// add query item + selection
Expand Down
6 changes: 3 additions & 3 deletions components/configuration/VFBGraph/graphConfiguration.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var locationCypherQuery = instance => ({
"statements": [
{
"statement": "MATCH p=(n:Entity {short_form:'" + instance + "'})-[r:INSTANCEOF|part_of|has_synaptic_terminal_in|has_presynaptic_terminal_in|"
"statement": "MATCH (n:Entity {short_form:'" + instance + "'}) OPTIONAL MATCH p=(n)-[r:INSTANCEOF|part_of|has_synaptic_terminal_in|has_presynaptic_terminal_in|"
+ "has_postsynaptic_terminal_in|overlaps*..]->(x) "
+ "RETURN distinct n,r,x,n.short_form as root",
"resultDataContents": ["graph"]
Expand All @@ -13,7 +13,7 @@ var whatCypherQuery = instance => ({
"statements": [
{
"statement": "MATCH (n:Entity {short_form:'" + instance + "'}) OPTIONAL MATCH p=(n)-[:INSTANCEOF|:SUBCLASSOF*..]->(x) "
+ "WHERE (('Anatomy' IN labels(x)) AND ('Class' IN labels(n))) OR (('Cell' IN labels(x)) OR ('synaptic neuropil' IN labels(x))) "
+ "WHERE ('Anatomy' IN labels(x)) OR (('Cell' IN labels(x)) OR ('synaptic neuropil' IN labels(x))) "
+ " OR (('Ganglion' IN labels(x)) OR ('Neuron_projection_bundle' IN labels(x))) "
+ "RETURN n,p, n.short_form as root",
"resultDataContents": ["graph"]
Expand Down Expand Up @@ -84,7 +84,7 @@ var styling = {
}

var restPostConfig = {
url: "https://pdb.p2.virtualflybrain.org/db/data/transaction/commit",
url: "https://pdb.virtualflybrain.org/db/data/transaction/commit",
contentType: "application/json"
};

Expand Down
5 changes: 0 additions & 5 deletions components/configuration/VFBMain/layoutModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ var modelJson = {
"type": "tab",
"name": "Layers",
"component": "vfbListViewer"
},
{
"type": "tab",
"name": "Circuit Browser",
"component": "vfbCircuitBrowser"
}
]
},
Expand Down
29 changes: 27 additions & 2 deletions components/configuration/VFBMain/searchConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ var searchConfiguration = {
"enabled": "disabled",
},
{
"key": "Larval",
"filter_name": "Larval",
"key": "Larva",
"filter_name": "Larva",
"enabled": "disabled",
},
{
Expand Down Expand Up @@ -157,6 +157,11 @@ var searchConfiguration = {
"key": "Neuron",
"filter_name": "Neuron",
"enabled": "disabled",
},
{
"key": "Deprecated",
"filter_name": "Deprecated",
"enabled": "negative",
}
]
},
Expand Down Expand Up @@ -191,6 +196,26 @@ var searchConfiguration = {
if (InputString.toLowerCase() == b.label.toLowerCase()) {
return 1;
}
if (InputString.toLowerCase().indexOf(' ') > -1) {
var lcInputStingFac = InputString.toLowerCase().split(' ');
var compare = (a1, a2) => a1.filter(v => a2.includes(v)).length;
var cA = compare(lcInputStingFac, a.label.toLowerCase().split(' '));
var cB = compare(lcInputStingFac, b.label.toLowerCase().split(' '));
if (cA > 0 || cB > 0) {
if (cA > cB) {
return -1;
}
if (cA < cB) {
return 1;
}
if (a.label.length < b.label.length) {
return -1;
}
if (a.label.length > b.label.length) {
return 1;
}
}
}
// close match without case matching ['xx ('ID/Label)]
if (a.label.toLowerCase().indexOf(InputString.toLowerCase()) == 0) {
return -1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const linksConfiguration = {
"CircuitBrowser": {
"title": "Circuit browser For",
"visibility": true,
"superType": "Neuron"
"superType": "hasSynapses"
}
}

Expand Down
2 changes: 1 addition & 1 deletion components/configuration/VFBToolbar/vfbtoolbarHTML.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var feedback
+ "[<a href='https://github.com/VirtualFlyBrain/VFB2' target='_blank'>VirtualFlyBrain/VFB2</a>].</p>"
+ "<p>If you have a GitHub account you can easily raise a new issue: "
+ "<form id='GitHubIssue' method='get' action='https://github.com/VirtualFlyBrain/VFB2/issues/new' target='_blank'>"
+ "<input type='hidden' name='body' value='%0A%0A%0A%0A%0A%0ASupport%20info%3A%0A$DATE$%0A$BROWSER$%20$VERSION$%20%5B$SCREEN$%5D%0A$URL$%0A%0A%60%60%60diff%0A$LOG$%0A%60%60%60%0A' />"
+ "<input type='hidden' name='body' value='Please give details of the issue:\n\n\n\n\nSupport info:\n$DATE$\n$BROWSER$\n$VERSION$ [$SCREEN$]\n$URL$\n\n\n\'\'\'diff\n$LOG$\n\'\'\'\n' />"
+ "<input type='submit' value='Create GitHub Issue' style='color: black; border-color: darkcyan;'></form>"
+ "</p>"
+ "<p> This could simply be a question or a new feature request, but if you have found a bug we missed please copy in "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,14 +245,6 @@ var toolbarMenu = {
parameters: ["graphVisible"]
}
},
{
label: "Circuit Browser",
icon: "fa fa-cogs",
action: {
handlerAction: "UIElementHandler",
parameters: ["circuitBrowserVisible"]
}
},
{
label: "NBLAST",
icon: "",
Expand Down
2 changes: 1 addition & 1 deletion components/configuration/VFBTree/VFBTreeConfiguration.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var restPostConfig = {
url: "https://pdb.p2.virtualflybrain.org/db/data/transaction/commit",
url: "https://pdb.virtualflybrain.org/db/data/transaction/commit",
contentType: "application/json"
};

Expand Down
12 changes: 10 additions & 2 deletions components/interface/VFBGraph/VFBGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,15 @@ class VFBGraph extends Component {

resetCamera () {
if ( this.graphRef.current !== null ) {
this.graphRef.current.ggv.current.zoomToFit();
// If more than one graph node, use library's 'zoomToFit' method to center camera
if ( this.state.graph.nodes.length > 1 ) {
this.graphRef.current.ggv.current.zoomToFit();
} else if ( this.state.graph.nodes.length == 1 ) {
// Only one graph node, center camera around it
let x = this.state.graph.nodes[0].x;
let y = this.state.graph.nodes[0].y;
this.graphRef.current.ggv.current.centerAt(x,y);
}
this.focused = true;
}
}
Expand Down Expand Up @@ -474,7 +482,7 @@ class VFBGraph extends Component {
// No graph to display, message is shown instead of graph
if (Object.keys(this.props.instanceOnFocus).length === 0 && this.props.instanceOnFocus.constructor === Object) {
return (
<p>No graph available for {this.state.currentQuery.name} , where {this.state.currentQuery.name} is either 'show classification for $Instance' or 'show location for $instance'</p>
<p>Model not loaded, graph not available yet</p>
);
}

Expand Down
6 changes: 1 addition & 5 deletions components/interface/VFBToolbar/VFBToolBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,7 @@ export default class VFBToolBar extends React.Component {
}
this.props.htmlOutputHandler(
htmlContent.replace(
/\$URL\$/g,window.location.href.replace(
/\&/g,escape('&')
).replace(
/\#/g,escape('#')
)
/\$URL\$/g,window.location.href
).replace(
/\$BROWSER\$/g, browserName
).replace(
Expand Down
7 changes: 7 additions & 0 deletions css/VFBMain.less
Original file line number Diff line number Diff line change
Expand Up @@ -1663,3 +1663,10 @@
user-select: text;
}

img[class^="VFBQuickHelp-image-"] {
object-fit: contain !important;
}

#querybuilder .query-item-option {
padding: 0px 8px !important;
}
4 changes: 4 additions & 0 deletions css/VFBTermInfo.less
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,10 @@
background-color:#e012e3 !important;
}

.label.types>.label.label-Deprecated {
background-color:#ff0000 !important;
}

.button-bar-vfbHistoryLinks-back {
position:absolute;
left:10px;
Expand Down
Binary file modified images/slice-viewer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/slice-viewer_old.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/term-info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/term-info_old.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading