Dan
45d5654da4
Do not automatically archive old files when a file of the same type is added.
2022-05-17 09:39:38 -04:00
mike cullerton
7e480fc24b
Cleaned up tests around adding a file
2022-04-29 11:34:05 -04:00
mike cullerton
fbe9f5a17b
DocumentModel => FileModel
...
document_id => file_id
clean up imports
2022-04-19 15:07:05 -04:00
mike cullerton
ae2cb80d33
FileModelSchema requires irb_doc_code now, so we can't use it here
2022-04-19 15:04:42 -04:00
mike cullerton
fb5731ff23
Merge branch 'dev' into file-refactor-705
...
# Conflicts:
# crc/scripts/delete_task_data.py
# crc/services/workflow_processor.py
# tests/base_test.py
# tests/files/test_delete_task_data.py
2022-04-19 08:19:52 -04:00
mike cullerton
87b1e0d2c8
Fixes for tests
2022-04-19 07:51:29 -04:00
Dan
5e54c90b47
"Reset" should not mean "re-start". Calling the reset_workflow script will now set the workflow to an "unstarted" state with no outstanding tasks, no json-state structure stored. The workflow is not yet running.
...
Also:
* Assured that arguments are consistent (we always seem to use workflow_spec_id, so I made sure we use that consistently.
* Don't require named parameters - so it's cool to call it like: reset_workflow('my_workflow_id')
* Task Actions (ie create, assign, etc...) are now an enumeration in the models, and not static variables on Workflow Service, so we can reference them consistently from anywhere.
* Removed some repetitive code
* Always try to validate as much as possible in the scripts to save folks time debugging.
*
2022-04-15 15:36:23 -04:00
mike cullerton
5dc88c2d03
form_field_key => irb_doc_code
2022-04-15 11:46:55 -04:00
mike cullerton
d79c8a4071
form_field_key => irb_doc_code
2022-04-13 08:32:29 -04:00
mike cullerton
d5ed949ed6
FileModel => DocumentModel
...
Remove unused imports
2022-04-13 08:31:18 -04:00
mike cullerton
74bfaaaf57
Remove unused imports
2022-04-13 08:22:30 -04:00
Dan
b90be07bca
Remove these bloodly log files from the repo.
2022-02-18 11:40:10 -05:00
Dan
df3f67601c
performance improvements. and last rements of load_example_data()
2022-02-09 23:29:39 -05:00
Dan
788e40a998
death to load_example_data() !!!!!
2022-02-09 22:13:02 -05:00
Dan
f12c4aba52
Refactor the workflow_spec_service so it doesn't cache anything, it always reads what it needs from the file system.
2022-02-09 21:06:55 -05:00
Dan
db93f9be4e
fixing the test_spec_files
2022-02-09 12:44:54 -05:00
Dan
dc040f190e
got one more test to work.
2022-02-08 11:30:13 -05:00
Dan
f40fb26a8f
a few more tests passing
2022-02-07 15:17:32 -05:00
Dan
4ec6e403f5
1. Created a UserFileService, so it's clear what we use when for File Services, UserFiles, SpecFiles, and ReferenceFiles each function differently.
...
2. Reference Files and Spec Files are written to disk, they do not exist in the database at all.
2022-02-02 12:59:56 -05:00
Dan
4c00a5762f
partial commit - new spec_file_service, and new spec_file_api endpoints that use spec and file name, not file id.
...
removed worklow_sync
cleaned up file and workflow models
most of the test are broken.
2022-01-28 06:42:37 -05:00
Dan
8529465322
Removed the method get_spec_data_files completly - using get_spec_files and get_spec_data to get this information instead.
...
Only load the spec data files if you are creating a new workflow, otherwise just deserialize the json.
Removed the stuff about calculaing the version of the spec, as we don't use it.
2022-01-25 16:10:54 -05:00
mike cullerton
16a9a18c5b
Fixed get reference file info, and added test
2022-01-19 15:17:35 -05:00
mike cullerton
091d71eb0f
Cleaned up code around differences between file info and file data
...
Cleaned up some api code around differences between file, spec_file, and reference_file
Cleaned up some api code around differences between file info and file data
Fixed some tests for file api
2022-01-19 13:47:14 -05:00
mike cullerton
6da6e05171
*** WIP ***
...
code for updating spec files
some cleanup
tests pass, but we don't have all the tests we need.
2022-01-13 15:24:29 -05:00
mike cullerton
88a8c96bd6
The reference document is already created in load_example_data
...
This lead to a failing test after cleaning up the way we add/update files
2022-01-12 15:07:57 -05:00
mike cullerton
b99ed73951
Remove unused imports
2022-01-12 15:00:26 -05:00
mike cullerton
b6b9482a64
*** WIP ***
...
Incremental commit. Mainly cleaning up failing tests.
2022-01-12 13:16:09 -05:00
mike cullerton
4df2ed6ce4
*** WIP ***
...
Failing tests, and missing functionality.
Committing to get stuff on Github.
2022-01-11 15:30:22 -05:00
mike cullerton
f537fd7fbf
*** WIP ***
2022-01-07 15:58:23 -05:00
mike cullerton
dc27f795c8
*** WIP ***
...
Committing because it is Friday afternoon, and my computer is acting flaky
2022-01-07 15:34:51 -05:00
mike cullerton
86a6039dc8
*** WIP ***
...
**Many** tests are failing!
Committing so I can merge dev into this branch
2022-01-06 11:46:54 -05:00
Dan
4d1f4429ff
Fixing a bug in enum_label that was not working when lookup up an select list from a spreadsheet.
...
Assure we raise more thoughtful error messages when running getting exceptions in engine tasks.
Field Options should always be available now due to a fix in Spiffworkflow.
2021-11-22 12:26:30 -05:00
mike cullerton
85b4c4e89e
Test for uploading new version of archived file
2021-10-29 11:53:03 -04:00
mike cullerton
dfd1a6a7f6
Fix failing test.
...
We removed `name` from WorkflowSpecModel, and use `id` now
2021-10-19 10:44:43 -04:00
Dan Funk
e1b72c8edf
Merge pull request #380 from sartography/file-cleanup-466
...
File cleanup #466
2021-10-19 08:57:14 -04:00
alicia pritchett
40b5bf3afa
Adds a POST for reference file. and a cool test
2021-10-12 14:29:15 -04:00
mike cullerton
da894219c5
Changes to tests after removing name
column from workflow_spec
and workflow_spec_category
tables.
2021-10-05 14:20:03 -04:00
mike cullerton
64e3cd044f
Merge branch 'dev' into file-cleanup-466
2021-09-30 14:11:59 -04:00
Dan
8a4a53f028
Assure that the field type provided is supported. Catches errors such as adding a custom field type of 'text_area' rather than "textarea"
2021-09-29 14:05:45 -04:00
mike cullerton
cc0b7853e3
reordered the setup and tests
2021-09-28 13:12:16 -04:00
mike cullerton
89b8be0755
Take saved files into account during assertion
2021-09-28 10:25:13 -04:00
mike cullerton
767a90faba
Removed debug print statement
2021-09-28 10:20:45 -04:00
mike cullerton
0ee377dda3
Test for file data cleanup
2021-09-27 17:16:21 -04:00
mike cullerton
444e3fa76d
Merge branch 'dev' into zip-documents-379
2021-09-14 09:39:19 -04:00
Dan
083abd1b58
Just being consistent in the names as we named it delete_task_data in the class, but not elsewhere, and since I'm here, using the name I prefer.
2021-08-26 14:22:12 -04:00
mike cullerton
cd3d17862a
Add task_spec_name to a bunch of tests
2021-08-26 10:43:28 -04:00
mike cullerton
5f0db3f2fb
Test and BPMN file for new script
2021-08-26 10:42:30 -04:00
mike cullerton
35285a0b60
Fixed tests that broke from the new irb_documents spreadsheet
2021-08-26 08:51:52 -04:00
nilez
b9d4f6c436
assertEquals -> assertEqual
2021-08-16 10:18:29 -04:00
Mike Cullerton
7070761089
Merge pull request #338 from sartography/document-spreadsheet-name-380
...
Document spreadsheet name #380
2021-07-12 10:11:16 -04:00