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

fix: Installed apps not appearing in the list if they're not published in the Marketplace #32534

Merged
merged 7 commits into from
Jun 6, 2024

Conversation

d-gubert
Copy link
Member

@d-gubert d-gubert commented May 31, 2024

Proposed changes (including videos or screenshots)

In the internal apps provider, add non-private apps that are installed in the instance to the installed app list.

Issue(s)

CONN-220

Steps to test or reproduce

NOTE: To test this, you will need access to the workspace's database

  1. Install a private app in the workspace. Any app will suffice.
  2. Access the database (any method will do) and update the record of the app that has just been installed, changing the installationSource to marketplace
    • Example query db.getCollection("rocketchat_apps").updateOne({ id: "YOUR APP ID" }, { $set: { installationSource: "marketplace" } })
  3. Restart the server (otherwise the changes on the DB won't be picked up)
  4. The private app will not be shown in either the "Installed" or "Private Apps" list

This simulates the situation of an app unpublished from the Marketplace, as the record of the app will be present in the instance but not in the return from the Marketplace API

Further comments

Seeing this in the real world is relatively complicated without database access. The real world scenario that would cause this bug is a workspace installing an app from the Marketplace and later on this app being de-listed/unpublished from the Marketplace.

Copy link
Contributor

dionisio-bot bot commented May 31, 2024

Looks like this PR is ready to merge! 🎉
If you have any trouble, please check the PR guidelines

Copy link

changeset-bot bot commented May 31, 2024

🦋 Changeset detected

Latest commit: f592533

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

This PR includes changesets to release 32 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/gazzodown Patch
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-contexts Patch
@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/api-client Patch
@rocket.chat/license 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/uikit-playground Patch
@rocket.chat/models Patch
@rocket.chat/ui-avatar Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/web-ui-registration Patch
@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

@d-gubert d-gubert added this to the 6.10 milestone May 31, 2024
Copy link

codecov bot commented May 31, 2024

Codecov Report

Attention: Patch coverage is 88.09524% with 5 lines in your changes missing coverage. Please review.

Project coverage is 56.37%. Comparing base (2b14bf6) to head (f592533).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #32534      +/-   ##
===========================================
- Coverage    56.37%   56.37%   -0.01%     
===========================================
  Files         2435     2437       +2     
  Lines        53728    53770      +42     
  Branches     11068    11082      +14     
===========================================
+ Hits         30289    30311      +22     
- Misses       20796    20812      +16     
- Partials      2643     2647       +4     
Flag Coverage Δ
e2e 56.07% <ø> (-0.04%) ⬇️
unit 72.13% <88.09%> (-0.03%) ⬇️

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

@d-gubert d-gubert marked this pull request as ready for review May 31, 2024 20:10
@d-gubert d-gubert requested a review from a team as a code owner May 31, 2024 20:10
@d-gubert d-gubert force-pushed the fix/installed-apps-unpublished branch from 47e1a7f to 746d9a6 Compare June 2, 2024 22:09
@d-gubert d-gubert added the stat: QA assured Means it has been tested and approved by a company insider label Jun 6, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Jun 6, 2024
@kodiakhq kodiakhq bot merged commit abebb06 into develop Jun 6, 2024
52 checks passed
@kodiakhq kodiakhq bot deleted the fix/installed-apps-unpublished branch June 6, 2024 19:58
This was referenced Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants