Commit Graph

32 Commits

Author SHA1 Message Date
Dan 77adaffb58 fixing some merge conflicts. 2021-05-14 14:52:22 -04:00
Dan 295008304a Just a little prettier. 2021-05-14 14:44:48 -04:00
mike cullerton 2ff6814bd4 __init__.py cleanup
- moved routes to new `routes.py` file
- moved helper functions to new `pb_mock.py` file
2021-05-12 11:54:46 -04:00
mike cullerton 6c11a04614 PB Mock now retains the selected_user filter when returning to the study listings page.
Modified the / and /user_studies routes
The / route now redirects to the /user_studies route
The /user_studies route updates the selected_user table.

Added methods `_is_production` and `_get_request_ids` to get uva uid from header on production.

Added `get_current_user`, `get_selected_user`, and `update_selected_user` to help the process.
2021-05-11 16:42:36 -04:00
mike cullerton 650cd5c40a Changed column name in irb_info from `RB_OF_RECORD` to `IRB_OF_RECORD` 2021-04-16 16:39:36 -04:00
mike cullerton d7ca809968 Delete the IRB Info when deleting a study 2021-04-09 12:05:27 -04:00
mike cullerton 4ddf47314d Merge branch 'dev' into irb-pro-api-endpoints-275 2021-04-09 10:16:29 -04:00
mike cullerton 84b3d455c1 Moved the API methods to a separate file.
Note that I had to move the `connexion_app.add_api()` call so that it happened *after* db.session was defined, so I could import the session into the api.py file
2021-04-09 10:00:24 -04:00
mike cullerton 40f45202df Ticket 275 - adding new API endpoint for IRB Study Info
models.py
 - Added new IRBInfo model
 - Added relationship to Study table

forms.py
 - Added form to edit the data
 - Added column in Study table for link to edit new info

__init__.py
 - Added route for new form page
 - Added method to update the db
2021-04-08 17:35:24 -04:00
Dan bd4bd3e49f Allow deletes even with new model. 2021-04-08 16:11:17 -04:00
Dan Funk 128945d0b3
Merge pull request #49 from sartography/irb-api-endpoints-273
Irb api endpoints #273
2021-04-08 12:44:48 -04:00
Dan 3a8a0fba25 Merge remote-tracking branch 'origin/dev' into update-study-details-fields-257 2021-04-02 12:43:53 -04:00
mike cullerton 8d0382ab5a The Q_COMPLETE form field on the new/edit study page is changing from boolean to option select.
Also adding API endpoint to check the IRB status

Added check_study method for API endpoint
Added 'No Error' as default for new Q_COMPLETE select form field
Added code to seed the current status to the form
Added code to process the status information from the form and enter into irb_status table
2021-04-01 12:45:41 -04:00
mike cullerton a1f2b98ecf Added code to process uploaded study_details csv file
Modified study_details method to accommodate the csv upload
Added imports for csv, TextIOWrapper
Removed unused imports for date, re
2021-03-30 10:53:56 -04:00
mike cullerton 0ea0b0a233 added form validation for study_details 2021-03-25 13:06:52 -04:00
mike cullerton b6de1b9146 Two bug fixes:
- changed onclick to onchange for the select tag
 - added BASE_HREF to the redirect url
2021-02-23 17:52:10 -05:00
mike cullerton 81457c2b7c We can now limit the list of studies to a particular user.
Created a new route /user_studies in __init__.py that takes a uva_id.
Pulled out some dupllcate code into a new method; render_study_template

In index.html, added a pulldown to select the user. I pull the list of users from the studies so we only show users that have studies.
Added a script to process the selection.
2021-02-19 10:55:21 -05:00
mike cullerton f235339aa1 Added route for search_ldap 2021-01-06 11:16:36 -05:00
Dan Funk b2b8e278db Adding a sponsors endpoint 2020-08-25 10:26:29 -04:00
Dan Funk a706e0ecab
Merge branch 'testing' into feature/limit_investigator_options 2020-08-19 08:36:09 -04:00
Dan Funk 983422ae05 fixing a bug that would prevent the proper listing of personnel options types. 2020-08-19 08:25:03 -04:00
Dan Funk b8b8dd00b0
Merge pull request #30 from sartography/feature/limit_investigator_options
Feature/limit investigator options
2020-08-17 16:34:34 -04:00
Dan Funk f63dfa82b6 Filter out options for adding investigators to ones that have not already been used, exceit for AS_C and SI which can have multiple of the same type. 2020-08-17 16:29:23 -04:00
Aaron Louie 45a99d296d Adds environment variable option for loading sponsors via Docker. Prevents duplicate sponsors from being loaded. 2020-08-14 09:39:05 -04:00
Aaron Louie 0e4cd7d130 Adds/edits sponsors for a given study. 2020-08-13 15:19:55 -04:00
Aaron Louie be441a7c53 WIP: Adds sponsor model, mock sponsors list, and form for adding sponsors to a study. 2020-08-12 19:15:16 -04:00
Aaron Louie d5a933d951 Fixes #23 - Displays confirmation screen before deleting a study or investigator 2020-06-30 14:48:11 -04:00
Aaron Louie 2d2fad73dd Fixes WTForms deprecation warnings 2020-06-16 15:50:46 -04:00
Aaron Louie 6fb5842fe1 Adds CORS 2020-05-25 15:21:29 -04:00
Aaron Louie f0e0b7cd68 Fixes root path bug 2020-05-25 11:41:39 -04:00
Aaron Louie 07d0c43e8e Fixes all the paths and routing errors 2020-05-24 23:05:57 -04:00
Aaron Louie a633cc7c09 Reorganizes files for consistency between repos. Completely refactors Dockerfile to install from wheel. 2020-05-24 18:30:57 -04:00