1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

50 Commits

Author SHA1 Message Date
3ef2db81e8 Closes #14629: Add filter tests for all q and description filters 2023-12-28 13:53:16 -05:00
3a3d43911c Fixed password was not hashed on REST API update (#14340)
* Fixed password was not hashed on REST API update

* When we updated a user password with a REST API call the password was
  stored in clear in plain text in the database.

* Following code review

* Move test on UserTest class
* Call `super().update()` in overriding `update` method

* Return directly the result of `super().update()`
2023-11-29 15:59:54 -05:00
c38884fa11 Add description & expires fields to token test 2023-09-01 12:33:02 -04:00
315c4bb1ac #13434: Fix tests 2023-08-10 14:32:48 -04:00
07f68ae579 Closes #13038: Establish DEFAULT_PERMISSIONS config parameter (#13308)
* Introduce the DEFAULT_PERMISSIONS config parameter

* Establish default permissions for user token management
2023-07-30 15:04:58 -04:00
7600d7b344 Closes #13228: Move token management views to primary UI 2023-07-25 13:43:40 -04:00
a4acb50edd 12589 move user and group admin from admin (#12877)
Move admin views for users, groups, and object permissions from the admin site to the NetBox frontend

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-07-20 16:22:08 -04:00
518fd8cca6 12794 change User ref to get_user_model (#12905)
* 12794 change User ref to get_user_model

* 12794 call get_user_model once in tests

* 12794 call get_user_model once in tests

* 12794 use settings.AUTH_USER_MODEL for FK reference
2023-06-22 08:26:50 -04:00
9e305c6181 Closes #12207: Establish a permission for creating API tokens on behalf of other users (#12192)
* 11091 add permission to allow user to create api tokens for other users

* 11091 update docs

* 11091 fix for test

* 11091 fix for test

* 11091 test case for invalid token creation

* 11091 add test for permission grant

* Cleanup & fix serializer validation

---------

Co-authored-by: jeremystretch <jstretch@netboxlabs.com>
2023-04-12 10:25:06 -04:00
2bf9acfb19 Closes #12193: Clean up tests (#12197)
* Fix skipped API tests

* Remove invalid tests

* Correct logger name
2023-04-06 16:35:27 -04:00
d4a231585a Clean up tests 2022-11-17 10:50:05 -05:00
bfbf97aec9 Closes #10031: Enforce 'application/json' content type for REST API requests 2022-08-24 15:49:36 -04:00
fab4d95156 Merge branch 'develop' into feature 2022-02-25 14:06:45 -05:00
5a60224d77 Add description filter for Token & ObjectPermission 2022-02-25 18:15:33 +01:00
23a80770e1 Move configure_table() logic to NetBoxTable.configure() 2022-02-09 14:10:54 -05:00
4a1b4e0485 Closes #8469: Move BaseTable, columns to netbox core app 2022-01-27 15:00:10 -05:00
21e0e6e495 Closes #6954: Remember users' table ordering preferences 2022-01-10 14:03:07 -05:00
01997efcbe Add tests & cleanup 2021-12-22 09:51:31 -05:00
34aa231436 Closes #6899: Add filterset tests for Token 2021-08-06 09:41:49 -04:00
e6091ee0c9 Consolidate GraphQLTestCase into APIViewTestCase 2021-06-30 10:07:33 -04:00
05ba54b6d3 Add GraphQL for users and groups 2021-06-29 13:15:10 -04:00
b038b1f613 Add a REST API endpoint to provision new tokens using username & password 2021-06-11 15:54:31 -04:00
48b4bf1683 Initial work on REST API endpoint for tokens 2021-06-11 15:14:19 -04:00
ffa4cd134b Introduce BaseFilterSetTests to standardize testing of PK filters 2021-05-03 14:36:44 -04:00
fbffef1cc4 Rename FilterSet test modules 2021-05-03 13:07:19 -04:00
1024782b9e Rename FilterSet modules 2021-04-29 16:48:24 -04:00
fb48c1f6dd Add 'display' field to all REST API serializers 2021-03-16 10:06:25 -04:00
ef77961cf4 Fix tests 2020-12-01 12:01:10 -05:00
915cf3e715 Merge branch 'develop' into develop-2.10 2020-12-01 11:42:55 -05:00
77bbe5730b Fixes #5383: Fix setting user password via REST API 2020-11-25 11:47:53 -05:00
2bb79a2773 Add missing bulk update test data 2020-11-02 16:56:04 -05:00
aad32c4866 Add tests for UserConfig API endpoint 2020-10-29 16:05:59 -04:00
053c600b67 Closes #4943: Add a 'description' field to ObjectPermission 2020-08-03 16:37:37 -04:00
380d30e612 Add filters for ObjectPermissions 2020-07-22 16:34:16 -04:00
79f1248119 Add filter tests for group, users 2020-07-22 13:58:12 -04:00
64a3bd37e7 Move EXEMPT_EXCLUDE_MODELS to settings; add Group and User models 2020-07-22 12:13:07 -04:00
b4cf85149b Add tests for users and groups API endpoints 2020-07-22 12:04:14 -04:00
3e6b257fa0 Exclude ObjectPermissions API endpoint from EXEMPT_VIEW_PERMISSIONS 2020-07-21 17:39:56 -04:00
fac0da224a Add name, enabled fields to ObjectPermission 2020-07-08 13:44:19 -04:00
987414ed7b Introduce NestedObjectPermissionSerializer 2020-06-08 15:44:16 -04:00
62224857f0 Standardize ObjectPermissionTest 2020-06-08 14:01:15 -04:00
3084d58da1 Add REST API endpoint for ObjectPermissions 2020-06-03 13:08:04 -04:00
a6a88a0d2e Delete extraneous test case 2020-05-27 11:30:36 -04:00
94d0ebbd7d Fix ObjectPermission attribute consolidation 2020-05-12 16:51:46 -04:00
6624fc6076 Initial work on #554 (WIP) 2020-05-08 17:30:25 -04:00
f8060ce112 Ignore clearing of invalid user config keys 2020-04-29 15:05:29 -04:00
dc9617c7aa Fix returning default for unknown userconfig key 2020-04-24 10:37:02 -04:00
7c8c85e435 Add all() method to UserConfig 2020-04-24 09:50:26 -04:00
f3012ed839 Automatically create UserConfig for users 2020-04-23 16:46:36 -04:00
750deac2cf Initial implementation of UserConfig model 2020-04-23 15:34:32 -04:00