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: access-marketplace permission #29203

Merged
merged 20 commits into from
Jun 2, 2023
Merged

Conversation

yash-rajpal
Copy link
Member

@yash-rajpal yash-rajpal commented May 10, 2023

Proposed changes (including videos or screenshots)

access-marketplace permission for marketplace section

image

Issue(s)

Steps to test or reproduce

Further comments

TC-626

@yash-rajpal yash-rajpal requested a review from a team May 16, 2023 09:04
@yash-rajpal yash-rajpal marked this pull request as ready for review May 16, 2023 09:04
@yash-rajpal yash-rajpal requested review from a team as code owners May 16, 2023 09:04
@codecov
Copy link

codecov bot commented May 16, 2023

Codecov Report

Merging #29203 (0646b89) into develop (29aab43) will decrease coverage by 0.74%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #29203      +/-   ##
===========================================
- Coverage    46.71%   45.98%   -0.74%     
===========================================
  Files          698      685      -13     
  Lines        13075    12988      -87     
  Branches      2227     2209      -18     
===========================================
- Hits          6108     5972     -136     
- Misses        6649     6708      +59     
+ Partials       318      308      -10     
Flag Coverage Δ
e2e 45.95% <ø> (-0.74%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Member

@gabriellsh gabriellsh left a comment

Choose a reason for hiding this comment

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

If I access the marketplace without permission, I can see the sidebar. In this case we should show the page no found.

image

@scuciatto scuciatto added this to the 6.3.0 milestone May 17, 2023
@changeset-bot
Copy link

changeset-bot bot commented May 18, 2023

🦋 Changeset detected

Latest commit: 0646b89

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 28 packages
Name Type
@rocket.chat/meteor Minor
@rocket.chat/core-typings Minor
@rocket.chat/rest-typings Minor
@rocket.chat/api-client Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/gazzodown Major
@rocket.chat/model-typings Patch
@rocket.chat/ui-contexts Major
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/ddp-client Patch
@rocket.chat/fuselage-ui-kit Major
@rocket.chat/models Patch
@rocket.chat/ui-client Major
@rocket.chat/ui-video-conf Major
@rocket.chat/uikit-playground Patch
@rocket.chat/web-ui-registration Major
@rocket.chat/instance-status Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

gabriellsh
gabriellsh previously approved these changes May 19, 2023
Copy link
Contributor

@tiagoevanp tiagoevanp left a comment

Choose a reason for hiding this comment

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

I have a question, why we are fixing permissions for admin and users only? What kind of role shouldn't be able to visit marketplace view since we are trying to expose the apps? The code looks fine to me, but I want to have better explanation about the reason for this PR to accept it... 🤔

tiagoevanp
tiagoevanp previously approved these changes May 23, 2023
@gabriellsh
Copy link
Member

I have a question, why we are fixing permissions for admin and users only? What kind of role shouldn't be able to visit marketplace view since we are trying to expose the apps? The code looks fine to me, but I want to have better explanation about the reason for this PR to accept it... 🤔

We added this new permission as default for regular users, it doesn't change behaviour, but now if an admin wants to remove this permission, they can do it.

@yash-rajpal yash-rajpal requested a review from a team as a code owner June 1, 2023 14:11
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: conflict labels Jun 1, 2023
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Jun 1, 2023
Copy link
Member

@matheusbsilva137 matheusbsilva137 left a comment

Choose a reason for hiding this comment

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

Back-end LGTM

@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Jun 2, 2023
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Jun 2, 2023
@kodiakhq kodiakhq bot merged commit 5617702 into develop Jun 2, 2023
@kodiakhq kodiakhq bot deleted the new/access-marketplace-perm branch June 2, 2023 16:57
gabriellsh added a commit that referenced this pull request Jun 6, 2023
…importer-messages-not-shown

* 'develop' of github.com:RocketChat/Rocket.Chat:
  fix: Room history scroll position (#29335)
  fix: check for $addToSet to be not empty before passing update params (#29378)
  chore: update `badge-level-0` color (#29460)
  fix: Saving Business hour throws an alert (#29449)
  regression: emojiPicker position (#29408)
  chore: Update codeowners to add ownership of rest typings package to backend (#29437)
  fix: Removed agent access to already taken rooms (#28979)
  fix: `queuedForUser` endpoint not filtering by status (#29189)
  regression: Marketplace Selectors (#29443)
  chore: fix contextualbar size (#29441)
  chore: `ComposerBoxPopup` Items alignment (#29320)
  feat: add support for `MONOLITH_TRANSPORTER` env var (#29373)
  fix: Import progress page stuck at 0% (#29421)
  feat: access-marketplace permission (#29203)
  chore(ddp-client): freeze data emitted by the sdk (#29430)
  refactor: `Table` on Integrations Page (#29428)
  regression: Update `LoadingIndicator` colors (#29424)
  chore(meteor): Update mention style (#29426)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: QA tested stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants