Commit Graph
4969 Commits
Author SHA1 Message Date
Roberto Rosario 9bbd148497 Remove NewDocumentVersionBlockViewTestCase, it belongs in the sources app only. 2015-10-25 01:53:32 -04:00
Roberto Rosario b0f5e8741b Raise PermissionDenied instead of redirecting with a message if user doesn't have the tag attach permission. GL issue #235. 2015-10-24 00:46:29 -04:00
Roberto Rosario dfda765d34 Make sure to test that the user can't attach a tag with the proper permission. GL issue #235. 2015-10-23 14:45:43 -04:00
Roberto Rosario da4c41c5b2 Change the way new document version are blocked, moving the logic to the documents app from the checkouts app signal handler. Disable the upload new document version button and have the new version upload view redirect to the document version list with a message. GitLab issue #231. 2015-10-23 06:06:59 -04:00
Roberto Rosario 414c55f824 Update the metadata_add and metadata_remove views to use the new ACL filter_by_access code. Update and improve tests. 2015-10-23 02:52:27 -04:00
Roberto Rosario 02171755f0 Update the document_multiple_clear_transformations, document_clear_transformations_view, document_multiple_update_page_count, and document_update_page_count views to use the new filter by access ACL code. Add some and improve other document views tests. 2015-10-22 21:59:35 -04:00
Roberto Rosario 8d266693c8 Add sample configuration from the deploying chapter. 2015-10-22 15:49:59 -04:00
Roberto Rosario 10f2bd6226 Improve multi user delete view. Add view tests for the user management app. 2015-10-22 04:23:16 -04:00
Roberto Rosario 11d6b100b4 Update tag views to use updated ACL filter_by_access. Add better tag app views tests. 2015-10-22 04:22:22 -04:00
Roberto Rosario 1eb2190f86 Update tags app views tag_delete, single_document_multiple_tag_remove, and multiple_documents_selection_tag_remove to work with the new way filter_by_access works. Add tags app views tests. 2015-10-22 03:09:44 -04:00
Roberto Rosario 73abe297ee Add .get .post .login method to GenericViewTestCase. Update folder app view tests. 2015-10-22 02:00:02 -04:00
Roberto Rosario b02cee1759 Update the folder_document_multiple_remove, folder_add_document, folder_add_multiple_documents views to use queryset instead of list of objects. Improve folder app views tests. 2015-10-22 00:17:39 -04:00
Roberto Rosario f1069fad74 Code style fix. 2015-10-22 00:17:02 -04:00
Roberto Rosario 2f67a20f7e Use GenericViewTestCase to test the about view. 2015-10-22 00:16:31 -04:00
Roberto Rosario ec7460a0fe Update folder_document_remove view work with the ACL queryset only code. 2015-10-21 20:51:11 -04:00
Roberto Rosario 54ae8bcda5 Add GenericViewTestCase and GenericDocumentViewTestCase classes. 2015-10-21 20:50:31 -04:00
Roberto Rosario 475ceb054f OCR errors are deleted at the next successfull retry, remove redundant option to delete OCR log entries. 2015-10-21 04:07:20 -04:00
Roberto Rosario 71ac2cbf79 With full document OCR queue and per document type OCR queuing, re_queueing OCR errors is redundant, removing. 2015-10-21 03:58:09 -04:00
Roberto Rosario da0134a7fb Fix label of the left box in group members views. GL issue #233. 2015-10-21 03:45:28 -04:00
Roberto Rosario 6f82ee8cb5 Make MultipleInstanceActionMixin operate on a queryset and not on a list of objects. Get the id_list from GET or POST requests, not just GET requests. 2015-10-21 03:41:12 -04:00
Roberto Rosario 6d80b40ed4 Remove unused related parameter for the ACL filter method. 2015-10-21 03:40:13 -04:00
Roberto Rosario f739dd54ac Fix document download views. Fixes GL issue #229. Thanks to @ammaranjith for the find and fix idea. 2015-10-21 03:38:56 -04:00
Roberto Rosario 58f73f0b1e Use Django's six library for Py3 compatibility. 2015-10-21 03:33:10 -04:00
Roberto Rosario 6b950b7ccf Style update. 2015-10-21 03:32:51 -04:00
Roberto Rosario ec1b3e9007 Eliminate repetition in the testing requirements files. 2015-10-21 01:40:05 -04:00
Roberto Rosario 35d33b1a74 Ignore coverage temporary files produce during tox test runs. 2015-10-21 01:34:33 -04:00
Roberto Rosario 5f9c847239 Move stub deletion code from tasks.py to the manager of the Document model. 2015-10-21 01:34:03 -04:00
Roberto Rosario 0cf963c19f Make user or admin login more explicit in the documents apps view tests. 2015-10-21 00:52:19 -04:00
Roberto Rosario fc81d4315e Process multiple documents in the tag attach views as querysets not as list of objects. AccessControlList.objects.filter_by_access only supports querysets now. Closes GL issue #228. 2015-10-21 00:50:04 -04:00
Roberto Rosario df7a5c6e1c Reorganize tests literals and move then to their respective apps. 2015-10-20 21:14:07 -04:00
Roberto Rosario 2bd92d8fac Use the unified test management command for continious integration. 2015-10-20 21:12:33 -04:00
Roberto Rosario 0cb43e1d46 Release notes updates. 2015-10-20 21:12:13 -04:00
Roberto Rosario 6c65598a4d Remove permission check from the multiple document action links, an user may not have permissions for some items but maybe does for others, we don't know as scanning the entire queryset for ACLs is costly, so we leave the links enable, permission check is done by the view. 2015-10-20 20:05:40 -04:00
Roberto Rosario 9fbc8647b8 Fix document list generation for the document's type change views. Move type change event and recent document addition to the models. Add view tests for the document's type change views. 2015-10-20 20:03:54 -04:00
Roberto Rosario ebfd37ebf5 Documentation updates. 2015-10-20 04:14:48 -04:00
Roberto Rosario 9bb3cb4595 Add command to create an initial settings file. Existing local.py don't stop the initialsetup command now. 2015-10-20 04:13:59 -04:00
Roberto Rosario 3065e5be62 Cleanup contributed files. 2015-10-20 04:13:23 -04:00
Roberto Rosario 6f6270f11c Documentation updates. 2015-10-19 06:15:54 -04:00
Roberto Rosario 24d0866d8b Split development requirements and add documentation writting requirements. 2015-10-19 06:14:42 -04:00
Roberto Rosario f9940f1fd0 Add default_app_config value to each app. Closes issue GL #216. 2015-10-19 02:57:00 -04:00
Roberto Rosario 5167e91c90 Remove TODO reminder, this link position was implemented. 2015-10-19 02:54:34 -04:00
Roberto Rosario 19a2c02594 Document count column in document type list view is now permission aware. 2015-10-19 02:19:08 -04:00
Roberto Rosario 94bebf90ca Remove TODO reminder, error are logged by Celery. 2015-10-19 02:10:12 -04:00
Roberto Rosario 3f8b23d751 Show 'no results' on empty list. 2015-10-19 02:09:40 -04:00
Roberto Rosario 64faa0ca15 Fix documents app view tests. Update code to match code style. PEP8 fixes. 2015-10-19 01:54:37 -04:00
Roberto Rosario bfe621ba89 PEP8 updates. 2015-10-19 01:27:26 -04:00
Roberto Rosario e57080b06d Style updates. 2015-10-19 01:21:43 -04:00
Roberto Rosario e791f2d36c Get deserialized documents by UUID only. 2015-10-19 01:21:16 -04:00
Roberto Rosario 32c7b0e379 Fix import typo. 2015-10-19 00:56:24 -04:00
Roberto Rosario 81c7a90c04 Fix message typo. 2015-10-19 00:56:11 -04:00