Skip to content

Conversation

@Gustrb
Copy link
Contributor

@Gustrb Gustrb commented Mar 24, 2025

Proposed changes (including videos or screenshots)

If an app is installed with permissions, but is updated with a version that requires no permissions (with no permissions in the manifest file), the app is marked as invalid_installation_disabled. This was happening because when we update the app's metadata in the database, we would do a simple update (no unset) which in term, would make that field different than the one in the manifest, which would case an error when comparing the checksums.

Issue(s)

Steps to test or reproduce

  1. Create an app with permissions (doesn't matter which, I've used user.read for testing)
  2. Build and upload the app as a private app
  3. Change the app's manifest (app.json) removing the permissions field from the json
  4. Build and upload the app as a private app.

Expected: The app should be upload without any big issue
Actual: The app was being marked as invalid_installation_disabled and never got enabled

Further comments

CONN-564


This pull request addresses an issue in the Rocket.Chat repository where removing app permissions results in the app never being enabled, leading to an invalid_installation_disabled error. The changes are documented in the changeset file .changeset/shy-moles-boil.md, although the documentation is noted to be clear, it lacks specific technical details. The fix is implemented in the fix/app-update-with-no-permission-error branch and is intended to be merged into the develop branch.

@dionisio-bot
Copy link
Contributor

dionisio-bot bot commented Mar 24, 2025

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is targeting the wrong base branch. It should target 7.7.0, but it targets 7.6.0

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@changeset-bot
Copy link

changeset-bot bot commented Mar 24, 2025

🦋 Changeset detected

Latest commit: d0b511e

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

This PR includes changesets to release 36 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/api-client Patch
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/ddp-client Patch
@rocket.chat/freeswitch 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/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/models Patch
@rocket.chat/network-broker Patch
@rocket.chat/mock-providers Patch
@rocket.chat/ui-avatar Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/ui-voip 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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 24, 2025

PR Preview Action v1.6.1

🚀 View preview at
https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-35594/

Built to branch gh-pages at 2025-04-24 12:17 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@codecov
Copy link

codecov bot commented Mar 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.20%. Comparing base (72dfcf8) to head (3b3ecae).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #35594      +/-   ##
===========================================
+ Coverage    61.17%   61.20%   +0.03%     
===========================================
  Files         3005     3007       +2     
  Lines        71381    71472      +91     
  Branches     16341    16343       +2     
===========================================
+ Hits         43664    43742      +78     
- Misses       24748    24760      +12     
- Partials      2969     2970       +1     
Flag Coverage Δ
e2e 57.83% <ø> (-0.04%) ⬇️
unit 75.09% <100.00%> (+0.09%) ⬆️

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Gustrb Gustrb added this to the 7.6.0 milestone Mar 24, 2025
@Gustrb Gustrb requested a review from d-gubert March 24, 2025 14:20
@Gustrb Gustrb marked this pull request as ready for review March 24, 2025 16:20
@Gustrb Gustrb requested a review from d-gubert March 26, 2025 17:44
@kody-ai
Copy link

kody-ai bot commented Apr 17, 2025

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Security
Code Style
Kody Rules
Refactoring
Error Handling
Maintainability
Potential Issues
Documentation And Comments
Performance And Optimization
Breaking Changes

Access your configuration settings here.

@kody-ai
Copy link

kody-ai bot commented Apr 17, 2025

Kody Review Complete

Great news! 🎉
No issues were found that match your current review configurations.

Keep up the excellent work! 🚀

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Security
Code Style
Kody Rules
Refactoring
Error Handling
Maintainability
Potential Issues
Documentation And Comments
Performance And Optimization
Breaking Changes

Access your configuration settings here.

@kody-ai
Copy link

kody-ai bot commented Apr 17, 2025

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Security
Code Style
Kody Rules
Refactoring
Error Handling
Maintainability
Potential Issues
Documentation And Comments
Performance And Optimization
Breaking Changes

Access your configuration settings here.

d-gubert
d-gubert previously approved these changes Apr 17, 2025
@d-gubert d-gubert self-requested a review April 17, 2025 13:38
@d-gubert d-gubert requested a review from a team as a code owner April 17, 2025 14:24
@kody-ai
Copy link

kody-ai bot commented Apr 17, 2025

Kody Review Complete

Great news! 🎉
No issues were found that match your current review configurations.

Keep up the excellent work! 🚀

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Security
Code Style
Kody Rules
Refactoring
Error Handling
Maintainability
Potential Issues
Documentation And Comments
Performance And Optimization
Breaking Changes

Access your configuration settings here.

@d-gubert d-gubert modified the milestones: 7.6.0, 7.7.0 Apr 22, 2025
@d-gubert d-gubert added the stat: QA assured Means it has been tested and approved by a company insider label Apr 24, 2025
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Apr 24, 2025
@kodiakhq kodiakhq bot merged commit b7e6730 into develop Apr 24, 2025
48 checks passed
@kodiakhq kodiakhq bot deleted the fix/app-update-with-no-permission-error branch April 24, 2025 14:25
lucas-a-pelegrino pushed a commit that referenced this pull request Apr 29, 2025
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