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

feat(Context): add share logic for contexts #962

Merged
merged 21 commits into from Apr 24, 2024
Merged

Conversation

blizzz
Copy link
Member

@blizzz blizzz commented Apr 2, 2024

contributes to #311 and #897

  • createShare endpoints where extended with the optional parameter displayMode, which is only effective for contexts. The permissions flags on the other hand are not effective for contexts at the moment.
  • updateShareDisplayMode (Routes: api1#updateShareDisplayMode and share#updateDisplayMode) endpoint was added, as the only updatable endpoint was against purely against permissions.
  • business logic was adjusted to supply contexts specific needs.

@blizzz blizzz added the 2. developing Work in progress label Apr 2, 2024
@blizzz blizzz force-pushed the feat/noid/context-sharing branch 3 times, most recently from 1f517e0 to 7cb65d8 Compare April 5, 2024 13:14
@blizzz blizzz marked this pull request as ready for review April 5, 2024 13:34
@blizzz blizzz added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Apr 5, 2024
@blizzz blizzz mentioned this pull request Apr 5, 2024
2 tasks
enjeck

This comment was marked as resolved.

@blizzz

This comment was marked as resolved.

@enjeck

This comment was marked as resolved.

@blizzz

This comment was marked as resolved.

Copy link
Member

@juliushaertl juliushaertl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick, can be a follow up

* @psalm-param ("default"|"self") $target
*/
public function updateShareDisplayMode(int $shareId, int $displayMode, string $target = 'default'): DataResponse {
if ($target === 'default') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could become a constant, same as self

blizzz and others added 12 commits April 24, 2024 10:51
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
…ient

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Cleopatra Enjeck M <patrathewhiz@gmail.com>
Signed-off-by: Cleopatra Enjeck M <patrathewhiz@gmail.com>
Signed-off-by: Cleopatra Enjeck M <patrathewhiz@gmail.com>
Signed-off-by: Cleopatra Enjeck M <patrathewhiz@gmail.com>
Signed-off-by: Cleopatra Enjeck M <patrathewhiz@gmail.com>
Signed-off-by: Cleopatra Enjeck M <patrathewhiz@gmail.com>
Signed-off-by: Cleopatra Enjeck M <patrathewhiz@gmail.com>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
- that is through the internal endpoints /tables/table and /tables/view

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzz blizzz added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Apr 24, 2024
enjeck and others added 8 commits April 24, 2024 11:01
Signed-off-by: Cleopatra Enjeck M <patrathewhiz@gmail.com>
Signed-off-by: Cleopatra Enjeck M <patrathewhiz@gmail.com>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Cleopatra Enjeck M <patrathewhiz@gmail.com>
@blizzz blizzz merged commit 97578bc into main Apr 24, 2024
58 checks passed
@blizzz blizzz deleted the feat/noid/context-sharing branch April 24, 2024 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish
Projects
Status: ☑️ Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants