Josh Hunt
3c6e0e8ef8
Chore: ESlint import order ( #44959 )
...
* Add and configure eslint-plugin-import
* Fix the lint:ts npm command
* Autofix + prettier all the files
* Manually fix remaining files
* Move jquery code in jest-setup to external file to safely reorder imports
* Resolve issue caused by circular dependencies within Prometheus
* Update .betterer.results
* Fix missing // @ts-ignore
* ignore iconBundle.ts
* Fix missing // @ts-ignore
2022-04-22 14:33:13 +01:00
kay delaney
d134740bba
Redux: Factor Invites out to separate slice ( #45552 )
2022-02-21 11:37:49 +00:00
Gabriel MABILLE
ba839d1f7c
AccessControl: Refactor addAccessControlQueryParam
( #44191 )
...
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2022-01-19 11:27:45 +01:00
J Guerreiro
06d4cb0303
AccessControl: Disable user remove and user update roles when they do not have the permissions ( #43429 )
...
* AccessControl: Disable user remove and update roles when they do not have the appropriate permissions
* AccessControl: Ensure frontend tests pass in CI
2021-12-23 09:08:13 +01:00
Alexander Zobnin
6c3c82d132
Access control: Fix permission required to invite users (prevent access error) ( #41943 )
...
* Fix permission required to invite users (prevent access error)
* Use hasAccess method with fallback
* Fix tests
2021-11-22 09:40:52 +03:00
Alexander Zobnin
a7e721e987
Access control: Make Admin/Users UI working with the permissions ( #33176 )
...
* API: authorize admin/users views
* Render admin/users components based on user's permissions
* Add LDAP permissions (required by admin/user page)
* Extend default admin role by LDAP permissions
* Show/hide LDAP debug views
* Render LDAP debug page if user has access
* Authorize LDAP debug view
* fix permissions definitions
* Add LDAP page permissions
* remove ambiguous permissions check
* Hide logout buttons in sessions table
* Add org/users permissions
* Use org permissions for managing user roles in orgs
* Apply permissions to org/users
* Apply suggestions from review
* Fix tests
* remove scopes from the frontend
* Tweaks according to review
* Handle /invites endpoints
2021-04-22 13:19:41 +03:00
Jack Westbrook
9caf2f8b3a
Configuration: Prevent browser hanging / crashing with large number of org users ( #32546 )
...
* fix(userslist): introduce pagination to prevent browser crash with large number of users
* test(userlist): fix failing tests
* refactor(userlist): use layout components for spacing
* test(userslist): update snapshots
2021-04-01 14:46:55 +02:00
Torkel Ödegaard
1d689888b0
Prettier: Upgrade to 2 ( #30387 )
...
* Updated package json but not updated source files
* Update eslint plugin
* updated files
2021-01-20 07:59:48 +01:00
Hugo Häggmark
4f0fa776be
Chore: Migrates reducers and actions to Redux Toolkit ( #21287 )
...
* Refactor: Adds Redux Toolkit package
* Refactor: Uses configureStore from Redux Toolkit
* Refactor: Migrates applicationReducer
* Refactor: Migrates appNotificationsReducer
* Refactor: Migrates locationReducer
* Refactor: Migrates navModelReducer
* Refactor: Migrates teamsReducer and teamReducer
* Refactor: Migrates cleanUpAction
* Refactor: Migrates alertRulesReducer
* Refactor: Cleans up recursiveCleanState
* Refactor: Switched to Angular compatible reducers
* Refactor: Migrates folderReducer
* Refactor: Migrates dashboardReducer
* Migrates panelEditorReducer
* Refactor: Migrates dataSourcesReducer
* Refactor: Migrates usersReducer
* Refactor: Migrates organizationReducer
* Refactor: Migrates pluginsReducer
* Refactor: Migrates ldapReducer and ldapUserReducer
* Refactor: Migrates apiKeysReducer
* Refactor: Migrates exploreReducer and itemReducer
* Refactor: Removes actionCreatorFactory and reducerFactory
* Refactor: Moves mocks to test section
* Docs: Removes sections about home grown framework
* Update contribute/style-guides/redux.md
Co-Authored-By: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
* Refactor: Cleans up some code
* Refactor: Adds state typings
* Refactor: Cleans up typings
* Refactor: Adds comment about ImmerJs autoFreeze
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2020-01-13 08:03:22 +01:00
Eric Leijonmarck
f05607d4c0
UserTableView: Show user name in table view ( #18108 )
...
* refactor to multiple rows
* added name for org user struct
* added name getorgusers
* added user name to tableview
* made test pass
* updated userMocks to user name field
* added missing UsersTable snapshot
* added name on teammembers page, be able to search query for name, login and email
* added the updated snapshots
* conform to same sorting as output form
* conform to previous way of using it
* sort first by login and after by email, as it was before
2019-11-21 12:44:46 +02:00
548017
09b434bdd0
Auth: Allow inviting existing users when login form is disabled ( #19048 )
...
Allow api to accept inviting existing users when login form is disabled.
UI shows invite button when login form is disabled.
2019-09-12 18:45:50 +02:00
Tobias Skarhed
e1cec1069c
noImplicitAny: 1670 errors ( #18035 )
...
* Sub 2000 errors
* Down to 1670 errors
* Minor fixes
2019-07-11 17:05:45 +02:00
Ryan McKinley
96ba32d0c8
Add a @grafana/runtime package with backendSrv interface ( #16533 )
...
grafana-runtime/tsconfig.json imports query to avoid a build error ¯\_(ツ)_/¯
2019-06-03 17:55:59 +02:00
Peter Holmberg
02e7d713a1
Added Loading state on org pages
2018-10-11 11:49:34 +02:00
Peter Holmberg
45113e6c8b
updated after pr feedback
2018-10-03 10:54:15 +02:00
Torkel Ödegaard
afdec3d1b0
Revert "Revert "Org users to react""
2018-10-03 09:43:10 +02:00
Torkel Ödegaard
fe4f2f71c3
Revert "Org users to react"
2018-10-03 09:40:37 +02:00
Peter Holmberg
6d6416c04d
fix after merge from master
2018-10-02 13:19:11 +02:00
Peter Holmberg
3c8820ab55
invites table
2018-10-01 18:01:26 +02:00
Peter Holmberg
3211df7303
filter users in selector based on search
2018-10-01 13:45:00 +02:00
Peter Holmberg
94971abd9c
functions and tests
2018-10-01 12:01:53 +02:00
Peter Holmberg
8f99276606
first crude display
2018-09-28 17:21:00 +02:00