HUE-8530 [organization] Support editing and creating users

Review Request #14305 — Created Sept. 18, 2019 and submitted

romain
hue
master
HUE-8530
hue
jgauthier, johan, ranade, romain, weixia, yingc
commit 2e04bf1f508389476cb71ac1bc16f0fb46c8b998
Author: Romain <romain.rigaux@gmail.com>
Date:   Mon Aug 5 18:29:51 2019 -0700

    HUE-8530 [organization] Limit dump_config to desktop section
    
    Next:
    - add connectors
    - add 2nd level from [desktop] as Toc?

:100644 100644 303afb5597 9ecefac02d M	desktop/core/src/desktop/tests.py
:100644 100644 089328bf6a f9cb9923c3 M	desktop/core/src/desktop/views.py

commit 81bbd682368f4da1b5eb5de5234c39161a280126
Author: Romain <romain.rigaux@gmail.com>
Date:   Mon Aug 5 13:14:26 2019 -0700

    HUE-8530 [organization] Add default organization when creating a new user

:100644 100644 280760f552 26a813e0c5 M	apps/useradmin/src/useradmin/forms.py
:100644 100644 d43a863fe6 3a9b642a82 M	desktop/libs/notebook/src/notebook/conf.py

commit 38470fda547c588179039209d3356472cdf90852
Author: Romain <romain.rigaux@gmail.com>
Date:   Fri Jul 26 12:54:19 2019 -0700

    HUE-8530 [organization] Avoid 500 error on csrf missing on login page

:100644 100644 29212ca82f b983429765 M	desktop/libs/dashboard/src/dashboard/controller.py

commit bc032a3c0be291c41e6174a6f0b0bfdb6c2469df
Author: Romain <romain.rigaux@gmail.com>
Date:   Mon Jul 22 16:17:18 2019 -0700

    HUE-8530 [organization] Port S3 proxy user lookup

:100644 100644 971cf55d0a 77e39c5624 M	desktop/core/src/desktop/lib/fs/proxyfs.py

commit b5b2f1f8accebab96fccc1f49dc0ee8e7ecc8f18
Author: Romain <romain.rigaux@gmail.com>
Date:   Wed Jul 17 09:27:00 2019 -1000

    HUE-8530 [organization] Rename imports to not confict with models2

:100644 100644 7a578a5ccc 4cd2452870 M	apps/about/src/about/tests.py
:100644 100644 05d9439257 e37b5437b8 M	apps/beeswax/src/beeswax/api.py
:100644 100644 e3f3788ade ae210ab44e M	apps/beeswax/src/beeswax/management/commands/beeswax_install_examples.py
:100644 100644 a79b874777 cb360740dd M	apps/beeswax/src/beeswax/models.py
:100644 100644 81db67129a 9a165a9b5d M	apps/beeswax/src/beeswax/test_base.py
:100644 100644 626e07bd75 d1ee5ce636 M	apps/beeswax/src/beeswax/tests.py
:100644 100644 532950b703 e864db0427 M	apps/beeswax/src/beeswax/views.py
:100644 100644 bd8bf88f28 d4dedce8fe M	apps/filebrowser/src/filebrowser/forms.py
:100644 100644 b2a4bbd61a 861a2b7ce9 M	apps/filebrowser/src/filebrowser/views.py
:100644 100644 20c85b7aaf f2534b2cf1 M	apps/filebrowser/src/filebrowser/views_test.py
:100644 100644 9d7f32d714 2588a1eb18 M	apps/hbase/src/hbase/management/commands/hbase_setup.py
:100644 100644 04f9a78d21 7342714ca3 M	apps/hbase/src/hbase/tests.py
:100644 100644 4e36e549ce 16a3adc85f M	apps/impala/src/impala/tests.py
:100644 100644 aed633cce6 f0e32f4d89 M	apps/jobbrowser/src/jobbrowser/tests.py
:100644 100644 e5547e8319 6ff9f2a598 M	apps/jobsub/src/jobsub/models.py
:100644 100644 72ba4f6787 3775c0ca46 M	apps/jobsub/src/jobsub/tests.py
:100644 100644 eebe60f25c e465ffd73c M	apps/metastore/src/metastore/tests.py
:100644 100644 8c88ad1dde deaf7536e2 M	apps/oozie/src/oozie/models.py
:100644 100644 4298f93a56 91493efe51 M	apps/oozie/src/oozie/models2_tests.py
:100644 100644 14f6c4ec9b 2ce9c1a50d M	apps/oozie/src/oozie/tests.py
:100644 100644 8bcdef2604 edfa5be3f7 M	apps/pig/src/pig/models.py
:100644 100644 82abe131b6 e92c25d3c0 M	apps/pig/src/pig/tests.py
:100644 100644 66de79616a 6680433097 M	apps/search/src/search/models.py
:100644 100644 605a6c093f 64eb248424 M	apps/search/src/search/tests.py
:100644 100644 4135e92ce9 df9b518892 M	apps/security/src/security/tests.py
:100644 100644 35289969d4 8782cfaa00 M	apps/sqoop/src/sqoop/tests.py
:100644 100644 f33316eded 8738c8ce54 M	apps/useradmin/src/useradmin/api.py
:100644 100644 5210c4c6e7 280760f552 M	apps/useradmin/src/useradmin/forms.py
:100644 100644 00e4139d38 be3fe9003b M	apps/useradmin/src/useradmin/ldap_access.py
:100644 100644 2042fe639f b4d5b3dd80 M	apps/useradmin/src/useradmin/middleware.py
:100644 100644 87be98881e cca217e047 M	apps/useradmin/src/useradmin/models.py
:100644 100644 8985b52f0d 990a3b69b6 M	apps/useradmin/src/useradmin/templates/list_permissions.mako
:100644 100644 3dc6154e08 11f9959581 M	apps/useradmin/src/useradmin/test_ldap.py
:100644 100644 709036301f 75da999a42 M	apps/useradmin/src/useradmin/test_ldap_deprecated.py
:100644 100644 f73f7b7a3e 7958b32cb0 M	apps/useradmin/src/useradmin/tests.py
:100644 100644 5f9cbb2627 c8b2522398 M	apps/useradmin/src/useradmin/tests_api.py
:100644 100644 af55456a10 eaab245d18 M	apps/useradmin/src/useradmin/views.py
:100644 100644 cef1a01ce0 bb2a3fe914 M	desktop/core/src/desktop/api2_tests.py
:100644 100644 8e850e6574 fe4234c9c4 M	desktop/core/src/desktop/api_tests.py
:100644 100644 bdc896018f 71c6f56d6b M	desktop/core/src/desktop/auth/backend.py
:100644 100644 b73c5b8da3 303a3e31fe M	desktop/core/src/desktop/auth/forms.py
:100644 100644 99d96cffdc d18acf961b M	desktop/core/src/desktop/auth/views.py
:100644 100644 bbe9e0f42d 3f16e08fc5 M	desktop/core/src/desktop/auth/views_test.py
:100644 100644 fd2a215c01 5633edf6c0 M	desktop/core/src/desktop/configuration/tests.py
:100644 100644 f3f522a1cb 3f4706a48a M	desktop/core/src/desktop/converter_tests.py
:100644 100644 c4c76a00e9 a2b1617115 M	desktop/core/src/desktop/lib/django_test_util.py
:100644 100644 64d8659566 971cf55d0a M	desktop/core/src/desktop/lib/fs/proxyfs.py
:100644 100644 1c7d498dc5 3c3a435710 M	desktop/core/src/desktop/lib/fs/proxyfs_test.py
:100644 100644 dc250edefc c1c52a78b7 M	desktop/core/src/desktop/management/commands/convert_documents.py
:100644 100644 47a309822c ea4d3dbea4 M	desktop/core/src/desktop/management/commands/create_user_directories.py
:100644 100644 8aba474873 9f8e5b3049 M	desktop/core/src/desktop/metrics.py
:100644 100644 52a434f0f5 2aaf6b166c M	desktop/core/src/desktop/middleware.py
:100644 100644 a1527ecbfb 257f7b37ef M	desktop/core/src/desktop/models.py
:100644 100644 d35faef803 cdf030c8f5 M	desktop/core/src/desktop/monkey_patches.py
:100644 100644 425d7ae813 303afb5597 M	desktop/core/src/desktop/tests.py
:100644 100644 5fc3eeb39e 4ca329139e M	desktop/core/src/desktop/tests_doc2.py
:100644 100644 70f1b71b74 8a02aa4f45 M	desktop/libs/aws/src/aws/s3/s3fs_test.py
:100644 100644 66d8a1e8fe c371972183 M	desktop/libs/dashboard/src/dashboard/tests.py
:100644 100644 6aeb0a93ad 0f3500783d M	desktop/libs/indexer/src/indexer/indexers/envelope.py
:100644 100644 a3ddcd3569 6eb3b90d89 M	desktop/libs/indexer/src/indexer/indexers/envelope_tests.py
:100644 100644 d01329c3b6 ddee620168 M	desktop/libs/indexer/src/indexer/indexers/flume.py
:100644 100644 3216f234c4 414539941d M	desktop/libs/indexer/src/indexer/indexers/flume_tests.py
:100644 100644 3b1d292407 0721942031 M	desktop/libs/indexer/src/indexer/indexers/morphline.py
:100644 100644 2233acf04e 5ebe663c97 M	desktop/libs/indexer/src/indexer/indexers/morphline_tests.py
:100644 100644 0ea25cd038 53527e8df3 M	desktop/libs/indexer/src/indexer/indexers/rdbms.py
:100644 100644 5ac732de02 2b902134e4 M	desktop/libs/indexer/src/indexer/indexers/sql.py
:100644 100644 f3e4449e5c 49cd736f45 M	desktop/libs/indexer/src/indexer/indexers/sql_tests.py
:100644 100644 77273cdc7c ce7f3ee467 M	desktop/libs/indexer/src/indexer/rdbms_indexer_tests.py
:100644 100644 0cbe9ef722 e970f11a81 M	desktop/libs/indexer/src/indexer/solr_client_tests.py
:100644 100644 90369354e7 8ae18d3e13 M	desktop/libs/indexer/src/indexer/tests.py
:100644 100644 8a9db7822e 7619e4c400 M	desktop/libs/liboauth/src/liboauth/backend.py
:100644 100644 41f04b889b ee7ad528c9 M	desktop/libs/liboauth/src/liboauth/views.py
:100644 100644 1b326ae991 ee3f654461 M	desktop/libs/liboozie/src/liboozie/submittion2_tests.py
:100644 100644 8369b8c4df b9b1809aea M	desktop/libs/liboozie/src/liboozie/submittion_tests.py
:100644 100644 1eb3fb6636 c65574ac29 M	desktop/libs/liboozie/src/liboozie/tests.py
:100644 100644 d153093a2c 9aafaa6e27 M	desktop/libs/libopenid/src/libopenid/backend.py
:100644 100644 32f814660f 26cfc1ee9f M	desktop/libs/libsaml/src/libsaml/backend.py
:100644 100644 508dcff5a0 818b8ee483 M	desktop/libs/libsentry/src/libsentry/test_privilege_checker.py
:100644 100644 a5e5495679 5f53d631c3 M	desktop/libs/libsentry/src/libsentry/tests.py
:100644 100644 5ff02c610a 04680ed314 M	desktop/libs/libsolr/src/libsolr/tests.py
:100644 100644 f1e1d67490 12d18c5c91 M	desktop/libs/libzookeeper/src/libzookeeper/tests.py
:100644 100644 14ea505565 5b75244a97 M	desktop/libs/metadata/src/metadata/catalog/navigator_client_tests.py
:100644 100644 09cff50c79 1c0a455124 M	desktop/libs/metadata/src/metadata/catalog_tests.py
:100644 100644 df9e3bcf12 8eceaa6784 M	desktop/libs/metadata/src/metadata/optimizer_api_tests.py
:100644 100644 3391421437 10100c1c00 M	desktop/libs/metadata/src/metadata/optimizer_client_tests.py
:100644 100644 1201e33511 3705717bb3 M	desktop/libs/notebook/src/notebook/connectors/hiveserver2_tests.py
:100644 100644 6ed43f88ec 1d2e33795e M	desktop/libs/notebook/src/notebook/connectors/sql_alchemy_tests.py
:100644 100644 c57837e9a7 c08a69228c M	desktop/libs/notebook/src/notebook/management/commands/notebook_setup.py
:100644 100644 c44112e483 6dedb50c78 M	desktop/libs/notebook/src/notebook/models.py
:100644 100644 7b26610898 087bdf51ad M	desktop/libs/notebook/src/notebook/tasks.py
:100644 100644 e3e698f584 12d3052c6b M	desktop/libs/notebook/src/notebook/tests.py

commit fbf899e0215e6fb3f0e23eee819c7fa6e69089c7
Author: Romain <romain.rigaux@gmail.com>
Date:   Tue Jul 16 18:51:04 2019 -0930

    HUE-8530 [organization] Support creating a new group

:100644 100644 3176eeb585 5210c4c6e7 M	apps/useradmin/src/useradmin/forms.py
:100644 100644 c862aef519 08fa022eee M	apps/useradmin/src/useradmin/templates/edit_group.mako
:100644 100644 adb0d44425 af55456a10 M	apps/useradmin/src/useradmin/views.py

commit 47aaccc599a7f455872dbb55b57ff2918df809fe
Author: Romain <romain.rigaux@gmail.com>
Date:   Tue Jul 16 17:16:18 2019 -0930

    HUE-8530 [organization] Support editing a group

:100644 100644 3194613fbd 3176eeb585 M	apps/useradmin/src/useradmin/forms.py

commit 360b31e93c43870ba70fbbc73a70fa56f0eac791
Author: Romain <romain.rigaux@gmail.com>
Date:   Tue Jul 16 17:11:27 2019 -0930

    HUE-8530 [organization] Support listing permissions

:100644 100644 be9fc61b14 8985b52f0d M	apps/useradmin/src/useradmin/templates/list_permissions.mako

