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

Refactored data components service #335

Merged
merged 16 commits into from
Jan 12, 2024
Merged

Refactored data components service #335

merged 16 commits into from
Jan 12, 2024

Conversation

vsun757
Copy link

@vsun757 vsun757 commented Jan 3, 2024

No description provided.

@vsun757 vsun757 requested a review from ElJocko January 3, 2024 20:19
Copy link

codecov bot commented Jan 3, 2024

Codecov Report

Attention: 35 lines in your changes are missing coverage. Please review.

Comparison is base (9769f0b) 67.60% compared to head (434003f) 68.25%.
Report is 66 commits behind head on project-orion.

Files Patch % Lines
app/controllers/data-components-controller.js 61.95% 35 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                @@
##           project-orion     #335      +/-   ##
=================================================
+ Coverage          67.60%   68.25%   +0.64%     
=================================================
  Files                143      145       +2     
  Lines              17168    15997    -1171     
  Branches            2137     1936     -201     
=================================================
- Hits               11607    10918     -689     
+ Misses              5554     5071     -483     
- Partials               7        8       +1     

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

@vsun757 vsun757 closed this Jan 3, 2024
@vsun757 vsun757 reopened this Jan 3, 2024
@ElJocko
Copy link
Contributor

ElJocko commented Jan 4, 2024

Just a couple of things to clean up:

  1. I'm guessing that you really want to be using the 302-refactor-data-components-service-for-improved-structure-and-asynchronicity branch, since you merged the data-test-302 branch into that one (and that's the branch that I reviewed)
  2. You can delete the retrieveAllAsync() function from the data components service. That function was only created to provide an async version of the retrieveAll() function for the one place the data sources service needed it. Since the main retrieveAll() function is now async, the retrieveAllAsync() function isn't needed anymore.
  3. After deleting the retrieveAllAsync() function, the place in the data sources service that called it needs to be changed to call dataComponentsService.retrieveAll()

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions

6.7% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@seansica seansica merged commit 7c7a3c3 into project-orion Jan 12, 2024
2 of 4 checks passed
@seansica seansica deleted the data-test-302 branch January 12, 2024 15:02
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.

3 participants