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

Collection view common fix + lint Data #2512

Merged
merged 18 commits into from
Jul 6, 2023
Merged

Conversation

marinofaggiana
Copy link
Member

@marinofaggiana marinofaggiana commented Jul 5, 2023

  • lint
  • fix on NCCollectionViewCommon

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
@marinofaggiana marinofaggiana changed the title Collection view fix Collection view fix + Lint Data Jul 5, 2023
@marinofaggiana marinofaggiana changed the title Collection view fix + Lint Data Collection view common fix + Lint Data Jul 5, 2023
@marinofaggiana marinofaggiana changed the title Collection view common fix + Lint Data Collection view common fix + lint Data Jul 5, 2023
}

return result.autoUploadSubfolderGranularity
return 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we extract these magic 1s into a variable or a constant?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was not resolved

@mpivchev
Copy link
Collaborator

mpivchev commented Jul 5, 2023

Can you specify in more detail what exactly this is fixing? "fix on NCCollectionViewCommon" doesn't really say much, thanks.

@codecov
Copy link

codecov bot commented Jul 5, 2023

Codecov Report

Patch coverage: 17.93% and project coverage change: +0.34 🎉

Comparison is base (86555bf) 8.88% compared to head (9aa1bd0) 9.23%.

❗ Current head 9aa1bd0 differs from pull request most recent head a6504e9. Consider uploading reports for the commit a6504e9 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           develop   #2512      +/-   ##
==========================================
+ Coverage     8.88%   9.23%   +0.34%     
==========================================
  Files          185     185              
  Lines        25828   26013     +185     
  Branches      9528    9719     +191     
==========================================
+ Hits          2296    2403     +107     
- Misses       23335   23398      +63     
- Partials       197     212      +15     
Impacted Files Coverage Δ
iOSClient/Data/NCDataSource.swift 11.04% <0.00%> (+0.03%) ⬆️
iOSClient/Data/NCManageDatabase+Activity.swift 5.98% <0.00%> (-1.01%) ⬇️
iOSClient/Data/NCManageDatabase+E2EE.swift 4.42% <0.00%> (-0.53%) ⬇️
iOSClient/Data/NCManageDatabase+Groupfolders.swift 6.66% <0.00%> (ø)
iOSClient/Data/NCManageDatabase+Share.swift 1.69% <0.00%> (-0.27%) ⬇️
...ain/Collection Common/NCCollectionViewCommon.swift 24.41% <0.00%> (+0.53%) ⬆️
...Client/Data/NCManageDatabase+DashboardWidget.swift 11.32% <5.88%> (+4.79%) ⬆️
iOSClient/Data/NCManageDatabase.swift 17.88% <8.79%> (-0.82%) ⬇️
iOSClient/Data/NCManageDatabase+Metadata.swift 20.89% <13.63%> (-2.05%) ⬇️
iOSClient/Data/NCManageDatabase+Video.swift 18.68% <18.18%> (-0.64%) ⬇️
... and 6 more

... and 7 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@marinofaggiana
Copy link
Member Author

How you look the uploadedFile and the downloadStartFile are now very simple and reload the datasorce, because I found so many crashes here. Actually it should be revised because it is not optimized like this at all, but until we have an API with pagination it would be a waste of time.

@marinofaggiana marinofaggiana merged commit 19d41b6 into develop Jul 6, 2023
4 checks passed
@delete-merged-branch delete-merged-branch bot deleted the collectionViewFIX branch July 6, 2023 07:43
@marinofaggiana marinofaggiana added this to the 4.8.5 milestone Jul 7, 2023
@marinofaggiana marinofaggiana mentioned this pull request Jul 7, 2023
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.

None yet

2 participants