commit 051ac3fc4b4ccce475c043e610f3a5159bebbfc8
Author: Romain <romain.rigaux@gmail.com>
Date:   Tue Jul 16 16:53:58 2019 -0930

    HUE-8530 [organization] Support creating a new user

:100644 100644 18bde104ad 3194613fbd M	apps/useradmin/src/useradmin/forms.py
:100644 100644 065be238b6 4fd65b0370 M	apps/useradmin/src/useradmin/models2.py
:100644 100644 4f2f4ab135 5eaf3be57b M	apps/useradmin/src/useradmin/templates/edit_user.mako
:100644 100644 a4ac1b8b04 f73f7b7a3e M	apps/useradmin/src/useradmin/tests.py
:100644 100644 0933903bce adb0d44425 M	apps/useradmin/src/useradmin/views.py
:100644 100644 613217e463 b73c5b8da3 M	desktop/core/src/desktop/auth/forms.py

commit 2e3991bdf8d3f5f6310f371319c9dbb4ad2ddb79
Author: Romain <romain.rigaux@gmail.com>
Date:   Tue Jul 16 14:42:44 2019 -0930

    HUE-8530 [organization] Support for Edit user page

:100644 100644 ba46336ba8 18bde104ad M	apps/useradmin/src/useradmin/forms.py
:100644 100644 8e2055a155 4f2f4ab135 M	apps/useradmin/src/useradmin/templates/edit_user.mako
:100644 100644 a3440517b4 0933903bce M	apps/useradmin/src/useradmin/views.py

commit 1392b61af77d126920869d8de68dbe9b582a6152
Author: Romain <romain.rigaux@gmail.com>
Date:   Tue Jul 16 14:39:18 2019 -0930

    HUE-8530 [organization] Port User and Group model switch everywhere

:100644 100644 99514c4087 7a578a5ccc M	apps/about/src/about/tests.py
:100644 100644 35e7ec7d35 05d9439257 M	apps/beeswax/src/beeswax/api.py
:100644 100644 3a37326ac9 e3f3788ade M	apps/beeswax/src/beeswax/management/commands/beeswax_install_examples.py
:100644 100644 4edb32c87a 81db67129a M	apps/beeswax/src/beeswax/test_base.py
:100644 100644 77764ea773 626e07bd75 M	apps/beeswax/src/beeswax/tests.py
:100644 100644 798ee89845 532950b703 M	apps/beeswax/src/beeswax/views.py
:100644 100644 e1e1785d08 bd8bf88f28 M	apps/filebrowser/src/filebrowser/forms.py
:100644 100644 57f850a8d9 b2a4bbd61a M	apps/filebrowser/src/filebrowser/views.py
:100644 100644 09a2a78d8a 20c85b7aaf M	apps/filebrowser/src/filebrowser/views_test.py
:100644 100644 e4c67f6070 9d7f32d714 M	apps/hbase/src/hbase/management/commands/hbase_setup.py
:100644 100644 448980c855 04f9a78d21 M	apps/hbase/src/hbase/tests.py
:100644 100644 40ef8f3da5 4e36e549ce M	apps/impala/src/impala/tests.py
:100644 100644 3ca0f56a5c aed633cce6 M	apps/jobbrowser/src/jobbrowser/tests.py
:100644 100644 676520e5de e5547e8319 M	apps/jobsub/src/jobsub/models.py
:100644 100644 6498798a44 72ba4f6787 M	apps/jobsub/src/jobsub/tests.py
:100644 100644 fde58dea8f eebe60f25c M	apps/metastore/src/metastore/tests.py
:100644 100644 6b22f8c267 4298f93a56 M	apps/oozie/src/oozie/models2_tests.py
:100644 100644 75bcdd94eb 14f6c4ec9b M	apps/oozie/src/oozie/tests.py
:100644 100644 cad824715f 82abe131b6 M	apps/pig/src/pig/tests.py
:100644 100644 13945334c3 605a6c093f M	apps/search/src/search/tests.py
:100644 100644 c6fdc48184 4135e92ce9 M	apps/security/src/security/tests.py
:100644 100644 7e685a5bb0 35289969d4 M	apps/sqoop/src/sqoop/tests.py
:100644 100644 3501b3d344 f33316eded M	apps/useradmin/src/useradmin/api.py
:100644 100644 d85c2c5d72 ba46336ba8 M	apps/useradmin/src/useradmin/forms.py
:100644 100644 d436958314 00e4139d38 M	apps/useradmin/src/useradmin/ldap_access.py
:100644 100644 242f36d4ac 2042fe639f M	apps/useradmin/src/useradmin/middleware.py
:100644 100644 d34051591f 3dc6154e08 M	apps/useradmin/src/useradmin/test_ldap.py
:100644 100644 216c77afe4 709036301f M	apps/useradmin/src/useradmin/test_ldap_deprecated.py
:100644 100644 8c396db246 a4ac1b8b04 M	apps/useradmin/src/useradmin/tests.py
:100644 100644 28e6b7df4f 5f9cbb2627 M	apps/useradmin/src/useradmin/tests_api.py
:100644 100644 00b6e68787 a3440517b4 M	apps/useradmin/src/useradmin/views.py
:100644 100644 13b7af2a4c cef1a01ce0 M	desktop/core/src/desktop/api2_tests.py
:100644 100644 85b5aba59b 8e850e6574 M	desktop/core/src/desktop/api_tests.py
:100644 100644 8125a3e6f2 99d96cffdc M	desktop/core/src/desktop/auth/views.py
:100644 100644 e21b6e5e4e bbe9e0f42d M	desktop/core/src/desktop/auth/views_test.py
:100644 100644 381625ad0f fd2a215c01 M	desktop/core/src/desktop/configuration/tests.py
:100644 100644 029fec038e f3f522a1cb M	desktop/core/src/desktop/converter_tests.py
:100644 100644 7892572128 c4c76a00e9 M	desktop/core/src/desktop/lib/django_test_util.py
:100644 100644 0e4a053e67 64d8659566 M	desktop/core/src/desktop/lib/fs/proxyfs.py
:100644 100644 2a48bf6180 1c7d498dc5 M	desktop/core/src/desktop/lib/fs/proxyfs_test.py
:100644 100644 852799e86a dc250edefc M	desktop/core/src/desktop/management/commands/convert_documents.py
:100644 100644 b76eb5dae4 47a309822c M	desktop/core/src/desktop/management/commands/create_user_directories.py
:100644 100644 f8d68235cb 8aba474873 M	desktop/core/src/desktop/metrics.py
:100644 100644 0ecc8bbfc4 52a434f0f5 M	desktop/core/src/desktop/middleware.py
:100644 100644 57b7bad1ca d35faef803 M	desktop/core/src/desktop/monkey_patches.py
:100644 100644 8a18baade2 425d7ae813 M	desktop/core/src/desktop/tests.py
:100644 100644 fbcc5734c9 5fc3eeb39e M	desktop/core/src/desktop/tests_doc2.py
:100644 100644 0bef83c516 70f1b71b74 M	desktop/libs/aws/src/aws/s3/s3fs_test.py
:100644 100644 8535fdfce1 66d8a1e8fe M	desktop/libs/dashboard/src/dashboard/tests.py
:100644 100644 9de238fe6a 6aeb0a93ad M	desktop/libs/indexer/src/indexer/indexers/envelope.py
:100644 100644 5d9e8f47f1 a3ddcd3569 M	desktop/libs/indexer/src/indexer/indexers/envelope_tests.py
:100644 100644 df68224028 d01329c3b6 M	desktop/libs/indexer/src/indexer/indexers/flume.py
:100644 100644 a118943d8e 3216f234c4 M	desktop/libs/indexer/src/indexer/indexers/flume_tests.py
:100644 100644 d0be11ef41 3b1d292407 M	desktop/libs/indexer/src/indexer/indexers/morphline.py
:100644 100644 6c4a16affc 2233acf04e M	desktop/libs/indexer/src/indexer/indexers/morphline_tests.py
:100644 100644 31a8ce5be6 0ea25cd038 M	desktop/libs/indexer/src/indexer/indexers/rdbms.py
:100644 100644 d09f32918d 5ac732de02 M	desktop/libs/indexer/src/indexer/indexers/sql.py
:100644 100644 b370d19929 f3e4449e5c M	desktop/libs/indexer/src/indexer/indexers/sql_tests.py
:100644 100644 9f25db41d5 77273cdc7c M	desktop/libs/indexer/src/indexer/rdbms_indexer_tests.py
:100644 100644 fbd40afa8b 0cbe9ef722 M	desktop/libs/indexer/src/indexer/solr_client_tests.py
:100644 100644 99ccf45a1d 90369354e7 M	desktop/libs/indexer/src/indexer/tests.py
:100644 100644 79a1f85aac 8a9db7822e M	desktop/libs/liboauth/src/liboauth/backend.py
:100644 100644 d7a11290be 41f04b889b M	desktop/libs/liboauth/src/liboauth/views.py
:100644 100644 8e3b2a6486 1b326ae991 M	desktop/libs/liboozie/src/liboozie/submittion2_tests.py
:100644 100644 ab09e15a1f 8369b8c4df M	desktop/libs/liboozie/src/liboozie/submittion_tests.py
:100644 100644 4b1bfba144 1eb3fb6636 M	desktop/libs/liboozie/src/liboozie/tests.py
:100644 100644 7aad018f10 d153093a2c M	desktop/libs/libopenid/src/libopenid/backend.py
:100644 100644 7186cdd192 32f814660f M	desktop/libs/libsaml/src/libsaml/backend.py
:100644 100644 d1addfde14 508dcff5a0 M	desktop/libs/libsentry/src/libsentry/test_privilege_checker.py
:100644 100644 7434a13f10 a5e5495679 M	desktop/libs/libsentry/src/libsentry/tests.py
:100644 100644 a6af716ba2 5ff02c610a M	desktop/libs/libsolr/src/libsolr/tests.py
:100644 100644 92a10f0cec f1e1d67490 M	desktop/libs/libzookeeper/src/libzookeeper/tests.py
:100644 100644 b00e21d8dc 14ea505565 M	desktop/libs/metadata/src/metadata/catalog/navigator_client_tests.py
:100644 100644 d430f9610c 09cff50c79 M	desktop/libs/metadata/src/metadata/catalog_tests.py
:100644 100644 690511df1c df9e3bcf12 M	desktop/libs/metadata/src/metadata/optimizer_api_tests.py
:100644 100644 c13cc6e30f 3391421437 M	desktop/libs/metadata/src/metadata/optimizer_client_tests.py
:100644 100644 6f3c449e91 1201e33511 M	desktop/libs/notebook/src/notebook/connectors/hiveserver2_tests.py
:100644 100644 7f0f8991b4 6ed43f88ec M	desktop/libs/notebook/src/notebook/connectors/sql_alchemy_tests.py
:100644 100644 648787c0b0 c57837e9a7 M	desktop/libs/notebook/src/notebook/management/commands/notebook_setup.py
:100644 100644 57dccd1430 c44112e483 M	desktop/libs/notebook/src/notebook/models.py
:100644 100644 74b66c7164 7b26610898 M	desktop/libs/notebook/src/notebook/tasks.py
:100644 100644 ec3f212613 e3e698f584 M	desktop/libs/notebook/src/notebook/tests.py

commit 536094a206102781c2045b4093f0557da1d22553
Author: Romain <romain.rigaux@gmail.com>
Date:   Tue Jul 16 13:49:04 2019 -0930

    HUE-8530 [organization] Proper imports of get_defaut_group

:100644 100644 8990de1a49 87be98881e M	apps/useradmin/src/useradmin/models.py

part 2/3
all off by default

  • 2
  • 0
  • 0
  • 0
  • 2
Description From Last Updated
Given the size of the change, would it make sense to change the import to from useradmin.models import User and ... jgauthier jgauthier
There's a couple of questions I have: 1) What happens when you have users in your DB and you switch ... jgauthier jgauthier
jgauthier
  1. 
      
  2. Given the size of the change, would it make sense to change the import to
    from useradmin.models import User
    and handle the ENABLE_ORGANIZATIONS.get() there?

    1. Let me try, it might be cleaner even if it will hide the traditional 'django.contrib.auth.models' there

  3. 
      
romain
jgauthier
  1. 
      
  2. There's a couple of questions I have:
    1) What happens when you have users in your DB and you switch the flag on?
    a) I see that email is set as unique. Do we need a migration for this?
    b) Emails were not required previously, will they be able to login?

    Given this, would it make sense to keep username for logins?

    1. There's a couple of questions I have:
      1) No support for this needed, this is for blank setups only currently cf. notes https://github.com/cloudera/hue/blob/master/docs/designs/organizations.md
      a) Migrations are left out for now and will come in next steps
      b) There is no change to the current behavior when the flag is off (which it is by default)

  3. 
      
jgauthier
  1. Ship It!
  2. 
      
romain
Review request changed

Status: Closed (submitted)

Loading...