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] Marketplace app status initially disabled #27330

Merged
merged 5 commits into from Jan 12, 2023

Conversation

rique223
Copy link
Contributor

@rique223 rique223 commented Nov 23, 2022

Proposed changes (including videos or screenshots)

Jira task: MKP-20

Currently, the only apps engine statuses considered enabled in the UI are the auto-enabled and manually-enabled statuses, this causes a UX problem in which the app will be considered disabled for the first few seconds of its lifecycle, upon the first installation in a workspace, since it will have the apps engine status of initialized. This PR adds the initialized status to the appEnabledStatuses list and solves this problem.
Demo gif:
disabled_status_issue_solution\

Issue(s)

Steps to test or reproduce

  1. Create a new workspace
  2. Open the admin section and select the apps option
  3. Install any app and pay attention to its status
  4. For good measure, reload the page and the status will probably change to enabled (Some apps won't because they are supposed to be disabled by default)

Further comments

Implemented a probable fix for the bug in which marketplace apps would, initially, be shown as disabled and then change to installed after a page reload. The bug probably happens because when first installing an app it will have a status of initialized in the apps engine, this initialized status wasnt considered in the app status verification logic which made it show a status of disabled in the UI.
@codecov
Copy link

codecov bot commented Nov 23, 2022

Codecov Report

Merging #27330 (44c69ba) into develop (f5f5bf8) will increase coverage by 0.68%.
The diff coverage is n/a.

❗ Current head 44c69ba differs from pull request most recent head 7a8ec6d. Consider uploading reports for the commit 7a8ec6d to get more accurate results

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #27330      +/-   ##
===========================================
+ Coverage    41.31%   42.00%   +0.68%     
===========================================
  Files          841      810      -31     
  Lines        17706    17130     -576     
  Branches      1996     1909      -87     
===========================================
- Hits          7315     7195     -120     
+ Misses       10154     9695     -459     
- Partials       237      240       +3     
Flag Coverage Δ
e2e 42.00% <ø> (+0.68%) ⬆️

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

@rique223 rique223 marked this pull request as ready for review November 28, 2022 14:47
@rique223 rique223 requested a review from a team as a code owner November 28, 2022 14:47
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: needs QA labels Jan 12, 2023
@kodiakhq kodiakhq bot merged commit d332c36 into develop Jan 12, 2023
@kodiakhq kodiakhq bot deleted the fix/marketplace-app-disabled branch January 12, 2023 18:48
gabriellsh added a commit that referenced this pull request Jan 16, 2023
…ixSearch

* 'develop' of github.com:RocketChat/Rocket.Chat:
  Chore: Show different labels based on the call originator on direct calls (#27729)
  Chore: Change bundle tags color and refactor app details page header styles (#27293)
  [FIX] Auto Translate not working on new message template (#27317)
  Chore: Custom Sounds Empty State (#27632)
  [IMPROVE] Require acceptance when setting new E2E Encryption key for another user (#27556)
  Regression: Broken room and message composer events (#27754)
  [FIX] Missing placeholders from encrypted channel preview messages now with expected behavior (#27699)
  [IMPROVE] SAML and OAuth role sync to support id and name (#27405)
  Chore: add e2e test coverage for Video Conference (#27075)
  Chore: Invites Empty State (#27631)
  [FIX] Marketplace app status initially disabled (#27330)
  Regression: Missing contexts on contextual bar (#27734)
@sampaiodiego sampaiodiego mentioned this pull request Feb 17, 2023
@sampaiodiego sampaiodiego mentioned this pull request Mar 9, 2023
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
squad: apps ecosystem AECO 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.

None yet

2 participants