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

Replace AngularJS recon portal with React #1369

Draft
wants to merge 157 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
1d5d02d
task/DES-2702: Tapis v3 Auth (#1174)
rstijerina Mar 6, 2024
3df1d3d
Add Google Oauth secrets.
jarosenb Mar 6, 2024
2d8025f
Merge branch 'main' into feat/Tapis-v3-redesign
rstijerina Mar 20, 2024
52fb1f3
Merge branch 'main' into feat/Tapis-v3-redesign
rstijerina Mar 22, 2024
6cbd6c5
task/DES-2709: Tapis v3 Apps Views (#1177)
rstijerina Mar 22, 2024
92777e6
task/DES-2710: v3 Jobs Views & Workspace UI updates (#1182)
rstijerina Mar 26, 2024
10313f4
Merge branch 'main' into feat/Tapis-v3-redesign
rstijerina Mar 27, 2024
aa7e405
Merge branch 'main' into feat/Tapis-v3-redesign
jarosenb Mar 27, 2024
a6a9fec
Use Django to serve static files in debug mode (#1186)
jarosenb Mar 27, 2024
8abe49d
task/DES-2708: Build and serve React assets on deploy (#1173)
jarosenb Mar 27, 2024
74a25ed
re-add agavepy to requirements for legacy migration purposes (#1187)
jarosenb Mar 28, 2024
f96f124
update dockerfile to copy static assets to correct location
jarosenb Mar 28, 2024
7038da0
add V3 file operation module and file listing util (#1189)
jarosenb Mar 29, 2024
5b78f96
Dockerfile build targets and cleanup (#1190)
rstijerina Mar 29, 2024
009a260
gitignore compiled react assets
jarosenb Mar 29, 2024
b304623
TV3/DES-2706: Add view decorator using Tapis JWT auth (#1192)
jarosenb Apr 2, 2024
e333baa
Merge branch 'main' into feat/Tapis-v3-redesign
jarosenb Apr 5, 2024
e1c57a7
use wsgi for django server locally with working staticfiles (#1200)
rstijerina Apr 16, 2024
620b10c
Merge branch 'main' into feat/Tapis-v3-redesign
jarosenb Apr 16, 2024
9b754f1
Merge branch 'main' into feat/Tapis-v3-redesign
rstijerina Apr 19, 2024
76e796b
Merge branch 'main' into feat/Tapis-v3-redesign
rstijerina Apr 22, 2024
7689964
Merge branch 'main' into feat/Tapis-v3-redesign
rstijerina Apr 23, 2024
bbc23a4
Quick: fix tapis client import in filemeta
rstijerina Apr 23, 2024
b953f05
Merge branch 'main' into feat/Tapis-v3-redesign
jarosenb Apr 29, 2024
178e15b
Merge branch 'main' into feat/Tapis-v3-redesign
jarosenb Apr 29, 2024
3a567a7
Merge branch 'main' into feat/Tapis-v3-redesign
jarosenb Apr 29, 2024
a36b08c
Merge branch 'main' into feat/Tapis-v3-redesign
jarosenb Apr 29, 2024
3ff48b6
hotfix/update build info in README.md (#1227)
nathanfranklin May 6, 2024
c08bb58
Merge branch 'main' into feat/Tapis-v3-redesign
jarosenb May 6, 2024
820d67b
Merge branch 'main' into feat/Tapis-v3-redesign
jarosenb May 6, 2024
b644dea
Allow JWT-authed requests for filemeta routes (#1229)
nathanfranklin May 6, 2024
93bba1d
Merge branch 'main' into feat/Tapis-v3-redesign
rstijerina May 7, 2024
aaeeed0
Milestone: Project creation/publication works end-to-end (#1236)
jarosenb May 11, 2024
a68714a
DES-2684: NEES Detail View (#1219)
SilversunKSauri May 13, 2024
1275b7b
task/DES-2767: fix file metadata route path issue (#1235)
nathanfranklin May 13, 2024
ce596f4
use async task for publication
jarosenb May 13, 2024
2e9f5f8
task/DES-2705: Update post-login task to use TAPIS V3 to configure th…
nathanfranklin May 13, 2024
1cf69b8
Working search bars in data files/published areas (#1240)
jarosenb May 15, 2024
fb3ba88
Working file operations/Data Depot buttons. (#1242)
jarosenb May 16, 2024
adbd046
Merge branch 'main' into feat/Tapis-v3-redesign
jarosenb May 16, 2024
7c5e5dd
Migrate listings/breadcrumbs to Common for use in apps (#1243)
jarosenb May 20, 2024
2aa322e
Working pipeline for amend/revise (#1248)
jarosenb May 20, 2024
f8c3507
fix search filters for hyb sim/field recon
jarosenb May 20, 2024
d955df1
formatting
jarosenb May 20, 2024
4b86e21
Refinements to Data Depot UI and pub ingest (#1256)
jarosenb May 23, 2024
8c84d3f
task/WG-258: allow jwt access for project metadata updating (#1255)
nathanfranklin May 23, 2024
046704c
Merge branch 'main' into feat/Tapis-v3-redesign
jarosenb May 24, 2024
e028868
Merge branch 'main' into feat/Tapis-v3-redesign
jarosenb May 24, 2024
e7bb0c9
task/DES-2629: v3 Apps Form (#1185)
rstijerina May 29, 2024
26cad36
fix cache_allocations task; linting
rstijerina May 29, 2024
c2e288b
Fixes for publication session items (#1270)
jarosenb May 30, 2024
9837b28
task/DES-2823: Fix interactive modal (#1266)
rstijerina May 30, 2024
c9748e9
Task/DES-2801 [UI] Apps Nav Bar Spacing (#1271)
sophia-massie May 30, 2024
5febb84
docs: tapis v3 redesign readme step №3 (#1273)
wesleyboar May 30, 2024
7210ae5
Bug/layout sider fix (#1274)
sophia-massie May 30, 2024
3e49f32
DES-2819: Select Modal Design Updates (Part 1 of 2) (#1276)
chandra-tacc May 31, 2024
b6103c5
Fix isRequired for nested fields (#1277)
chandra-tacc May 31, 2024
d43d05d
Task/des 2849 cite this data (#1272)
van-go May 31, 2024
7265c26
Apps form testing session fixes (#1279)
rstijerina May 31, 2024
41390ee
task/DES-2726: configure cloud data on login (#1265)
nathanfranklin May 31, 2024
4e3cc04
Add modals for publication feedback/archive download (#1275)
jarosenb May 31, 2024
4276353
Bug: Handle zod optional fields for undefined or empty values (#1281)
chandra-tacc Jun 3, 2024
528481e
include App Overview link in breadcrumbs (#1283)
rstijerina Jun 3, 2024
1703490
task/DES-2759 : Apps side nav styling updates (#1280)
edmondsgarrett Jun 3, 2024
281dc93
Bug DES-2876: Select Modal bug fixes (#1284)
chandra-tacc Jun 4, 2024
15e5100
Bug/download citation not working in next (#1285)
van-go Jun 5, 2024
dbc2193
fix app version href
rstijerina Jun 5, 2024
b30caed
Merge branch 'main' into feat/Tapis-v3-redesign
rstijerina Jun 7, 2024
b5484f3
Bugs/DES-2828 and DES-2829: Select Modal system selection and validat…
chandra-tacc Jun 7, 2024
bcbc38f
update default DS allocation prefix
rstijerina Jun 7, 2024
cf39012
also accept DesignSafe-DCV
rstijerina Jun 7, 2024
0d923bc
fix allocation check on non-batch exec system
rstijerina Jun 11, 2024
ad76cc0
Merge branch 'main' into feat/Tapis-v3-redesign
rstijerina Jun 11, 2024
f87096a
full length workspace content; apps side nav scrolls (#1290)
rstijerina Jun 11, 2024
36807ca
quick: fix hidden overflow on app side nav
rstijerina Jun 12, 2024
b8dfbed
task/DES-1989 - Redirect guest users when accessing non-published pro…
fnets Jun 13, 2024
a03c725
fixes to pipeline publish operations (#1294)
jarosenb Jun 14, 2024
bc36da3
scope .o-site__body changes to workspace
rstijerina Jun 14, 2024
6580503
revert changes to alert styling
jarosenb Jun 14, 2024
b621958
- Uses selectedKey property in Menu to correctly (#1296)
sophia-massie Jun 14, 2024
0cc7751
Workspace fixes from 6/12 testing session (#1295)
rstijerina Jun 14, 2024
d615ee9
Task/des 2862 update form validation messages (#1297)
van-go Jun 16, 2024
bc1f70f
task/WG-294: improve links from DS projects to hazmapper maps (#1291)
nathanfranklin Jun 16, 2024
3a481d8
TV3: disable move/rename on files with metadata associations. (#1293)
jarosenb Jun 16, 2024
5e4793e
Task/des 2666 metrics modal (#1237)
van-go Jun 16, 2024
99ba743
pipeline bugfixes; redirect to project after publishing (#1298)
jarosenb Jun 16, 2024
251be2d
close dropdown menus after selection
jarosenb Jun 17, 2024
2ee88d1
replace registration link with redirect to TAM
jarosenb Jun 17, 2024
98b341a
accept jwt auth for license view (#1300)
rstijerina Jun 17, 2024
9931a42
DES-2896: Do not block continue to next step on invalid fields (#1301)
chandra-tacc Jun 17, 2024
19a2788
styling for job status nav when active and hover (#1303)
rstijerina Jun 18, 2024
b212079
Bugs/DES-2907: Exclude allocations at portal level (#1302)
chandra-tacc Jun 18, 2024
cdfa698
add default to ALLOCATIONS_TO_EXCLUDE
rstijerina Jun 18, 2024
748adb4
task/DES-2911: Render `jobAttributes` `notes.label` as form field lab…
rstijerina Jun 18, 2024
411a12a
Merge branch 'main' into feat/Tapis-v3-redesign
rstijerina Jun 18, 2024
e6162c4
Task/des 2905 cite this data type other (#1299)
van-go Jun 20, 2024
a018dd9
Merge commit 'f2ce0f2170cbfd54e2bcc1a384e3158b5fb7ceed' into feat/Tap…
rstijerina Jun 24, 2024
8d93f0e
Merge branch 'main' into feat/Tapis-v3-redesign
rstijerina Jun 24, 2024
e5571d2
DES-2909 and DES-2914 - bug fixes (#1306)
chandra-tacc Jun 24, 2024
fed13fd
Bugs/DES-2888: Select Modal - regex fix to detect storage system and …
chandra-tacc Jun 24, 2024
55cd1ba
Bug/DES-2835,2855: Ribbon Buttons and Amend text (#1311)
van-go Jun 24, 2024
74dfa46
Fixes: Data Depot testing session 2024-06-17 (#1310)
jarosenb Jun 25, 2024
8c49dda
don't indicate success on submission of async file transfer
jarosenb Jun 25, 2024
c0215bb
DES-2931, DES-2932, DES-2929: Project edit modal fixes (#1314)
jarosenb Jun 25, 2024
8c9aeeb
Show tags in Select Files listing for type Other (#1312)
jarosenb Jun 25, 2024
23151f5
Bug/DES-2923: Remove Download Data from My Projects (#1318)
van-go Jun 26, 2024
e6acfbb
bug/DES-2922: word/spelling/typo issues (#1313)
van-go Jun 26, 2024
9d07f7e
set mydata acls for other and mask (#1315)
rstijerina Jun 26, 2024
48a77f2
feat: DES-2903 add id to app listing headings (#1316)
wesleyboar Jun 26, 2024
4ad861b
DES-2940 - handle env var with labels (#1319)
chandra-tacc Jun 27, 2024
160a158
feat: DES-2806 cms breadcrumbs (#1268) (#1320)
wesleyboar Jul 1, 2024
f2e5537
Bug/des 2990 Fix fr protected data options (#1321)
jarosenb Jul 1, 2024
7a9a0df
Persist HazMapper maps when changing project type (#1323)
jarosenb Jul 1, 2024
9289586
Merge branch 'main' into feat/Tapis-v3-redesign
wesleyboar Jul 1, 2024
4b93286
bug/DES-3000: Handle DOI not provided in useCitationMetrics (#1325)
van-go Jul 2, 2024
357f1de
Bug/DES-2982: text/typo/wording/spelling issues (#1329)
van-go Jul 8, 2024
d67ca44
Pipeline fixes and Fedora representation for publications (#1332)
jarosenb Jul 8, 2024
f8dd741
task/DES-2924: Add metadata and move/copy/download buttons to preview…
jarosenb Jul 8, 2024
0906586
Data Files/Projects styling fixes (#1336)
jarosenb Jul 8, 2024
05c8e4b
Scope scroll overflow behavior in modals to Tools & Applications (#1338)
jarosenb Jul 8, 2024
4d8fbb7
Task/DES-2984: Use a single form for creating and updating categories…
jarosenb Jul 10, 2024
293969c
successCallback typo fix in preview/move modals
jarosenb Jul 10, 2024
412e703
Bugs/DES-2872: [AppForm] Handle axios request errors without crashing…
chandra-tacc Jul 10, 2024
d348089
Task/WA-199: Uniform margin/padding for HTML app content. (#1342)
jarosenb Jul 10, 2024
a012e14
Include all job submission values in job detail modal (#1333)
chandra-tacc Jul 10, 2024
5cd8908
Update file metadata on move/copy/rename (#1344)
jarosenb Jul 10, 2024
69a0f93
[AppForm] Use bundle_icon field for app icon in App Form header (#1345)
chandra-tacc Jul 11, 2024
fcb43de
[SelectModal] New features added - back button and first row (#1340)
chandra-tacc Jul 11, 2024
b2a4d0d
add search bars to NEES layouts; add links to files in experiments (#…
jarosenb Jul 11, 2024
59bad06
task/DES-2935: Notifications fine tuning (#1346)
rstijerina Jul 11, 2024
b27041f
Bug/des-2986: description error messages (#1328)
van-go Jul 11, 2024
887aaad
Handle `memoryMb` value change on queue change (#1350)
chandra-tacc Jul 12, 2024
f0055da
update docker compose command in makefile; show execution dir while r…
rstijerina Jul 12, 2024
7629770
split datacite metrics and events hooks; fix caching (#1349)
jarosenb Jul 12, 2024
af1e3b3
reset 'download datset' modal on close
jarosenb Jul 12, 2024
3c2f679
add dropdown with help links (#1355)
jarosenb Jul 15, 2024
708585f
[Apps] Translate Early Termination TAPIS Failure Status to Success if…
chandra-tacc Jul 15, 2024
ac44f60
[Job History] Implement expected functionality of "Reuse Inputs" (#1357)
chandra-tacc Jul 15, 2024
cab3092
add category to breadcrumb (#1360)
rstijerina Jul 15, 2024
954942c
task/DES-3020: Fix scroll in HTML apps (#1361)
rstijerina Jul 15, 2024
8d20905
Task/DES-2601: DOI logging for file/publication operations (#1356)
jarosenb Jul 16, 2024
aceeac2
Add instructions for bulk data transfer into projects (#1365)
jarosenb Jul 16, 2024
24353ea
Bugs/DES-3033 [Job Details Modal] Do not show hidden fields and show …
chandra-tacc Jul 16, 2024
240a2ec
task/DES-2936 - Hide Outputs section in form for interactive jobs (#1…
fnets Jul 16, 2024
07e31a3
Task/WG-316 Data Depot disable menu hazmapper (#1352)
sophia-massie Jul 16, 2024
cb4c47f
task/DES-2939 - New App Notes Field "hideQueue" (#1326)
fnets Jul 16, 2024
f7752e2
Improve handling of error responses for projects/publications (#1367)
jarosenb Jul 16, 2024
27a7529
task/DES-2938 & DES-2941: App form updates (#1366)
edmondsgarrett Jul 16, 2024
e608c40
formatting
jarosenb Jul 16, 2024
a489539
initial commit replacing AngularJS recon portal with React placeholder
jarosenb Jul 17, 2024
fe80f0d
update to Usage Breakdown
van-go Jul 18, 2024
010e2fa
Revert "update to Usage Breakdown"
jarosenb Jul 18, 2024
4bf5db3
Merge branch 'main' into feat/Tapis-v3-redesign
jarosenb Jul 18, 2024
348dcaa
Bug/des 2528 update datacite metrics (#1371)
van-go Jul 19, 2024
555cb92
update missing allocation message (#1372)
rstijerina Jul 22, 2024
88eec39
Merge branch 'feat/Tapis-v3-redesign' into feat/recon-portal-react
nathanfranklin Jul 22, 2024
4b0c98b
task/DES-2880: add module and placeholder components (#1375)
nathanfranklin Jul 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 5 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ coverage
.docs
.github
.pytest_cache
data
data

client/node_modules
client/.nx
client/dist
8 changes: 0 additions & 8 deletions .docs/source/designsafe.apps.auth.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@ designsafe.apps.auth.backends module
:undoc-members:
:show-inheritance:

designsafe.apps.auth.context_processors module
----------------------------------------------

.. automodule:: designsafe.apps.auth.context_processors
:members:
:undoc-members:
:show-inheritance:

designsafe.apps.auth.middleware module
--------------------------------------

Expand Down
5 changes: 4 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[flake8]
# E501: line is too long.
# H101: Use TODO(NAME)
ignore = E501, H101
# W503: line break before binary operator. Ingore as black will break this rule.
ignore = E501, H101, W503
exclude = __pycache__,
tests.py,
migrations

extend-ignore = W503
74 changes: 57 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
# Controls when the action will run. Triggers the workflow on pushes to main or on pull request events
on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ '**' ]

Expand All @@ -17,7 +16,7 @@ jobs:
- uses: actions/checkout@v4

- name: Fetch base and install Poetry
run: |
run: |
git fetch origin ${{github.base_ref}}
pipx install poetry

Expand All @@ -34,6 +33,30 @@ jobs:
- run: |
poetry install

- name: Run Server-side unit tests and generate coverage report
run: |
poetry run pytest --cov-config=.coveragerc --cov=designsafe --cov-report=xml -ra designsafe

Server_Side_Linting:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Fetch base and install Poetry
run: |
git fetch origin ${{github.base_ref}}
pipx install poetry

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'poetry'

- name: Install Python Packages
run: |
poetry install

- name: Run Server-side linting with pytest
# Only run on new files for now-- for all changes, filter is ACMRTUXB
# Check manage.py to prevent a crash if no files are selected.
Expand All @@ -44,16 +67,12 @@ jobs:
run: |
poetry run black $(git diff --name-only --diff-filter=A origin/${{github.base_ref}} | grep -E "(.py$)") manage.py --check

- name: Run Server-side unit tests and generate coverage report
run: |
poetry run pytest --cov-config=.coveragerc --cov=designsafe --cov-report=xml -ra designsafe

Client_Side_Unit_Tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup Node.js for use with actions
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
cache: npm
Expand All @@ -64,12 +83,12 @@ jobs:
React_NX_unit_tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js for use with actions
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
Expand All @@ -78,14 +97,35 @@ jobs:
working-directory: client

- uses: nrwl/nx-set-shas@v3
# Check linting/formatting of workspace files.
- run: npx nx format:check
working-directory: client

# Lint/test/build any apps and libs that have been impacted by the diff.
- run: npx nx affected --target=lint --parallel=3
working-directory: client
# Test/build any apps and libs that have been impacted by the diff.
- run: npx nx affected --target=test --parallel=3 --ci --code-coverage
working-directory: client
- run: npx nx affected --target=build --parallel=3
working-directory: client

React_NX_linting:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js for use with actions
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- run: npm ci
working-directory: client

- uses: nrwl/nx-set-shas@v3

# Check linting/formatting of workspace files.
- run: npx nx format:check
working-directory: client

# Lint any apps and libs that have been impacted by the diff.
- run: npx nx affected --target=lint --parallel=3
working-directory: client
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ settings.json
designsafe/apps/rapid/static/designsafe/apps/rapid/build/bundle.*
designsafe/apps/geo/static/designsafe/apps/geo/build/bundle.*
designsafe/static/build/
designsafe/static/react-assets/
designsafe/templates/react-assets.html
# designsafe/static/styles/base.*
/static

Expand Down
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ ignored-checks-for-mixins=no-member,
# List of class names for which member attributes should not be checked (useful
# for classes with dynamically set attributes). This supports the use of
# qualified names.
ignored-classes=optparse.Values,thread._local,_thread._local,argparse.Namespace
ignored-classes=optparse.Values,thread._local,_thread._local,argparse.Namespace,Tapis

# Show a hint with possible names when a member name was not found. The aspect
# of finding the hint is based on edit distance.
Expand Down
18 changes: 15 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
.PHONY: build
build:
docker-compose -f ./conf/docker/docker-compose.yml build
docker compose -f ./conf/docker/docker-compose.yml build

.PHONY: build-dev
build-dev:
docker compose -f ./conf/docker/docker-compose-dev.yml build

.PHONY: start
start:
docker-compose -f ./conf/docker/docker-compose-dev.all.debug.yml up
docker compose -f ./conf/docker/docker-compose-dev.all.debug.yml up

.PHONY: stop
stop:
docker-compose -f ./conf/docker/docker-compose-dev.all.debug.yml down
docker compose -f ./conf/docker/docker-compose-dev.all.debug.yml down

.PHONY: start-m1
start-m1:
docker compose -f ./conf/docker/docker-compose-dev.all.debug.m1.yml up

.PHONY: stop-m1
stop-m1:
docker compose -f ./conf/docker/docker-compose-dev.all.debug.m1.yml down
54 changes: 27 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,34 +40,37 @@ If you are on a Mac or a Windows machine, the recommended method is to install
- `AGAVE_*`: should be set to enable Agave API integration (authentication, etc.)
- `RT_*`: should be set to enable ticketing

Make copies of [rabbitmq.sample.env](conf/env_files/rabbitmq.sample.env) and [mysql.sample.env](conf/env_files/mysql.sample.env),
then rename them to `rabbitmq.env` and `mysql.env`.

Make copies of [mysql.sample.cnf](conf/mysql.sample.cnf), [redis.sample.conf](conf/redis.sample.conf),
and [rabbitmq.sample.conf](conf/rabbitmq.sample.conf), then rename them to `mysql.cnf`, `redis.conf`, and `rabbitmq.conf`.
Make a copy of [rabbitmq.sample.env](conf/env_files/rabbitmq.sample.env)
then rename it to `rabbitmq.env`.

Make a copy of [external_resource_secrets.sample.py](designsafe/settings/external_resource_secrets.sample.py)
and rename it to `external_resource_secrets.py`.

3. Build the containers and frontend package
3. Build the containers and frontend packages

```
$ make build
```
or
```
$ docker-compose -f conf/docker/docker-compose.yml build
```
1. Containers:
```sh
make build-dev
```
or
```sh
docker-compose -f conf/docker/docker-compose-dev.yml build
```

These lines install the node packages required for DesignSafe,
and build the frontend package.
```
$ npm ci
$ npm run build
```
2. Angular Frontend + static assets:
```sh
npm ci
docker run -v `pwd`:`pwd` -w `pwd` -it node:16 /bin/bash -c "npm run build"
```

If you are working with the frontend code and want it to automatically update,
use `npm run dev` rather than `npm run build` to have it build upon saving the file.
**Note:** If you are working with the frontend code and want it to automatically update, use `npm run dev` rather than `npm run build` to have it build upon saving the file.

3. React Frontend (in another terminal):
```sh
cd client
npm ci
npm run start
```

4. Start local containers

Expand All @@ -82,7 +85,7 @@ If you are on a Mac or a Windows machine, the recommended method is to install
```
$ docker exec -it des_django bash
$ ./manage.py migrate
$ ./manage.py collectstatic -i demo
$ ./manage.py collectstatic --ignore demo --no-input
$ ./manage.py createsuperuser
```

Expand Down Expand Up @@ -225,8 +228,8 @@ $ docker-compose -f conf/docker/docker-compose-dev.all.debug.yml up
$ npm run dev
```

When using this compose file, your Agave Client should be configured with a `callback_url`
of `http://$DOCKER_HOST_IP:8000/auth/agave/callback/`.
When using this compose file, your Tapis Client should be configured with a `callback_url`
of `http://$DOCKER_HOST_IP:8000/auth/tapis/callback/`.

For developing some services, e.g. Box.com integration, https support is required. To
enable an Nginx http proxy run using the [`docker-compose-http.yml`](docker-compose-http.yml)
Expand All @@ -238,9 +241,6 @@ $ docker-compose -f docker-compose-http.yml build
$ docker-compose -f docker-compose-http.yml up
```

When using this compose file, your Agave Client should be configured with a `callback_url`
of `https://$DOCKER_HOST_IP/auth/agave/callback/`.

### Agave filesystem setup
1. Delete all of the old metadata objects using this command:

Expand Down
5 changes: 0 additions & 5 deletions bin/build_client.sh

This file was deleted.

7 changes: 0 additions & 7 deletions bin/dumpdata.sh

This file was deleted.

10 changes: 0 additions & 10 deletions bin/loaddata.sh

This file was deleted.

1 change: 0 additions & 1 deletion bin/mysql.sh

This file was deleted.

2 changes: 1 addition & 1 deletion bin/run-celery-debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
#
celery -A designsafe beat -l info --pidfile= --schedule=/tmp/celerybeat-schedule &
celery -A designsafe worker -l info --autoscale=15,5 -Q indexing,files -n designsafe_worker01 &
celery -A designsafe worker -l info --autoscale=10,3 -Q default,api -n designsafe_worker02
celery -A designsafe worker -l info --autoscale=10,3 -Q default,api,onboarding -n designsafe_worker02
6 changes: 0 additions & 6 deletions bin/run-celery-dev.sh

This file was deleted.

2 changes: 1 addition & 1 deletion bin/run-celery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# Run Celery as the DesignSafe Community Account
celery -A designsafe beat -l info --pidfile= --schedule=/tmp/celerybeat-schedule &
celery -A designsafe worker -l info --autoscale=15,5 -Q indexing,files -n designsafe_worker01 &
celery -A designsafe worker -l info --autoscale=10,3 -Q default,api -n designsafe_worker02
celery -A designsafe worker -l info --autoscale=10,3 -Q default,api,onboarding -n designsafe_worker02
3 changes: 0 additions & 3 deletions bin/run-django.sh

This file was deleted.

6 changes: 0 additions & 6 deletions bin/run-flower.sh

This file was deleted.

18 changes: 0 additions & 18 deletions bin/run-tests.sh

This file was deleted.

3 changes: 0 additions & 3 deletions bin/run-uwsgi.sh

This file was deleted.

Loading
Loading