Skip to content

Commit 5ee9483

Browse files
author
Mark Robinson
committed
Merge branch 'nested-workflows'
# Conflicts: # src/main/java/org/commonwl/view/researchobject/ROBundleService.java
2 parents c90193b + 9a4c52c commit 5ee9483

File tree

83 files changed

+164377
-563
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+164377
-563
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ dist: trusty
44
language: java
55

66
services: mongodb
7+
8+
before_install:
9+
- sudo apt-get -qq update
10+
- sudo apt-get install graphviz

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ADD pom.xml LICENSE.md NOTICE.md README.md /usr/src/app/
2929
# add src/ (which often change)
3030
ADD src /usr/src/app/src
3131
# Skip tests while building as that requires a local mongodb
32-
RUN mvn clean package -DskipTests && cp target/cwlvisualiser-*.jar /usr/lib/cwlvisualizer.jar && rm -rf target
32+
RUN mvn clean package -DskipTests && cp target/cwlviewer-*.jar /usr/lib/cwlviewer.jar && rm -rf target
3333

3434
# NOTE: ~/.m2/repository is a VOLUME and so will be deleted anyway
3535
# This also means that every docker build downloads all of it..
@@ -41,4 +41,4 @@ EXPOSE 8080
4141
# Expects mongodb on port 27017
4242
ENV SPRING_DATA_MONGODB_HOST=mongo
4343
ENV SPRING_DATA_MONGODB_PORT=27017
44-
CMD ["/usr/bin/java", "-jar", "/usr/lib/cwlvisualizer.jar"]
44+
CMD ["/usr/bin/java", "-jar", "/usr/lib/cwlviewer.jar"]

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,19 @@ If you run cwlviewer in production, you are likely to hit the GitHub API's rate
9898

9999
OAuth tokens can be obtained using the [Github authorizations API](https://developer.github.com/v3/oauth_authorizations/).
100100

101+
## Private Repositories
102+
103+
If you wish to use cwlviewer to view private Github repositories, set
104+
105+
```
106+
githubAPI.useForDownloads = true
107+
singleFileSizeLimit = 1048575
108+
```
109+
110+
Along with an authentication method which has the privileges necessary to access the repository (see above).
111+
112+
**WARNING**: This uses the [Github Contents API](https://developer.github.com/v3/repos/contents/) to download files instead of [Rawgit](https://rawgit.com/) which will increase API calls significantly.
113+
101114
## Building and Running
102115
103116
To compile you will need [Java 8](http://www.oracle.com/technetwork/java/javase/downloads/index.html) or OpenJDK 8 (`apt install openjdk-8-jdk`),
@@ -118,11 +131,11 @@ You can create an executable JAR file by using:
118131
119132
Afterwards, run:
120133
121-
java -jar target/cwlvisualizer*.jar
134+
java -jar target/cwlviewer*.jar
122135
123136
(The exact filename will vary per version)
124137
125-
Once CWL Visualizer is running, you should see log output somewhat like:
138+
Once CWL Viewer is running, you should see log output somewhat like:
126139
127140
```
128141
()..)

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55

6-
<groupId>org.commonwl</groupId>
7-
<artifactId>cwlvisualiser</artifactId>
6+
<groupId>org.commonwl.view</groupId>
7+
<artifactId>cwlviewer</artifactId>
88
<version>0.0.1-SNAPSHOT</version>
99
<packaging>jar</packaging>
1010

11-
<name>CWLVisualiser</name>
12-
<description>Gets a workflow from Github and displays details of it</description>
11+
<name>CWLViewer</name>
12+
<description>Web application to visualise and enable easy sharing of Common Workflow Language workflows</description>
1313

1414
<parent>
1515
<groupId>org.springframework.boot</groupId>

src/main/java/org/commonwl/viewer/CwlViewerApplication.java renamed to src/main/java/org/commonwl/view/CwlViewerApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
package org.commonwl.viewer;
20+
package org.commonwl.view;
2121

2222
import org.springframework.boot.SpringApplication;
2323
import org.springframework.boot.autoconfigure.SpringBootApplication;

src/main/java/org/commonwl/viewer/web/PageController.java renamed to src/main/java/org/commonwl/view/PageController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
* under the License.
1818
*/
1919

20-
package org.commonwl.viewer.web;
20+
package org.commonwl.view;
2121

22-
import org.commonwl.viewer.domain.WorkflowForm;
22+
import org.commonwl.view.workflow.WorkflowForm;
2323
import org.springframework.stereotype.Controller;
2424
import org.springframework.ui.Model;
2525
import org.springframework.web.bind.annotation.GetMapping;

src/main/java/org/commonwl/viewer/domain/CWLElement.java renamed to src/main/java/org/commonwl/view/cwl/CWLElement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
package org.commonwl.viewer.domain;
20+
package org.commonwl.view.cwl;
2121

2222
import java.util.ArrayList;
2323
import java.util.List;
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
package org.commonwl.view.cwl;
21+
22+
/**
23+
* Enum for possible CWL processes
24+
*/
25+
public enum CWLProcess {
26+
WORKFLOW,
27+
COMMANDLINETOOL,
28+
EXPRESSIONTOOL;
29+
30+
@Override
31+
public String toString() {
32+
String defaultString = super.toString();
33+
return defaultString.substring(0, 1) + defaultString.substring(1).toLowerCase();
34+
}
35+
}

0 commit comments

Comments
 (0)