1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-16 12:20:08 +02:00
immich/mobile/openapi/lib/api
mgabor 2943f93098
feat: readonly album sharing (#8720)
* rename albums_shared_users_users to album_permissions and add readonly column

* disable synchronize on the original join table

* remove unnecessary FK names

* set readonly=true as default for new album shares

* separate and implement album READ and WRITE permission

* expose albumPermissions on the API, deprecate sharedUsers

* generate openapi

* create readonly view on frontend

* ??? move slideshow button out from ellipsis menu so that non-owners can have access too

* correct sharedUsers joins

* add album permission repository

* remove a log

* fix assetCount getting reset when adding users

* fix lint

* add set permission endpoint and UI

* sort users

* remove log

* Revert "??? move slideshow button out from ellipsis menu so that non-owners can have access too"

This reverts commit 1343bfa311.

* rename stuff

* fix db schema annotations

* sql generate

* change readonly default to follow migration

* fix deprecation notice

* change readonly boolean to role enum

* fix joincolumn as primary key

* rename albumUserRepository in album service

* clean up userId and albumId

* add write access to shared link

* fix existing tests

* switch to vitest

* format and fix tests on web

* add new test

* fix one e2e test

* rename new API field to albumUsers

* capitalize serverside enum

* remove unused ReadWrite type

* missed rename from previous commit

* rename to albumUsers in album entity as well

* remove outdated Equals calls

* unnecessary relation

* rename to updateUser in album service

* minor renamery

* move sorting to backend

* rename and separate ALBUM_WRITE as ADD_ASSET and REMOVE_ASSET

* fix tests

* fix "should migrate single moving picture" test failing on European system timezone

* generated changes after merge

* lint fix

* fix correct page to open after removing user from album

* fix e2e tests and some bugs

* rename updateAlbumUser rest endpoint

* add new e2e tests for updateAlbumUser endpoint

* small optimizations

* refactor album e2e test, add new album shared with viewer

* add new test to check if viewer can see the album

* add new e2e tests for readonly share

* failing test: User delete doesn't cascade to UserAlbum entity

* fix: handle deleted users

* use lodash for sort

* add role to addUsersToAlbum endpoint

* add UI for adding editors

* lint fixes

* change role back to editor as DB default

* fix server tests

* redesign user selection modal editor selector

* style tweaks

* fix type error

* Revert "style tweaks"

This reverts commit ab604f4c8f.

* Revert "redesign user selection modal editor selector"

This reverts commit e6f344856c.

* chore: cleanup and improve add user modal

* chore: open api

* small styling

---------

Co-authored-by: mgabor <>
Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2024-04-25 04:19:49 +00:00
..
activity_api.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
album_api.dart feat: readonly album sharing (#8720) 2024-04-25 04:19:49 +00:00
api_key_api.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
asset_api.dart refactor(server): decouple generated images from image formats (#8246) 2024-04-02 04:56:56 +00:00
audit_api.dart refactor(server): move file file report endpoints to their own controller (#8925) 2024-04-19 20:35:54 -04:00
authentication_api.dart refactor(server): sessions (#8915) 2024-04-19 06:47:29 -04:00
download_api.dart refactor(server): download endpoints (#6653) 2024-01-26 08:19:13 -06:00
face_api.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
file_report_api.dart refactor(server): move file file report endpoints to their own controller (#8925) 2024-04-19 20:35:54 -04:00
job_api.dart refactor(server): send job command (#2777) 2023-06-16 14:36:07 -05:00
library_api.dart feat(server,web): remove external path nonsense and make libraries admin-only (#7237) 2024-02-29 12:35:37 -06:00
memory_api.dart feat: persistent memories (#8330) 2024-04-02 10:23:17 -04:00
o_auth_api.dart chore(server): remove deprecated endpoints (#6984) 2024-02-08 16:57:54 -05:00
partner_api.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
person_api.dart feat(server): create a person with optional values (#7706) 2024-03-07 15:34:57 -05:00
search_api.dart fix(server): "view all" for cities only showing 12 cities (#8035) 2024-03-20 03:23:57 +00:00
server_info_api.dart refactor: system metadata (#8923) 2024-04-19 20:36:15 -04:00
sessions_api.dart refactor(server): sessions (#8915) 2024-04-19 06:47:29 -04:00
shared_link_api.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
sync_api.dart feat(server): efficient full app sync (#8755) 2024-04-16 07:26:37 +02:00
system_config_api.dart fix: map theme auth in shared links (#8359) 2024-03-29 09:43:30 -05:00
system_metadata_api.dart refactor: system metadata (#8923) 2024-04-19 20:36:15 -04:00
tag_api.dart deps: open-api generator (#6655) 2024-01-26 11:40:28 -05:00
timeline_api.dart refactor(server): move timeline operations to their own controller/service (#8325) 2024-03-28 23:20:40 -04:00
trash_api.dart refactor(server): trash endpoints (#6652) 2024-01-26 11:48:37 -05:00
user_api.dart feat(server,web): add force delete to immediately remove user (#7681) 2024-03-08 17:49:39 -05:00