Commit Graph

  • 89af7e9f12 Add tests for the events_for_object view and fix the content type of the same view response. Fixes GitLab issue #311 for the events link. Roberto Rosario 2016-10-21 03:59:36 -04:00
  • c881641ae8 Don't override the content_type CBV attribute. These views (get method views) used it to set the content type of the response. Fixes GitLab issue #311 for the ACL list view. Note to Django developers: self.content_type should be a private attribute -> self._content_type Roberto Rosario 2016-10-21 03:46:18 -04:00
  • a44c76165b Add test view mixin to check for responses content types. Relates to GitLab issue #311. Roberto Rosario 2016-10-21 03:41:15 -04:00
  • 91144a749f Add ACL list view tests. Roberto Rosario 2016-10-21 03:35:45 -04:00
  • 221301abd1 Add upcomming 2.1.4 release notes. Roberto Rosario 2016-10-21 02:22:36 -04:00
  • 8250085703 Statistics navigation links are not tied to querysets or model instances, don't fail when failing to access their _meta field. Fixes GitLab issue #316. Roberto Rosario 2016-10-20 03:46:49 -04:00
  • 5fedada0f5 Update required Django version from 1.8.13 to 1.8.15 https://docs.djangoproject.com/en/1.10/releases/1.8.14/ https://docs.djangoproject.com/en/1.10/releases/1.8.15/ Roberto Rosario 2016-10-20 03:07:26 -04:00
  • 71ede69c3f Update linking app to use organizations. feature/multi-tenant Roberto Rosario 2016-07-01 02:02:34 -04:00
  • b6161e9d92 PEP8 and code style cleanups. Roberto Rosario 2016-06-30 21:30:01 -04:00
  • aa56e8ae14 Update dynamic_search app to work with organizations. Remove Recent search feature. Roberto Rosario 2016-06-30 18:46:26 -04:00
  • 1b8436add7 Merge remote-tracking branch 'origin/master' into feature/multi-tenant Roberto Rosario 2016-06-30 16:59:46 -04:00
  • ce8377da03 Update changelog. Roberto Rosario 2016-06-30 16:03:17 -04:00
  • 4b7c4335e1 Improve TempfileCheckMixin. Roberto Rosario 2016-06-30 16:02:17 -04:00
  • 4f2744f916 Add missing link to the 2.1.3 release notes in the index file. Roberto Rosario 2016-06-30 14:40:18 -04:00
  • 883e1cc510 Merge remote-tracking branch 'origin/master' into feature/merge_test Roberto Rosario 2016-06-30 01:00:55 -04:00
  • 9483309332 Bump version to 2.1.3. v2.1.3 Roberto Rosario 2016-06-29 19:05:38 -04:00
  • 07ac1cbbbe Add version 2.1.3 release notes and update the changelog. Roberto Rosario 2016-06-29 19:02:34 -04:00
  • e62e6a9a08 Remove downloads badge as PyPI downloads tracking is broken and has been marked as "Won't Fix". https://bitbucket.org/pypa/pypi/issues/396/download-stats-have-stopped-working-again Roberto Rosario 2016-06-29 18:44:51 -04:00
  • 97089670ee Change the file descriptor check to use open files instead. Add decorator to skip open file check. GitLab issue #309. Roberto Rosario 2016-06-29 18:38:46 -04:00
  • 063b325986 Fix file descriptor leak in document signature download test. Roberto Rosario 2016-06-28 03:01:29 -04:00
  • 2ea3c08c97 Add _future_ import to force unicode. Roberto Rosario 2016-06-28 03:01:04 -04:00
  • f3f5cff36e Add missing temporary cleanup for the office documents section. Roberto Rosario 2016-06-28 01:53:53 -04:00
  • d0aee4f72b Add parameter to fs_cleanup function to close a file descriptor before closing it. GitLab issue #309. Roberto Rosario 2016-06-27 19:21:42 -04:00
  • 5ac1276f25 Add base test class that includes unclaimed temporary and file descriptor test mixins. GitLab issue #309. Roberto Rosario 2016-06-27 19:20:42 -04:00
  • 113ad144e0 Add test mixins for file descriptor leaks and unclaimed temporary files. GitLab issue #309. Roberto Rosario 2016-06-27 19:19:37 -04:00
  • debec7b4a2 Update the django_gpg app to support organizations. Roberto Rosario 2016-06-24 04:22:49 -04:00
  • 0be3e130c1 Merge branch 'master' into feature/merge2 Roberto Rosario 2016-06-24 03:28:36 -04:00
  • dd28e3dc09 Allow superusers to login from any organization. Roberto Rosario 2016-06-24 03:26:24 -04:00
  • 09e375654d Improve verbose name of custom group model. Allow user to be created without belonging to an organization, this is used for superusers. Roberto Rosario 2016-06-24 03:24:35 -04:00
  • c531631a37 Update Changelog. Roberto Rosario 2016-06-23 22:32:12 -04:00
  • a76a55f70a Incorporate temp file check in teh GenericViewTestCase class. Roberto Rosario 2016-06-23 22:31:08 -04:00
  • 98e6ba2b50 Cleanup temporary files after running the poppler parser. GitLab issue #309. Thanks to @miek770 for finding the issue and solution. Roberto Rosario 2016-06-23 20:56:36 -04:00
  • 945158bd60 Normalize handling of temporary file and directory creation. Roberto Rosario 2016-06-23 20:53:50 -04:00
  • ab831aa493 Fix setting message, no longer are temp project wide temp folders created by default. Roberto Rosario 2016-06-23 20:28:39 -04:00
  • 971d643759 Merge branch 'feature/multi-tenant' of gitlab.com:mayan-edms/mayan-edms into feature/multi-tenant feature/multi-tenant_old Roberto Rosario 2016-06-13 03:14:24 -04:00
  • ba493cf984 Update document_states app to support organizations. Roberto Rosario 2016-06-10 19:59:09 -04:00
  • 9ffcfeb49b Use simple password hasher to speed up tests. Before: Ran 346 tests in 156.928s After: Ran 346 tests in 144.324s Roberto Rosario 2016-06-08 19:30:45 -04:00
  • 41f68cf435 Remove unused import. Roberto Rosario 2016-06-08 19:30:34 -04:00
  • 072bfcf2aa Use organization manager. Roberto Rosario 2016-06-08 19:30:20 -04:00
  • 6a258e4a02 Remove remarked imports. Roberto Rosario 2016-06-08 19:30:04 -04:00
  • 59fbe2d409 Turn on all warnings when running tests. Roberto Rosario 2016-06-08 19:29:45 -04:00
  • aa0f48b1a0 Update OCR app to use organizations. Roberto Rosario 2016-06-08 19:29:20 -04:00
  • a2f8e8b8d8 Finish updating checkouts app to support organizations. Roberto Rosario 2016-06-08 16:58:57 -04:00
  • 7ae0917564 Fix document app tests. Roberto Rosario 2016-06-08 02:02:25 -04:00
  • ff30268a4b Fix folder api tests. Roberto Rosario 2016-06-08 01:59:32 -04:00
  • 5466dcdad3 Convert metadata app to use organizations. Roberto Rosario 2016-06-08 01:37:15 -04:00
  • 2035602836 Make the organization and rest api tests cleaner to import from other modules. Roberto Rosario 2016-06-08 01:26:01 -04:00
  • 326919271a Merge branch 'development' into feature/multi-tenant Roberto Rosario 2016-06-06 05:20:43 -04:00
  • 043233f79e The UserEditView view add the "user" context variable and confuses the base.html template. Update the base template to use *request.user* instead of just *user* to access the currently logged user. GitLab issue #295. Roberto Rosario 2016-06-06 05:15:37 -04:00
  • 883e623a15 User self.setdout instead of print as per documentation: https://docs.djangoproject.com/en/1.8/howto/custom-management-commands/#django.core.management.BaseCommand.style Roberto Rosario 2016-06-06 04:55:07 -04:00
  • 728121b1bb Add help message when initialsetup migration phase fails. GitLab issue #296. Roberto Rosario 2016-06-06 04:54:05 -04:00
  • 331a4da3b3 Don't create a default organization on each initialization of the organization app. GitLab issue #297. Roberto Rosario 2016-06-06 02:54:32 -04:00
  • 017dc67d3c Fix trashed document list view url name. Roberto Rosario 2016-06-01 12:19:41 -04:00
  • aea00db37e Replace imports of Group for MayanGroup. Roberto Rosario 2016-05-31 01:23:24 -04:00
  • 629cc24090 Add OrganizationAdminMixin. Enable OrganizationAdminMixin for the tags, folders and user_management apps. Roberto Rosario 2016-05-31 01:22:15 -04:00
  • f799d379d1 Remove print statement. Roberto Rosario 2016-05-30 23:55:25 -04:00
  • 8221f90fd3 Improve tags app organization test. Roberto Rosario 2016-05-30 23:55:02 -04:00
  • f6dfff5949 Use the OrganizationTestCase class for the tags app model tests. Roberto Rosario 2016-05-30 23:54:32 -04:00
  • 38eb65151a Use the GenericAPITestCase for the documents and tags api tests. Roberto Rosario 2016-05-30 23:52:23 -04:00
  • 8435b8444a Add REST API base test case class. Roberto Rosario 2016-05-30 23:51:28 -04:00
  • e5c51749da The return value is an user instance not an username. Roberto Rosario 2016-05-30 23:50:54 -04:00
  • 132d66fff8 Use the plural form 'required_permissions' to make it all uniform thruough the project. Roberto Rosario 2016-05-30 23:47:49 -04:00
  • 0a545f4b33 Return the created organization instance when creating the default organization. Roberto Rosario 2016-05-30 23:46:11 -04:00
  • 305aad0bfa Invalidate caches when creating organization admins. Roberto Rosario 2016-05-30 23:45:26 -04:00
  • ccf3795601 Update the acls, common and documents tests to use OrganizationTestCase class. Roberto Rosario 2016-05-30 19:33:49 -04:00
  • 18bd82ba55 Fix authentication app view tests. Roberto Rosario 2016-05-30 19:23:27 -04:00
  • 3ebadf763b Add clean up method to OrganizationModelTestCase Roberto Rosario 2016-05-30 19:18:23 -04:00
  • f9670ea7c2 Add a base organization test case class. Roberto Rosario 2016-05-30 19:16:58 -04:00
  • de40977f5f Convert checkouts app to use organizations. Roberto Rosario 2016-05-30 19:14:34 -04:00
  • aca93a0deb Update the Message of the day (motd) app to support organizations. Roberto Rosario 2016-05-30 17:51:24 -04:00
  • e943588ba2 Move the OrganizationSourceManager manager to it's own module. Cleanups. Roberto Rosario 2016-05-30 15:42:33 -04:00
  • db1673dd0a Convert sources app to use organizations. Roberto Rosario 2016-05-30 15:37:58 -04:00
  • 2dcad10805 Add missing .objects. Roberto Rosario 2016-05-30 06:49:52 -04:00
  • ead86806d4 Add explicit organization deletion to the common generic test. Roberto Rosario 2016-05-30 06:18:26 -04:00
  • cc360be4a4 Finish converting the tags app to user organizations. Roberto Rosario 2016-05-30 06:18:06 -04:00
  • 69bd6cc308 Finish conversion of the folders app to organizations. Roberto Rosario 2016-05-30 06:12:57 -04:00
  • 395fe0cb98 Finish conversion of the documents app to support organizations. Roberto Rosario 2016-05-30 06:10:08 -04:00
  • d9137b4361 Folder model no longer links to the user model. Roberto Rosario 2016-05-30 06:00:24 -04:00
  • e5c9e91104 Rename view and models from "deleted document" to "trashed document". Implement document level organization support via custom 'on_organization' manager. Unfilter default 'objects' manager to operate on all documents in the database. Roberto Rosario 2016-05-30 03:58:30 -04:00
  • 67f88b79c6 Fix queryset filter. Roberto Rosario 2016-05-27 23:03:52 -04:00
  • 266cf5c8a3 Import from the permissions app, not the permission module. Roberto Rosario 2016-05-27 18:03:25 -04:00
  • e228dfc8c5 Add initial organization view tests for the documents app. Roberto Rosario 2016-05-27 18:01:31 -04:00
  • fc86abe951 Make generic organization test class inherit from GenericViewTestCase. Roberto Rosario 2016-05-27 18:00:57 -04:00
  • bc7682ab8a Trying to create a default organization in the ready() method of the app interfieres the organization app migration. Roberto Rosario 2016-05-27 00:38:35 -04:00
  • ba1c5c1b17 Add organization view tests for the tags app. Roberto Rosario 2016-05-27 00:16:46 -04:00
  • 48d88d39e7 The folder creation is meant to succeed. Roberto Rosario 2016-05-26 23:52:24 -04:00
  • de81fc58dd Generalize organization test. Add more organization tests to the folders app. Roberto Rosario 2016-05-26 21:58:31 -04:00
  • b71ebe45f9 Initial sample a organization view test. Roberto Rosario 2016-05-26 14:52:25 -04:00
  • 05a46445d9 Don't use on_organization as we may be operating on an organization that is not our own. Return the username and password to be used for tests. Roberto Rosario 2016-05-26 14:47:41 -04:00
  • 907744cf18 Document page has to reference to document model. Roberto Rosario 2016-05-25 03:11:55 -04:00
  • f7fd9634df Change group->user related_name to 'users'. Update all references. Roberto Rosario 2016-05-25 03:07:45 -04:00
  • 796e4cea04 Test are completely broken, disable CI for now. Roberto Rosario 2016-05-25 02:55:46 -04:00
  • b2304119fc Improve the organization app tests. Roberto Rosario 2016-05-25 02:51:58 -04:00
  • 07a124187f Organization related improvements to the permissions app tests. Roberto Rosario 2016-05-25 02:51:32 -04:00
  • eab5296c7a Organization related improvements to the user management app tests. Roberto Rosario 2016-05-25 02:51:06 -04:00
  • ab83e23f27 Use the new group accessor for the user groups. Roberto Rosario 2016-05-25 02:50:39 -04:00
  • 5e7a62e022 Use MayanGroup in the user management views. Filter user for the current organization. Roberto Rosario 2016-05-25 02:49:19 -04:00
  • e34dffb176 Make a hybrid user manager class to allow calling 'create_user' and 'create_superuser' from the on_organization manager. Roberto Rosario 2016-05-25 02:48:35 -04:00
  • 3a2d8bac33 Use the organization aware group model in the user serializer. Filter users for the current organization. Roberto Rosario 2016-05-25 02:47:58 -04:00
  • 58d634a395 Organization related improvements for the tags app. Roberto Rosario 2016-05-25 02:47:26 -04:00