3365 Commits

Author SHA1 Message Date
mike cullerton
7c9ccac8d2 Add new PB API endpoint for Pre Reviews. 2022-06-20 11:24:54 -04:00
mike cullerton
fd0058355b Add more examples in the description 2022-06-20 09:21:13 -04:00
mike cullerton
0eee33f2a7 Make sure we send doc_codes with the get_email_data script 2022-06-15 17:07:02 -04:00
mike cullerton
6b651c3da1 pass the doc_code along with the file data when appending attachments to email 2022-06-15 17:06:33 -04:00
mike cullerton
f060c60b03 save doc_codes to the DB, when we send an email 2022-06-15 17:06:01 -04:00
mike cullerton
6f393f712d Store doc_code information for email message attachments
- create table `email_doc_codes`
- create relationship with `email` table
- create schema for the new table
2022-06-15 15:15:40 -04:00
mike cullerton
43e6a32841 Rewrite test_update_workflow_specification to make sure we update all metadata, and clean up old spec files and folders when changing category 2022-06-07 12:59:55 -04:00
mike cullerton
4dcba38fdd Add a method to FileSystemService that moves a workflow spec to a different category. 2022-06-07 12:55:48 -04:00
Dan Funk
d3a89b6af4
Merge pull request #554 from sartography/chore/delete-file-changes-750
Chore/delete file changes #750
2022-06-03 16:22:25 -04:00
mike cullerton
baa0df6908 Test to make sure we only delete files for the current study 2022-06-03 16:09:34 -04:00
mike cullerton
3924c33af4 Make sure we only delete files for the current study 2022-06-03 16:05:10 -04:00
Dan Funk
d434602f55
Merge pull request #551 from sartography/chore/current-user-changes-755
Chore/current user changes #755  and lane permissions #737
2022-06-03 15:45:49 -04:00
Dan
a485104957 Merge branch 'chore/current-user-changes-755' of github.com:sartography/cr-connect-workflow into chore/current-user-changes-755 2022-06-03 15:28:52 -04:00
Dan
0746848d8d just a little quick cleanup 2022-06-03 15:28:04 -04:00
mike cullerton
9729f18816 Cleaned up logic around whether we have a logged in user 2022-06-03 15:07:14 -04:00
mike cullerton
963880ed9a Better wording 2022-06-03 15:06:53 -04:00
Dan Funk
3cc5013484
Merge pull request #550 from sartography/chore/unlock-admin-sandbox-739
Chore/unlock admin sandbox #739
2022-06-03 14:14:56 -04:00
Dan Funk
5a47e2bcd4
Merge pull request #547 from sartography/chore/email-script-parameter-746
Chore/email script parameter #746
2022-06-03 13:40:44 -04:00
mike cullerton
5addbd7286 Test and test workflow for the delete_file script changes 2022-06-03 13:35:20 -04:00
Dan Funk
d39e4498e1
Merge pull request #552 from sartography/dependabot/pip/deploy/waitress-2.1.2
Bump waitress from 2.1.1 to 2.1.2 in /deploy
2022-06-03 13:25:46 -04:00
Dan Funk
e68a73b529
Merge pull request #553 from sartography/dependabot/pip/waitress-2.1.2
Bump waitress from 2.1.1 to 2.1.2
2022-06-03 13:25:24 -04:00
mike cullerton
7c130cb840 Change delete_file script so that it defaults to deleting all files with the doc code, for the entire study.
Before this change, the script only deleted files for the current workflow.
You can now pass `study_wide=False` to only delete files for the current workflow
2022-06-03 13:24:32 -04:00
mike cullerton
d5c5fe075d We were running the config twice 2022-06-03 10:07:35 -04:00
mike cullerton
686af32b22 Added test for lane permissions 2022-06-03 10:05:06 -04:00
dependabot[bot]
3b94881212
Bump waitress from 2.1.1 to 2.1.2
Bumps [waitress](https://github.com/Pylons/waitress) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/Pylons/waitress/releases)
- [Changelog](https://github.com/Pylons/waitress/blob/v2.1.2/CHANGES.txt)
- [Commits](https://github.com/Pylons/waitress/compare/v2.1.1...v2.1.2)

---
updated-dependencies:
- dependency-name: waitress
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-02 20:51:22 +00:00
dependabot[bot]
2798b945ba
Bump waitress from 2.1.1 to 2.1.2 in /deploy
Bumps [waitress](https://github.com/Pylons/waitress) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/Pylons/waitress/releases)
- [Changelog](https://github.com/Pylons/waitress/blob/v2.1.2/CHANGES.txt)
- [Commits](https://github.com/Pylons/waitress/compare/v2.1.1...v2.1.2)

---
updated-dependencies:
- dependency-name: waitress
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-02 20:51:02 +00:00
mike cullerton
7ece754d03 *** WIP ***
Tests for lane permissions
2022-06-02 16:49:21 -04:00
mike cullerton
30d6c3ac36 Make sure we are in a lane 2022-06-02 15:56:45 -04:00
mike cullerton
2ac2163db3 Ran into a situation where spiff_task was None 2022-06-02 14:26:15 -04:00
mike cullerton
906e02f81a Set the LOCKED state for StartEvent
We use this in lanes
2022-06-02 14:25:28 -04:00
mike cullerton
2063ee42d8 Allow impersonations when checking user_is_admin 2022-06-02 14:24:05 -04:00
mike cullerton
fd633f6b52 master_workflow_results should be a dictionary 2022-06-01 13:36:56 -04:00
mike cullerton
e729c1e3d2 Raise an error if we don't have a logged in user 2022-06-01 13:36:20 -04:00
mike cullerton
2039631bd0 *** WIP ***
New script get_current_user
Replaces the current_user value that was removed from task data

Will also include information about the impersonating admin account if current_user is really an impersonation (view as)
2022-05-31 16:56:39 -04:00
mike cullerton
6911ab7aae Fixes for failing tests after removing current_user from task data 2022-05-31 16:53:15 -04:00
mike cullerton
f74afc3e18 Remove current_user from task data 2022-05-31 16:51:03 -04:00
mike cullerton
1d8fc77cf3 Add impersonator to current_user, if we have one 2022-05-31 15:01:34 -04:00
mike cullerton
2f6b84e29c add get_impersonator method to user_service 2022-05-31 15:00:58 -04:00
mike cullerton
8d504c7550 add impersonator attribute to UserModelSchema 2022-05-31 15:00:27 -04:00
mike cullerton
4bab660441 does this smell better 2022-05-27 10:37:06 -04:00
mike cullerton
2d9307cc4e Tests for each of the ways we can pass attachments 2022-05-27 10:25:20 -04:00
mike cullerton
df4c37a1e6 Move the attachment tests to a separate file 2022-05-27 10:24:19 -04:00
mike cullerton
1ca2bcd4a6 Allow attachments in emails to be filtered.
We use doc_codes to add attachments to emails
Sometimes, there are multiple files for a doc_code.
This allows us to filter the files associated with a doc_code
2022-05-27 10:22:59 -04:00
mike cullerton
1822dda830 Move test_email_script to the scripts directory 2022-05-27 08:54:25 -04:00
mike cullerton
0887fec9e2 Merge branch 'chore/unlock-admin-sandbox-739' of https://github.com/sartography/cr-connect-workflow into chore/unlock-admin-sandbox-739 2022-05-26 13:36:43 -04:00
mike cullerton
251ff921ff clean up imports 2022-05-26 13:36:10 -04:00
mike cullerton
d07df26103 Remove unused method 2022-05-26 13:35:47 -04:00
mike cullerton
95c915a434 Remove code that doesn't let master workflow set state and state_message for admin sandbox workflows
Remove test for this feature
2022-05-26 13:35:30 -04:00
Dan
baa28adc5f Merge remote-tracking branch 'origin/dev' into chore/unlock-admin-sandbox-739 2022-05-26 11:53:22 -04:00
Dan
289b4b0ae8 Merge branch 'dev' into chore/unlock-admin-sandbox-739 2022-05-26 11:53:16 -04:00