Skip to content

add collections to config file and messaging scopes to config file - #5930

Merged
abnegate merged 13 commits into
1.5.xfrom
feat-add-messaging-collections-in-config
Sep 12, 2023
Merged

abnegate merged 13 commits into
1.5.xfrom
feat-add-messaging-collections-in-config

Conversation

@fanatic75

@fanatic75 fanatic75 commented Aug 2, 2023 •

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR adds collections required for messaging service in config.

Test Plan

Related PRs and Issues

  • (Related PR or issue)
    For more details, check out RFC

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

@fanatic75
fanatic75 requested a review from abnegate August 2, 2023 15:00
@fanatic75 fanatic75 added the product / messaging Fixes and upgrades for the Appwrite Messaging. label Aug 2, 2023
@fanatic75 fanatic75 self-assigned this Aug 2, 2023
@fanatic75
fanatic75 marked this pull request as draft August 2, 2023 15:08
@fanatic75
fanatic75 removed the request for review from abnegate August 2, 2023 15:08
@fanatic75
fanatic75 changed the base branch from 1.4.x to master August 3, 2023 09:38
@fanatic75
fanatic75 requested a review from abnegate August 3, 2023 09:38
@fanatic75
fanatic75 marked this pull request as ready for review August 3, 2023 09:39
@fanatic75

Copy link
Copy Markdown
Contributor Author

@abnegate This is base out of 1.4.x branch. You can just check my ending commits for reviewing the PR.

@fanatic75
fanatic75 requested a review from fogelito August 4, 2023 08:45
@fanatic75 fanatic75 changed the title add collections to config file add collections to config file and messaging scopes to config file Aug 4, 2023
@fanatic75
fanatic75 requested review from wess and removed request for fogelito August 7, 2023 15:52
@fanatic75
fanatic75 changed the base branch from master to 1.4.x August 9, 2023 07:38
@abnegate
abnegate changed the base branch from 1.4.x to 1.5.x August 15, 2023 02:48
@abnegate
abnegate changed the base branch from 1.5.x to cl-1.4.x August 23, 2023 18:30
@abnegate
abnegate changed the base branch from cl-1.4.x to 1.5.x August 23, 2023 18:35

@abnegate abnegate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's revert the console changes and add the scopes in roles.php as well. All except subscribers and target should be admins only, and subscribers and targets should be both admins and members

Comment thread app/config/collections.php
Comment thread app/config/collections.php Outdated
Comment thread app/config/collections.php Outdated
Comment thread app/config/collections.php Outdated
Comment thread app/config/collections.php Outdated
Comment thread app/config/collections.php Outdated
Comment thread app/config/collections.php
Comment thread app/config/collections.php Outdated
Comment thread app/config/collections.php
Comment thread app/init.php
Comment thread app/config/collections.php Outdated
Comment thread app/config/collections.php Outdated
Comment thread app/config/collections.php Outdated
Comment thread app/config/collections.php Outdated
Comment thread app/init.php Outdated
Comment thread app/config/collections.php Outdated
@fanatic75
fanatic75 requested a review from abnegate September 12, 2023 08:45
@fanatic75
fanatic75 force-pushed the feat-add-messaging-collections-in-config branch 2 times, most recently from ef694e4 to 54c0af2 Compare September 12, 2023 15:42
@fanatic75
fanatic75 force-pushed the feat-add-messaging-collections-in-config branch from 54c0af2 to ba96f71 Compare September 12, 2023 15:45
Comment thread app/config/collections.php Outdated
@fanatic75
fanatic75 requested a review from abnegate September 12, 2023 19:11
@abnegate
abnegate merged commit d709682 into 1.5.x Sep 12, 2023
Comment thread app/init.php
return Authorization::skip(fn() => $database
->find('targets', [
Query::equal('userInternalId', [$document->getInternalId()]),
Query::limit(APP_LIMIT_SUBQUERY),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If we added limit? do we want to order by desc to get the latest?

@abnegate
abnegate deleted the feat-add-messaging-collections-in-config branch October 25, 2023 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product / messaging Fixes and upgrades for the Appwrite Messaging.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants