Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-users in Gladys Assistant #1050

Merged
merged 42 commits into from Feb 19, 2021
Merged

Multi-users in Gladys Assistant #1050

merged 42 commits into from Feb 19, 2021

Conversation

Pierre-Gilles
Copy link
Contributor

@Pierre-Gilles Pierre-Gilles commented Jan 23, 2021

Pull Request check-list

To ensure your Pull Request can be accepted as fast as possible, make sure to review and check all of these items:

  • If your changes affects code, did your write the tests?
  • Are tests passing? (npm test on both front/server)
  • Is the linter passing? (npm run eslint on both front/server)
  • Did you run prettier? (npm run prettier on both front/server)
  • If you are adding a new features/services, did you run integration comparator? (npm run compare-translations on front)
  • If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
  • If you are adding a new features/services which needs explanation, did you modify the user documentation? See the GitHub repo and the website.
  • Did you add fake requests data for the demo mode (front/src/config/demo.json) so that the demo website is working without a backend? (if needed) See https://demo.gladysassistant.com.

NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.

Description of change

Screenshot 2021-02-15 at 11 24 43

Screenshot 2021-02-15 at 11 25 42

Screenshot 2021-02-15 at 11 25 52

Screenshot 2021-02-15 at 13 43 40

Read more here: https://community.gladysassistant.com/t/multi-utilisateurs/5510/24?u=pierre-gilles

@VonOx VonOx added the Feature label Jan 25, 2021
@codecov
Copy link

codecov bot commented Jan 25, 2021

Codecov Report

Merging #1050 (57bfd21) into master (4afbc88) will increase coverage by 0.02%.
The diff coverage is 98.70%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1050      +/-   ##
==========================================
+ Coverage   95.45%   95.48%   +0.02%     
==========================================
  Files         525      529       +4     
  Lines        6968     7036      +68     
==========================================
+ Hits         6651     6718      +67     
- Misses        317      318       +1     
Impacted Files Coverage Δ
server/api/routes.js 97.87% <ø> (ø)
server/lib/dashboard/dashboard.destroy.js 100.00% <ø> (ø)
server/lib/dashboard/dashboard.getBySelector.js 100.00% <ø> (ø)
server/lib/dashboard/dashboard.update.js 100.00% <ø> (ø)
server/models/dashboard.js 100.00% <ø> (ø)
server/seeders/20190506074218-dashboard.js 100.00% <ø> (ø)
server/services/ewelink/api/ewelink.controller.js 100.00% <ø> (ø)
server/services/mqtt/api/mqtt.controller.js 100.00% <ø> (ø)
server/services/philips-hue/api/hue.controller.js 100.00% <ø> (ø)
.../services/rtsp-camera/api/rtspCamera.controller.js 100.00% <ø> (ø)
... and 18 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4afbc88...57bfd21. Read the comment docs.

@cicoub13
Copy link
Contributor

Will fix #637

@Pierre-Gilles Pierre-Gilles marked this pull request as ready for review February 15, 2021 09:59
@Pierre-Gilles
Copy link
Contributor Author

To me, the PR is ready!

See my message on the forum: https://community.gladysassistant.com/t/multi-utilisateurs/5510/24?u=pierre-gilles

@VonOx @atrovato @cicoub13 @Terdious I'm interested in your review. Let me know what you think!

@Pierre-Gilles Pierre-Gilles merged commit 24b6b69 into master Feb 19, 2021
@Pierre-Gilles Pierre-Gilles deleted the multi-users branch February 19, 2021 17:38
atrovato pushed a commit to atrovato/Gladys that referenced this pull request Feb 21, 2021
* First views working

* improve create user page

* Improve design of user list

* Fix bug when setting a new picture

* disableRole in user own profile edit

* Add get user by selector + delete user by selector

* Add PATCH user route

* Clean response of getBySelector/updateBySelector

* edit user with get

* Fix password update

* make reset password work for admin user

* Now possible to edit preferences

* Dashboard are now private

* It's now possible to delete a user

* user shouldn't be able to delete his own account

* Get user should be searchable & orderable

* Fix edit user page

* Fix tests & add more retrictions on routes (admin)

* Fix tests

* Hide settings for non-admin users

* Add search and order to user list

* Add FR translations

* Fix eslint front

* fix ui bugs

* filter integrations for user with non admin role + hide scene

* fix integration list bug

* Hide weather + improve telegram integration

* non admin user cannot create, update and delete scene

* Fix demo mode

* Save preferences in same form as user

* Update dashboard selector in dashboard migration

* UI improvements

* Explain better what are roles

* Set temperature/distance unit in create user too

* Renforce admin securities on services

* when creating account, role is not shown

* Adapt Gladys plus to multi-users

* Add loading bar for user screen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants