Skip to content

Commit 52f86f9

Browse files
committed
Merge branch 'main' of github.com:broadinstitute/taiga
2 parents a09ca50 + 4405b74 commit 52f86f9

29 files changed

+1062
-964
lines changed

.github/workflows/build-docker.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Build Taiga image
22

3-
on:
4-
push:
5-
branches: main
3+
on: push
64

75
env:
86
IMAGE_TAG: us.gcr.io/cds-docker-containers/taiga:ga-build-${{ github.run_number }}
@@ -18,6 +16,8 @@ jobs:
1816
- uses: actions/checkout@v2
1917
- name: write SHA to file
2018
run: "bash write_version.sh ${{ github.sha }}"
19+
- name: bundle JS
20+
run: "bash bundle_js.sh"
2121
- name: Login to GCR
2222
uses: docker/login-action@v2
2323
with:
@@ -31,6 +31,8 @@ jobs:
3131
- name: Push Docker image
3232
run: docker push ${{ env.IMAGE_TAG }}
3333
- name: Tag as latest
34+
if: github.ref == 'refs/heads/main'
3435
run: docker tag ${{ env.IMAGE_TAG }} ${{ env.FINAL_IMAGE_TAG }}
3536
- name: Push Docker image
37+
if: github.ref == 'refs/heads/main'
3638
run: docker push ${{ env.FINAL_IMAGE_TAG }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Taiga 2 is built on the following stack:
1414

1515
### Database
1616

17-
- PostGre (to store the app information)
17+
- PostgreSQL (to store the app information)
1818
- Psycopg2
1919
- SQLAlchemy
2020
- Amazon S3 (to store the files)

bundle_js.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
set -ex
2+
cd react_frontend
3+
yarn install
4+
./node_modules/.bin/webpack --mode=production

install_prereqs.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
set -ex
2-
pip install -r dev-requirements.txt
3-
python setup.py develop
42
pre-commit install
3+
poetry install
54
yarn install --cwd react_frontend

react_frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"dependencies": {
1010
"aws-sdk": "^2.7.17",
1111
"bootstrap": "^3.3.7",
12+
"classnames": "^2.5.1",
1213
"clipboard": "^1.6.0",
1314
"css-loader": "^5.2.4",
1415
"d3-array": "^1.2.1",

react_frontend/src/components/DatasetView.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import * as Models from "../models/models";
1212
import { TaigaApi } from "../models/api";
1313

1414
import * as Dialogs from "./Dialogs";
15-
import { CreateDatasetDialog, CreateVersionDialog } from "./modals/UploadForm";
15+
import { CreateVersionDialog } from "./modals/UploadDialogs";
1616

1717
import { toLocalDateString } from "../utilities/formats";
1818
import { LoadingOverlay } from "../utilities/loading";
@@ -461,7 +461,6 @@ export class DatasetView extends React.Component<
461461
// We stop the loading, and download the file because it is ready
462462
result.urls.forEach((url) => {
463463
window.location.href = url;
464-
console.log("- " + url);
465464
});
466465
}
467466
})
@@ -1179,7 +1178,6 @@ export class DatasetView extends React.Component<
11791178
initialValue={this.state.datasetVersion.description}
11801179
save={(description: string) => {
11811180
this.setState({ showEditDescription: false });
1182-
console.log("Save description: " + description);
11831181
this.updateDescription(description);
11841182
}}
11851183
/>

react_frontend/src/components/FolderView.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import * as Dialogs from "./Dialogs";
1111
import { EntryUsersPermissions } from "./modals/EntryUsersPermissions";
1212
import { NotFound } from "./NotFound";
1313
import { SearchInput } from "./Search";
14-
import { CreateDatasetDialog } from "./modals/UploadForm";
14+
import { CreateDatasetDialog } from "./modals/UploadDialogs";
1515
import { toLocalDateString } from "../utilities/formats";
1616
import { relativePath } from "../utilities/route";
1717
import { LoadingOverlay } from "../utilities/loading";
@@ -103,9 +103,7 @@ export class FolderView extends React.Component<
103103
// respond to parameter change in scenario 3
104104
let oldId = prevProps.match.params.folderId;
105105
let newId = this.props.match.params.folderId;
106-
console.log("componentDidUpdate");
107106
if (newId !== oldId) {
108-
console.log("doFetch");
109107
this.doFetch().then(() => {
110108
this.logAccess();
111109
});
@@ -143,18 +141,15 @@ export class FolderView extends React.Component<
143141
} = {};
144142
let _folder: Folder.Folder = null;
145143

146-
console.log("get_folder fetch", this.props);
147144

148145
return tapi
149146
.get_folder(this.props.match.params.folderId)
150147
.then((folder) => {
151-
console.log("get_folder complete", folder);
152148
_folder = new Folder.Folder(folder);
153149
this.setState({ sharingEntries: [_folder] });
154150
return folder.entries;
155151
})
156152
.then((entries: Array<Folder.FolderEntries>) => {
157-
console.log("get_folder entries", entries);
158153

159154
// We want to ask the server a bulk of the datasets and the datasetVersions
160155
let datasetIds = entries
@@ -561,7 +556,6 @@ export class FolderView extends React.Component<
561556

562557
render() {
563558
const { user } = this.props;
564-
console.log("user", user);
565559

566560
let entriesOutput: Array<any> = [];
567561
let navItems: MenuItem[] = [];

react_frontend/src/components/SearchView.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ export class SearchView extends React.Component<
9999

100100
// Get the datasets from query + current_folder
101101
this.doFetchSearch().then((searchResult: Models.SearchResult) => {
102-
console.log("Received the search results!");
103-
console.log("=> " + searchResult);
104102

105103
this.setState({
106104
folder: searchResult.current_folder,

react_frontend/src/components/UploadTracker.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ export class UploadTracker {
9494
params: CreateVersionParams | CreateDatasetParams,
9595
uploadProgressCallback: (status: Array<UploadStatus>) => void
9696
): Promise<DatasetIdAndVersionId> {
97-
console.log("uploading, params:", params);
9897

9998
this.uploadProgressCallback = uploadProgressCallback;
10099

@@ -108,7 +107,6 @@ export class UploadTracker {
108107
return this.submitCreateDataset(credentials, uploadFiles, sid, params);
109108
})
110109
.then((datasetId) => {
111-
console.log("Created new dataset", datasetId);
112110
return datasetId;
113111
});
114112
}
@@ -270,7 +268,6 @@ export class UploadTracker {
270268

271269
this.uploadStatus = uploadStatus;
272270

273-
// console.log("kicking off upload of " + uploadPromises.length + " files");
274271

275272
return Promise.all(uploadPromises).then(
276273
(successes: Array<boolean>): Promise<DatasetIdAndVersionId> => {

react_frontend/src/components/modals/FigshareWYSIWYGEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ let Inline = Quill.import("blots/inline");
66
class BoldBlot extends Inline {}
77
BoldBlot.blotName = "bold";
88
BoldBlot.tagName = "b";
9-
Quill.register("formats/bold", BoldBlot);
9+
Quill.register("formats/bold", BoldBlot, true);
1010

1111
class ItalicBlot extends Inline {}
1212
ItalicBlot.blotName = "italic";
1313
ItalicBlot.tagName = "i";
14-
Quill.register("formats/bold", ItalicBlot);
14+
Quill.register("formats/bold", ItalicBlot, true);
1515

1616
const modules = {
1717
toolbar: [

0 commit comments

Comments
 (0)