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

NAS-131130 / 25.04 / Refactor subscribeToInstalledAppsUpdates in installed-apps-store.service #10741

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AlexKarpov98
Copy link
Contributor

@AlexKarpov98 AlexKarpov98 commented Sep 24, 2024

Refactoring. (messy code fix)

@AlexKarpov98 AlexKarpov98 self-assigned this Sep 24, 2024
@AlexKarpov98 AlexKarpov98 requested a review from a team as a code owner September 24, 2024 08:31
@AlexKarpov98 AlexKarpov98 requested review from RehanY147 and removed request for a team September 24, 2024 08:31
@bugclerk bugclerk changed the title NAS-131130: Refactor subscribeToInstalledAppsUpdates in installed-apps-store.service NAS-131130 / 25.04 / Refactor subscribeToInstalledAppsUpdates in installed-apps-store.service Sep 24, 2024
@bugclerk
Copy link
Contributor

@denysbutenko
Copy link
Member

I have been looking into this code for the last few days. Some points that I highlighted:

  • We may need to split the logic for installed apps and available apps into corresponding files.
  • app.query have support callAndSubscribe to handle collection changes
  • recommendedApps is a subset of availableApps like computed property.

Just shared thoughts, this is not a call to action

@AlexKarpov98
Copy link
Contributor Author

AlexKarpov98 commented Sep 25, 2024

@denysbutenko - thanks.
My original thoughts regarding this PR - it's refactoring, to make it much easier to read, understand the code and not have a huge canvas of one function.

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 5.12821% with 37 lines in your changes missing coverage. Please review.

Project coverage is 80.27%. Comparing base (480d675) to head (4494a11).
Report is 25 commits behind head on master.

Files with missing lines Patch % Lines
...p/pages/apps/store/installed-apps-store.service.ts 5.12% 37 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10741      +/-   ##
==========================================
+ Coverage   80.12%   80.27%   +0.15%     
==========================================
  Files        1567     1571       +4     
  Lines       51516    51660     +144     
  Branches     5832     5840       +8     
==========================================
+ Hits        41275    41469     +194     
+ Misses      10241    10191      -50     
Flag Coverage Δ
80.27% <5.12%> (?)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants