Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
332 commits
Select commit Hold shift + click to select a range
ea14cb3
Update bug-fix.yml
rg663 Jul 20, 2023
df0b05b
Update bug-fix.yml
rg663 Jul 20, 2023
20d39c0
Update bug-fix.yml
rg663 Jul 20, 2023
a726cd2
Update bug-fix.yml
rg663 Jul 20, 2023
697532b
Update bug-fix.yml
rg663 Jul 20, 2023
d77d74f
Create pull_request_template.yml
rg663 Jul 20, 2023
cb77c3d
Update and rename pull_request_template.yml to pull_request_template.md
rg663 Jul 20, 2023
597f526
Merge pull request #549 from cecilialau6776/new_alloc_signal
aebruno Jul 20, 2023
bc495b0
Merge pull request #548 from cecilialau6776/358/documentation
aebruno Jul 20, 2023
dbd3c39
Merge pull request #545 from cecilialau6776/ldap_user_search/custom_m…
aebruno Jul 21, 2023
12a66be
Merge pull request #532 from ShreyasSridhar24/457-notif
aebruno Jul 21, 2023
954d2c5
Merge pull request #528 from cecilialau6776/main
aebruno Jul 21, 2023
b8a8f00
Merge pull request #523 from ShreyasSridhar24/305-inj
aebruno Jul 21, 2023
6ea66e2
Update .gitignore
rg663 Jul 24, 2023
5ba2c9a
Update .gitignore
rg663 Jul 24, 2023
06cd61c
fix
rg663 Jul 24, 2023
69535cc
Update bug-fix.yml
rg663 Jul 24, 2023
f5c90f5
Update feature-request.yml
rg663 Jul 24, 2023
5867ca6
address review comments for #546
claire-peters Jul 25, 2023
dc6ff92
Merge pull request #554 from rg663/issue-and-pr-templates
aebruno Jul 26, 2023
1dacdb7
Merge pull request #530 from rg663/472-how-to-build-a-plugin
aebruno Jul 26, 2023
f512b9e
Merge pull request #533 from rg663/442-grant-formatting
aebruno Jul 26, 2023
2134374
add success message for successful posting of form for AllocationCrea…
claire-peters Jul 26, 2023
19b16aa
Merge branch 'main' into master
claire-peters Jul 26, 2023
853675d
Adding additional advanced documentation.
lcrownover Jul 27, 2023
f06495c
Merge pull request #556 from lcrownover/main
aebruno Jul 28, 2023
3455e5b
Merge pull request #546 from claire-peters/master
aebruno Jul 28, 2023
9ee79f3
fix misfiring success message, remove redundant function
claire-peters Jul 28, 2023
25c6aa4
Fix link
aebruno Jul 29, 2023
3bdec81
Merge pull request #557 from claire-peters/master
aebruno Aug 3, 2023
1c3d9b1
Update python in Dockerfile to 3.8
nml5566 Oct 16, 2023
4897bd6
Merge pull request #578 from nml5566/nml5566-bump-python-version
aebruno Oct 16, 2023
8705ce4
update mozilla-django-oidc version
harterjwustl Feb 6, 2024
9c5d33a
add oidc_use_pkce config
harterjwustl Feb 6, 2024
4cdc59d
Merge pull request #1 from WashU-IT-RIS/django-mozilla-update
harterjwustl Feb 8, 2024
a93dbb4
patch from coldfront repo
cdeanj2 Jun 18, 2024
1ceded8
allocation view
cdeanj2 Jun 19, 2024
73f14e3
bare bones view allocation
cdeanj2 Jun 24, 2024
b3da1ae
directs to allocation list view
cdeanj2 Jun 25, 2024
b80744a
adding create allocation option so patch can be removed
cdeanj2 Jun 26, 2024
15fc173
allocation link
cdeanj2 Jun 26, 2024
8a39ea2
fix
cdeanj2 Jun 26, 2024
5a88648
allocation view
cdeanj2 Jun 26, 2024
0a85499
new path
cdeanj2 Jun 26, 2024
89f8b13
allocation table
cdeanj2 Jun 27, 2024
b0e7442
prepend
cdeanj2 Jun 28, 2024
aa8b4ea
:/
cdeanj2 Jun 28, 2024
f244fbe
Test commit to filter out payment statuses
peaches7083 Jul 1, 2024
3405cf5
allocation table query function
cdeanj2 Jul 1, 2024
b103f18
allocation object change
cdeanj2 Jul 1, 2024
af31031
Trying nin instead of not__in
peaches7083 Jul 1, 2024
8043658
exclude is actually proper syntax
peaches7083 Jul 1, 2024
c5d521e
allocation table
cdeanj2 Jul 1, 2024
286badf
allocation_table
cdeanj2 Jul 1, 2024
827e6c3
Adding Unpaid status to the exclusion list
peaches7083 Jul 1, 2024
d3db9ad
return all to test
cdeanj2 Jul 1, 2024
00095a4
allocation list
cdeanj2 Jul 1, 2024
c45ce5f
allocation list
cdeanj2 Jul 1, 2024
9c87281
Moving HTML to alloc folder underneath templates
peaches7083 Jul 1, 2024
9d217f2
Fixing up URL setup
peaches7083 Jul 1, 2024
4f5996a
Adding parens to make it a function call
peaches7083 Jul 1, 2024
3b17466
test
cdeanj2 Jul 1, 2024
d98f641
Fixing more url stuff
peaches7083 Jul 1, 2024
636bcb8
allocation
cdeanj2 Jul 1, 2024
4a456ad
qumulo
cdeanj2 Jul 1, 2024
f0d6163
allocation
cdeanj2 Jul 1, 2024
abeb60e
Tweaking template to make it obvious which is instantiated
peaches7083 Jul 1, 2024
a8c380d
url mods
cdeanj2 Jul 1, 2024
32aec3c
Adding Renewal Requested to exclusion + explanatory comment
peaches7083 Jul 2, 2024
f3aaae3
Running black formatter on forms.py
peaches7083 Jul 2, 2024
a4a1c73
Merge pull request #2 from WashU-IT-RIS/ITDEV-34909-clean-up-statuses
peaches7083 Jul 2, 2024
cd38986
department number
cdeanj2 Jul 2, 2024
2bfa61b
ID
cdeanj2 Jul 2, 2024
e464fb0
from pairing session with john
cdeanj2 Jul 3, 2024
bd2fe4b
Test commit
peaches7083 Jul 5, 2024
2ff7679
Adding init
peaches7083 Jul 6, 2024
9ab8f9b
Fixing dict iteration
peaches7083 Jul 9, 2024
ad63e9e
Adding a resource filter to avoid iterating over ro or rw allocation …
peaches7083 Jul 9, 2024
2a42ec0
Updating count call
peaches7083 Jul 9, 2024
f5f5785
Pulling over html slash url changes
peaches7083 Jul 9, 2024
254d7e3
Fixing template to use proper field name for department
peaches7083 Jul 9, 2024
2ab8be1
Adding other columns
peaches7083 Jul 9, 2024
e329c02
Fixing principal investigator column
peaches7083 Jul 9, 2024
5ef1540
Fixing HTML to refer to right field paths
peaches7083 Jul 9, 2024
cd29d94
Adding project filter (test)
peaches7083 Jul 10, 2024
2703ce9
Merge pull request #3 from WashU-IT-RIS/jprew/investigate_allocation_…
cdeanj2 Jul 10, 2024
d6c7890
itsd_ticket
cdeanj2 Jul 10, 2024
a784c60
ITSD Ticket
cdeanj2 Jul 10, 2024
9b25553
fix
cdeanj2 Jul 10, 2024
60c6bcb
file path
cdeanj2 Jul 10, 2024
684786d
fix
cdeanj2 Jul 10, 2024
157fbee
service rate
cdeanj2 Jul 10, 2024
de5b480
allocation name
cdeanj2 Jul 11, 2024
9aa8860
rm allocation name from table
cdeanj2 Jul 11, 2024
805bf51
allocation_name
cdeanj2 Jul 11, 2024
9175a62
resource
cdeanj2 Jul 11, 2024
022ada5
comment
cdeanj2 Jul 11, 2024
a8b61bb
resource name
cdeanj2 Jul 11, 2024
fb9d8e5
resource
cdeanj2 Jul 11, 2024
46e3d99
parent name
cdeanj2 Jul 11, 2024
0cbc35c
resource
cdeanj2 Jul 11, 2024
95421b3
all objects
cdeanj2 Jul 11, 2024
f288d2d
allocation
cdeanj2 Jul 11, 2024
172d837
remove end date
cdeanj2 Jul 11, 2024
aeae8aa
status in views
cdeanj2 Jul 11, 2024
07c1080
allocation status
cdeanj2 Jul 11, 2024
42c47c7
status
cdeanj2 Jul 11, 2024
7eed17c
clean up comments
cdeanj2 Jul 11, 2024
4df4002
to /qumulo/allocation
cdeanj2 Jul 16, 2024
275d8d8
/qumulo/allocation/
cdeanj2 Jul 16, 2024
1ac2472
no /
cdeanj2 Jul 16, 2024
9431f06
pk
cdeanj2 Jul 16, 2024
8090db8
pk
cdeanj2 Jul 16, 2024
e683b43
pk
cdeanj2 Jul 16, 2024
4334e78
Update coldfront/core/allocation/templates/allocation/allocation_tabl…
cdeanj2 Jul 17, 2024
56900c6
Update coldfront/core/allocation/views.py
cdeanj2 Jul 17, 2024
672ace0
moving stuff
cdeanj2 Jul 18, 2024
5dba32d
Merge branch 'feature/ITDEV-34829_add_navigation_link' of ssh://githu…
cdeanj2 Jul 18, 2024
a28668a
not
cdeanj2 Jul 18, 2024
13ddf34
oops
cdeanj2 Jul 18, 2024
8e37b36
qumulo
cdeanj2 Jul 18, 2024
fe22467
removed items now in coldfront-plugin-qumulo
cdeanj2 Jul 23, 2024
bd3143d
remove import
cdeanj2 Jul 23, 2024
ebef525
remove unused import and exptra spacing
cdeanj2 Jul 24, 2024
1182792
spacing
cdeanj2 Jul 24, 2024
27f51f7
space
cdeanj2 Jul 24, 2024
dcb18f6
Merge pull request #4 from WashU-IT-RIS/feature/ITDEV-34829_add_navig…
cdeanj2 Jul 24, 2024
7ee4380
updating description validation
cdeanj2 Jul 26, 2024
e0a9320
description not required
cdeanj2 Jul 26, 2024
14727dc
description in allocation model not required?
cdeanj2 Jul 26, 2024
8c6c356
oops
cdeanj2 Jul 26, 2024
c9bdce1
blank = True
cdeanj2 Jul 29, 2024
56174af
default description not needed
cdeanj2 Jul 29, 2024
f94ec4d
remove comments
cdeanj2 Jul 29, 2024
11f509f
Merge pull request #5 from WashU-IT-RIS/feature/ITDEV-34973_project_d…
cdeanj2 Jul 29, 2024
900a286
remove research outputs, publications, and grants
cdeanj2 Jul 29, 2024
61d226b
Merge pull request #6 from WashU-IT-RIS/feature/ITDEV-34976_remove_gr…
cdeanj2 Jul 30, 2024
d9755c6
copy of allocation table
cdeanj2 Jul 31, 2024
4a5fd2f
list title
cdeanj2 Jul 31, 2024
f883793
allocations only in table if ready for deletion
cdeanj2 Aug 1, 2024
89cdac8
button
cdeanj2 Aug 1, 2024
362e6ce
experiment
cdeanj2 Aug 1, 2024
145444c
moving if statement around
cdeanj2 Aug 1, 2024
e13fbf8
There are no allocations marked for deletion
cdeanj2 Aug 1, 2024
b883228
modify if statement
cdeanj2 Aug 2, 2024
57b4947
elif
cdeanj2 Aug 2, 2024
ee3993c
else
cdeanj2 Aug 2, 2024
decdfa1
spacing issue?
cdeanj2 Aug 2, 2024
1a561b3
forgot endif
cdeanj2 Aug 3, 2024
3985b97
allocation list
cdeanj2 Aug 3, 2024
7447274
delete counter
cdeanj2 Aug 3, 2024
c28e96e
rm allocation_delete
cdeanj2 Aug 3, 2024
8cd0322
removing message for now
cdeanj2 Aug 3, 2024
04719d4
ready for deletion
cdeanj2 Aug 6, 2024
bc8c0ea
Ready for Deletion
cdeanj2 Aug 6, 2024
ea26d08
endif
cdeanj2 Aug 6, 2024
1dbcab0
Merge pull request #7 from WashU-IT-RIS/feature/ITDEV-34841_add_list_…
cdeanj2 Aug 6, 2024
bd3650f
debugging
harterjwustl Aug 8, 2024
5ea090c
debugging
harterjwustl Aug 8, 2024
e141306
debug
harterjwustl Aug 13, 2024
9ebfedd
debug
harterjwustl Aug 13, 2024
350597f
add pi
harterjwustl Aug 15, 2024
746bb62
add create form
harterjwustl Aug 15, 2024
04620c6
error fix
harterjwustl Aug 15, 2024
35f9520
test custom PI
harterjwustl Aug 15, 2024
bfb39b6
test custom PI
harterjwustl Aug 15, 2024
dd7139d
test custom PI
harterjwustl Aug 15, 2024
c9151f9
test custom PI
harterjwustl Aug 16, 2024
bd0dc33
test custom PI
harterjwustl Aug 16, 2024
13675c4
test custom PI
harterjwustl Aug 16, 2024
38272e1
test custom PI
harterjwustl Aug 16, 2024
97b96e3
fix tuple access
harterjwustl Aug 16, 2024
7c36f8d
troubleshoo
harterjwustl Aug 16, 2024
8bd1189
troubleshoo
harterjwustl Aug 16, 2024
ecd6363
cleanup
harterjwustl Aug 16, 2024
7586b36
update import
harterjwustl Aug 19, 2024
11f7d41
add newline to eof
harterjwustl Aug 19, 2024
061a87b
Merge pull request #8 from WashU-IT-RIS/itdev34822-selectable-pi
harterjwustl Aug 19, 2024
3c25b53
adding qumulo plugin
harterjwustl Sep 11, 2024
921e7de
update references
harterjwustl Sep 11, 2024
f144008
href test
harterjwustl Sep 11, 2024
0ff53ba
update app name
harterjwustl Sep 11, 2024
89e0fe1
troubleshoot
harterjwustl Sep 11, 2024
c25ff43
troubleshoot
harterjwustl Sep 11, 2024
64f7620
troubleshoot
harterjwustl Sep 11, 2024
6b93be9
troubleshoot
harterjwustl Sep 11, 2024
5049446
troubleshoot
harterjwustl Sep 11, 2024
11b9985
troubleshoot
harterjwustl Sep 11, 2024
de86e40
troubleshoot
harterjwustl Sep 12, 2024
671c20f
troubleshoot
harterjwustl Sep 12, 2024
ec67aaa
troubleshoot
harterjwustl Sep 12, 2024
adaca28
troubleshoot
harterjwustl Sep 12, 2024
9e01844
troubleshoot
harterjwustl Sep 12, 2024
109604f
troubleshoot
harterjwustl Sep 12, 2024
b399549
cleanup
harterjwustl Sep 12, 2024
c7c71da
add tags to integration tests and update readme
harterjwustl Sep 16, 2024
7f3ae61
test cleanup and documentation
harterjwustl Sep 16, 2024
483f04f
correct workflow error
harterjwustl Sep 16, 2024
b73a81a
minor action update
harterjwustl Sep 16, 2024
8474514
minor action update
harterjwustl Sep 16, 2024
6784f06
minor action update
harterjwustl Sep 16, 2024
ab94979
add small update
harterjwustl Sep 17, 2024
2c13ded
Tweaking unit tests to (hopefully) disambiguate PI last names
peaches7083 Sep 17, 2024
8681156
test
harterjwustl Sep 17, 2024
ca4be89
test
harterjwustl Sep 17, 2024
0559f1a
revert file for tests
harterjwustl Sep 17, 2024
053ecf6
reenabling johns changes
harterjwustl Sep 17, 2024
d72a852
cleanup
harterjwustl Sep 17, 2024
ff76064
Merge pull request #11 from WashU-IT-RIS/consolidated-repo
harterjwustl Sep 17, 2024
5e32af0
new repo
cdeanj2 Sep 18, 2024
1ff281f
qumulo
cdeanj2 Sep 18, 2024
0672752
get success_id
cdeanj2 Sep 18, 2024
7d2c7b3
Allocation context
cdeanj2 Sep 18, 2024
883b7f4
new conditional logic
cdeanj2 Sep 18, 2024
2f7d433
context is passed check
cdeanj2 Sep 19, 2024
5728720
status
cdeanj2 Sep 19, 2024
ea32ed5
pending logic
cdeanj2 Sep 19, 2024
dd86b0f
change order
cdeanj2 Sep 19, 2024
38fe894
does order matter?
cdeanj2 Sep 19, 2024
1e8e351
is_pending
cdeanj2 Sep 19, 2024
09afe44
form
cdeanj2 Sep 19, 2024
0aa62c0
rm cleaned option
cdeanj2 Sep 19, 2024
ce4543d
steps for deploying a local development env and for running local tests
melonistic Sep 20, 2024
7145678
ignore any virtual environment
melonistic Sep 20, 2024
b5e2da5
Merge pull request #13 from WashU-IT-RIS/fix/local-tests
melonistic Sep 20, 2024
15e973f
New_allocation as class variable
cdeanj2 Sep 20, 2024
9a21dfe
nested if
cdeanj2 Sep 20, 2024
9140374
print
cdeanj2 Sep 20, 2024
9eca1ef
rm print
cdeanj2 Sep 20, 2024
0c76b8d
context_allocation
cdeanj2 Sep 20, 2024
85e86b5
could similar vars be messing stuff up?
cdeanj2 Sep 20, 2024
3db519a
seeing if False value displays anything
cdeanj2 Sep 20, 2024
80d8d33
hmm
cdeanj2 Sep 20, 2024
c426095
back to True
cdeanj2 Sep 20, 2024
1c55445
investigating allocation variable
cdeanj2 Sep 20, 2024
834d0d3
oops
cdeanj2 Sep 20, 2024
9eb385f
form
cdeanj2 Sep 20, 2024
85ed33f
debug
cdeanj2 Sep 20, 2024
3a93442
hmmm
cdeanj2 Sep 20, 2024
d7a03da
?
cdeanj2 Sep 21, 2024
3fa7912
seeing if success url would transfer over
cdeanj2 Sep 21, 2024
1a0c16d
context_allocation
cdeanj2 Sep 23, 2024
aa8ac54
wrong view
cdeanj2 Sep 23, 2024
6a13002
allocation and allocation status retrieval
cdeanj2 Sep 23, 2024
e202586
modifying status retrieval
cdeanj2 Sep 23, 2024
7211693
Merge pull request #15 from WashU-IT-RIS/feature/ITDEV-34780_visual_c…
cdeanj2 Sep 23, 2024
06258a6
Merge branch 'main' into ITDEV-34721-email-poc
harterjwustl Sep 26, 2024
88b5971
adding email code from plugin repo
harterjwustl Sep 26, 2024
b4699d2
troubleshoot
harterjwustl Sep 26, 2024
2f36d53
fix
harterjwustl Sep 26, 2024
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
60 changes: 60 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Bug Report
description: Tell us about the bug/ error that you are seeing.
title: "Bug: "
labels: ["bug"]
body:
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
value: "A bug happened!"
validations:
required: true
- type: dropdown
id: version
attributes:
label: Version
description: What version of our software are you running?
options:
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0 or before
- type: dropdown
id: component
attributes:
label: Component
multiple: true
description: What component of the website was this issue in?
options:
- Projects
- Allocations
- Resources
- Administration
- Users
- Other
- type: dropdown
id: browsers
attributes:
label: What browsers are you seeing the problem on?
options:
- Firefox
- Chrome
- Safari
- Microsoft Edge
- Other
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell
- type: textarea
id: tasks
attributes:
label: Tasks/ user tests when bug is fixed
description: If relevant, add a list of tasks for anyone working on this issue and/ or tests for them to use when fixing the issue.
value: "- [ ] "
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Feature Request
description: Tell us about what new feature you want to see added to ColdFront!
title: "Feature: "
labels: ["documentation", "enhancement"]
body:
- type: textarea
id: description
attributes:
label: Description
description: Describe your feature idea!
validations:
required: true
- type: dropdown
id: component
attributes:
label: Component
multiple: true
description: What component of the website does this issue enhance?
options:
- Projects
- Allocations
- Resources
- Administration
- Users
- Other
- type: textarea
id: info
attributes:
label: Additional information
description: If you have any example code/ ideas you would like to show, paste them here. This will be automatically formatted into code, so no need for backticks.
render: shell
29 changes: 29 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Description

###### Please include a summary of the change and which issue is fixed, if applicable.

Fixes #(issue number here)

## Component

###### What components of the website does this PR apply to? Select all that apply.
- [ ] Projects
- [ ] Allocations
- [ ] Resources
- [ ] Administration
- [ ] Users
- [ ] Other

## Testing

###### If relevant, add a list of tests below for anyone reviewing this PR to run to simplify the testing process.

- [ ] Test #1:
- [ ] Test #2:
- [ ] Test #3:

...

## Documentation

- [ ] Check this box if this PR will require us to update our [documentation](https://coldfront.readthedocs.io/en/latest/).
33 changes: 33 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Run Tests

on:
push:
branches: [ main, staging ]
pull_request:
branches: [ main, staging ]
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-20.04
environment: test
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: install python packages
run: |
pip install -r requirements.txt

- name: run tests
run: python3 manage.py test --exclude-tag integration -b
env:
ENVIRONMENT: test
PLUGIN_QUMULO: True
AD_USER_PASS: ADPassword@123
AD_USERNAME: ADUsername
AD_SERVER_NAME: accounts-ldap.wusm.wustl.edu
AD_GROUPS_OU: OU=QA,OU=RIS,OU=Groups,DC=accounts,DC=ad,DC=wustl,DC=edu
STORAGE2_PATH: /foo/bar
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build
*.DS_Store
*.swp
env/
venv/
*venv/
static_root/
db.sqlite3
local_data/
Expand All @@ -16,7 +16,6 @@ local_settings.py
local_strings.py
coldfront.db
*.code-workspace
.vscode
db.json
.env
.devcontainer/*
Expand Down
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
}
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,5 @@
[1.1.2]: https://github.com/ubccr/coldfront/releases/tag/v1.1.2
[1.1.3]: https://github.com/ubccr/coldfront/releases/tag/v1.1.3
[1.1.4]: https://github.com/ubccr/coldfront/releases/tag/v1.1.4
[Unreleased]: https://github.com/ubccr/coldfront/compare/v1.1.4...HEAD
[1.1.5]: https://github.com/ubccr/coldfront/releases/tag/v1.1.5
[Unreleased]: https://github.com/ubccr/coldfront/compare/v1.1.6...HEAD
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.6
FROM python:3.8

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ recursive-include coldfront/core/publication/templates *
recursive-include coldfront/core/grant/templates *
recursive-include coldfront/core/user/templates *
recursive-include coldfront/core/resource/templates *
recursive-include coldfront/plugins/qumulo/templates *
recursive-include coldfront/plugins/qumulo/static *
56 changes: 56 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,59 @@ subscribe ccr-open-coldfront-list@listserv.buffalo.edu first_name last_name
## License

ColdFront is released under the GPLv3 license. See the LICENSE file.

## Testing

### Setup
To run tests, the following variables should be included in a `.env` file in the root directory of the repo:

```
PLUGIN_QUMULO=True
AD_SERVER_NAME=foo
AD_USERNAME=bar
AD_USER_PASS=bah
STORAGE2_PATH=/foo/bar
```

### Running
A complete test suite can be run with `manage.py test`. You can target sub-groups of tests by including a specifying argument. Ex: `manage.py.test coldfront.plugins.qumulo.tests` will run only unit tests for the qumulo plugin.

Typically, you'll want to run non integration tests separately, which can be done with `python manage.py test --exclude-tag integration`. Integrations can be run with `python manage.py test --tag integration`.

### Set up Local Environment and Run tests

1. Go to the root of the `coldfront-wustl-fork` repo.
2. Create a (Python) virtual environment: `python3 -mvenv coldfront-venv`
3. Activate the virtual environment: `source coldfront-venv/bin/activate`
4. Install the dependencies
```
pip install --upgrade pip
pip install -r requirements-dev.txt
```
5. Run a test to verify the installation: `python manage.py test coldfront.plugins.qumulo.tests`

**Steps for local development**
```
python3 -mvenv coldfront-venv
source coldfront-venv/bin/activate
pip install --upgrade pip
pip install -r requirements-dev.txt
python manage.py test coldfront.plugins.qumulo.tests
```

### Integration Test ENV
Integration Tests need to be run while connected to a VPN. The following variables need to be included for functioning integration tests. Credentials should be stored in the `pass` store.

```
PLUGIN_QUMULO=True
QUMULO_HOST=
QUMULO_PORT=
QUMULO_USER=
QUMULO_PASS=
DEBUG=TRUE
AD_USER_PASS=
AD_USERNAME=
AD_SERVER_NAME=
AD_GROUPS_OU=OU=QA,OU=RIS,OU=Groups,DC=accounts,DC=ad,DC=wustl,DC=edu
STORAGE2_PATH=
```
17 changes: 11 additions & 6 deletions coldfront/config/plugins/ldap_user_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@
except ImportError:
raise ImproperlyConfigured('Please run: pip install ldap3')

#------------------------------------------------------------------------------
# This enables searching for users via LDAP
#------------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# This enables searching for users via LDAP
# ----------------------------------------------------------------------------

LDAP_USER_SEARCH_SERVER_URI = ENV.str('LDAP_USER_SEARCH_SERVER_URI')
LDAP_USER_SEARCH_BASE = ENV.str('LDAP_USER_SEARCH_BASE')
LDAP_USER_SEARCH_BIND_DN = ENV.str('LDAP_USER_SEARCH_BIND_DN')
LDAP_USER_SEARCH_BIND_PASSWORD = ENV.str('LDAP_USER_SEARCH_BIND_PASSWORD')
LDAP_USER_SEARCH_BIND_DN = ENV.str('LDAP_USER_SEARCH_BIND_DN', default=None)
LDAP_USER_SEARCH_BIND_PASSWORD = ENV.str('LDAP_USER_SEARCH_BIND_PASSWORD', default=None)
LDAP_USER_SEARCH_CONNECT_TIMEOUT = ENV.float('LDAP_USER_SEARCH_CONNECT_TIMEOUT', default=2.5)
LDAP_USER_SEARCH_USE_SSL = ENV.bool('LDAP_USER_SEARCH_USE_SSL', default=True)
ADDITIONAL_USER_SEARCH_CLASSES = ['coldfront.plugins.ldap_user_search.utils.LDAPUserSearch',]
LDAP_USER_SEARCH_USE_TLS = ENV.bool('LDAP_USER_SEARCH_USE_TLS', default=False)
LDAP_USER_SEARCH_PRIV_KEY_FILE = ENV.str("LDAP_USER_SEARCH_PRIV_KEY_FILE", default=None)
LDAP_USER_SEARCH_CERT_FILE = ENV.str("LDAP_USER_SEARCH_CERT_FILE", default=None)
LDAP_USER_SEARCH_CACERT_FILE = ENV.str("LDAP_USER_SEARCH_CACERT_FILE", default=None)

ADDITIONAL_USER_SEARCH_CLASSES = ['coldfront.plugins.ldap_user_search.utils.LDAPUserSearch']
1 change: 1 addition & 0 deletions coldfront/config/plugins/openid.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@
OIDC_OP_USER_ENDPOINT = ENV.str('OIDC_OP_USER_ENDPOINT')
OIDC_VERIFY_SSL = ENV.bool('OIDC_VERIFY_SSL', default=True)
OIDC_RENEW_ID_TOKEN_EXPIRY_SECONDS = ENV.int('OIDC_RENEW_ID_TOKEN_EXPIRY_SECONDS', default=3600)
OIDC_USE_PKCE = ENV.bool('OIDC_USE_PKCE', default=False)
16 changes: 16 additions & 0 deletions coldfront/config/plugins/qumulo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from coldfront.config.base import (
INSTALLED_APPS,
TEMPLATES,
PROJECT_ROOT,
STATICFILES_DIRS,
)

INSTALLED_APPS += [
"coldfront.plugins.qumulo",
]

STATICFILES_DIRS += [
PROJECT_ROOT("coldfront/plugins/qumulo/static"),
]

TEMPLATES[0]["DIRS"] += [PROJECT_ROOT("coldfront/plugins/qumulo/templates")]
1 change: 1 addition & 0 deletions coldfront/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'PLUGIN_AUTH_OIDC': 'plugins/openid.py',
'PLUGIN_AUTH_LDAP': 'plugins/ldap.py',
'PLUGIN_LDAP_USER_SEARCH': 'plugins/ldap_user_search.py',
'PLUGIN_QUMULO': 'plugins/qumulo.py',
}

# This allows plugins to be enabled via environment variables. Can alternatively
Expand Down
4 changes: 4 additions & 0 deletions coldfront/config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
admin.site.site_header = 'ColdFront Administration'
admin.site.site_title = 'ColdFront Administration'


urlpatterns = [
path('admin/', admin.site.urls),
path('robots.txt', TemplateView.as_view(template_name='robots.txt', content_type='text/plain'), name="robots"),
Expand All @@ -36,3 +37,6 @@

if 'django_su.backends.SuBackend' in settings.AUTHENTICATION_BACKENDS:
urlpatterns.append(path('su/', include('django_su.urls')))

if 'coldfront.plugins.qumulo' in settings.INSTALLED_APPS:
urlpatterns.append(path('qumulo/', include('coldfront.plugins.qumulo.urls'), name='qumulo'))
Loading