275 Commits

Author SHA1 Message Date
mike cullerton
5fe2151ad4 Simplified the code for maintainability.
SonarCloud didn't like the scent of my code.
2021-06-30 13:49:45 -04:00
mike cullerton
1b80f62136 Make sure our db query returned a result.
If not, don't seed data to the form.
2021-06-30 13:35:59 -04:00
Mike Cullerton
359f864572
Merge pull request #61 from sartography/update-pb-mock-tests-359
Update pb mock tests #359
2021-06-30 10:33:35 -04:00
Mike Cullerton
2a2ca9adf0
Merge pull request #60 from sartography/post-submission-states-247
Post submission states #247
2021-06-30 10:29:43 -04:00
mike cullerton
21da1e052b These changes made possible by our change to Postgres for the PB Mock test database.
These tests failed in SQLite.
Modified test_delete_study to ensure existence of data we later delete.
Added test_update_study_from_csv which failed because of issue between SQLite and csv file data
2021-06-24 13:59:37 -04:00
mike cullerton
aae975013b Fixed test to accommodate second document added by code 39 2021-06-24 11:16:16 -04:00
mike cullerton
242668b244 We now add 2 documents for doc code 39. 2021-06-24 11:14:38 -04:00
mike cullerton
e64ad057eb Explicitly delete the IRBInfoEvent and IRBInfoStatus entries when deleting a study.
Interesting note, this was not necessary for SQLite, but failed the Travis CI build that used Postgres.
2021-06-23 12:33:04 -04:00
mike cullerton
5b8c3284d9 Changed the test database to use Postgres, instead of SQLite. 2021-06-23 12:31:10 -04:00
mike cullerton
40f5ffc24b You mock me, Travis 2021-06-23 11:49:34 -04:00
mike cullerton
eaf3ad6e24 Will this build with Travis 2021-06-23 11:38:09 -04:00
mike cullerton
783952ef43 Will this pass Travis CI build? 2021-06-23 11:21:39 -04:00
mike cullerton
d71360f49a Merge branch 'dev' into post-submission-states-247
# Conflicts:
#	pb/pb_mock.py

Conflicts were import statements
2021-06-23 11:16:09 -04:00
Dan Funk
e4a57451d6
Merge pull request #59 from sartography/dependabot/pip/urllib3-1.26.5
Bump urllib3 from 1.26.4 to 1.26.5
2021-06-22 18:11:43 -04:00
Dan Funk
db9db61485
Merge pull request #58 from sartography/pb-mock-documents
Pb mock documents #272 #332
2021-06-22 18:11:31 -04:00
mike cullerton
a085629d1e Declared study_id explicitly.
Hope this helps a failing Travis CI build
2021-06-22 15:50:12 -04:00
mike cullerton
f764c5ed79 Cleanup 2021-06-22 15:29:16 -04:00
mike cullerton
693ba256ba Change IRBEVENT and IRB_STATUS to use field.Method
Created `get_event` and `get_status` to retrieve the specific values
2021-06-22 15:28:57 -04:00
mike cullerton
4f226ce12e Set api back to the way it was 2021-06-22 15:13:02 -04:00
mike cullerton
cebeac38fc Twiddling 2021-06-22 12:03:41 -04:00
mike cullerton
274e6cf5c3 Way to intercept data sent to IRBInfoSchema 2021-06-22 11:48:47 -04:00
mike cullerton
d79bb3cf7b Minor changes 2021-06-22 11:47:56 -04:00
mike cullerton
1c36e470ba Fixed failing test.
Added event and status data to irb_info section.
2021-06-21 14:50:46 -04:00
mike cullerton
abfd127aa1 Trying marshmallow_sqlalchemy.SQLAlchemySchema instead of Marshmallow.Schema 2021-06-21 12:59:31 -04:00
mike cullerton
f097b394b6 Migration script for DB changes.
Create new relationship tables for IRBEVENT and IRB_STATUS.
Change columns to relationships
2021-06-18 14:51:06 -04:00
mike cullerton
495537f2c1 Modify the edit_irb_info route to handle to new relationship tables for IRBEVENT and IRB_STATUS.
Have to explicitly seed the form data for some form fields.
2021-06-18 14:49:08 -04:00
mike cullerton
4809a52c99 Modify _update_irb_info to handle the new relationship for IRBEVENT and IRB_STATUS. 2021-06-18 14:46:13 -04:00
mike cullerton
f2040461d0 Modify IRBInfoForm to use the new IRBEVENT and IRB_STATUS relationships.
Have to define the form explicitly now, instead of automagically from the model.
2021-06-18 14:43:59 -04:00
mike cullerton
adc6954f9d Modify irb_info table to use new IRBEVENT and IRB_STATUS table relationship
Remove IRBEVENT and IRB_STATUS from API schema. (Need to figure out how to get this to work)
2021-06-18 14:42:09 -04:00
mike cullerton
c0f2ca1d38 Adding classes to support the new IRB Post Submission States and Events 2021-06-18 14:40:11 -04:00
dependabot[bot]
48680f9dc8
Bump urllib3 from 1.26.4 to 1.26.5
Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.4 to 1.26.5.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.4...1.26.5)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-02 00:59:12 +00:00
Mike Cullerton
652c9b908f
Merge branch 'dev' into pb-mock-documents 2021-05-27 08:49:45 -04:00
mike cullerton
8613f7542f Cleanup 2021-05-26 17:11:06 -04:00
mike cullerton
04d1d6131f Cleanup - removed unused/commented lines 2021-05-26 17:05:23 -04:00
mike cullerton
ed7d9b20f5 Cleanup 2021-05-26 17:00:07 -04:00
mike cullerton
e1abdd33d1 Form and model changes for the new column 2021-05-26 16:51:41 -04:00
mike cullerton
a4665a6eb5 Migration script for new column in study_details 2021-05-26 16:51:12 -04:00
mike cullerton
ebd0850297 Example study details data for running in development. 2021-05-26 16:50:12 -04:00
mike cullerton
64e3710eff New pb_mock code for verifying the list of study details. 2021-05-26 16:48:56 -04:00
mike cullerton
cf041986fc New view for the verify_study_details route. 2021-05-26 16:47:47 -04:00
mike cullerton
def00d7d7e Backed out the migration 2021-05-26 14:58:33 -04:00
mike cullerton
bb00865e1d Backed out test for updating the document list (We removed the feature) 2021-05-26 14:22:24 -04:00
mike cullerton
26365c4643 Updated required documents list 2021-05-26 14:11:12 -04:00
mike cullerton
9a52075166 New code to verify document list.
Commented out the code for update document list in case we want to try again...
2021-05-26 14:10:45 -04:00
mike cullerton
5ac9dc2c75 Changed route for update_document_list to verify_document_list.
Added flash messages for success and failure

Added stub for verify_study_details
2021-05-26 14:09:37 -04:00
mike cullerton
8018431918 Created forms for the two verify buttons. 2021-05-26 14:06:53 -04:00
mike cullerton
8765849690 Added Verify Study Details button
Changed Update Document List to Verify
2021-05-26 11:12:07 -04:00
mike cullerton
abf341a5a2 Revert changes
Moved `action` and `title` closer to render_template, where they are used.
2021-05-26 10:59:08 -04:00
mike cullerton
c0593548bf Revert changes 2021-05-26 10:49:11 -04:00
mike cullerton
fe6000f35c Revert changes 2021-05-26 10:46:43 -04:00