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

Removed getDataDirectory() #1107

Merged
merged 3 commits into from
Aug 12, 2024
Merged

Removed getDataDirectory() #1107

merged 3 commits into from
Aug 12, 2024

Conversation

sgourdas
Copy link
Collaborator

@sgourdas sgourdas commented Aug 4, 2024

This removes getDataDirectory() and properly modifies all its dependencies, so as to migrate it to kiwix-desktop.

  • In the process, makeDirectory() is also removed after being marked as non essential.
  • startDownload() now directly receives the download directory and ignores all dirs in options.

Implements #1087 and #1085

@sgourdas sgourdas requested a review from kelson42 August 4, 2024 18:10
Copy link

codecov bot commented Aug 4, 2024

Codecov Report

Attention: Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.

Project coverage is 41.42%. Comparing base (ff6d8a4) to head (7108dfa).

Files Patch % Lines
src/downloader.cpp 0.00% 7 Missing ⚠️
src/aria2.cpp 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1107      +/-   ##
==========================================
+ Coverage   41.21%   41.42%   +0.20%     
==========================================
  Files          58       58              
  Lines        4258     4237      -21     
  Branches     2332     2318      -14     
==========================================
  Hits         1755     1755              
+ Misses       1014      993      -21     
  Partials     1489     1489              

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

include/downloader.h Outdated Show resolved Hide resolved
src/aria2.h Outdated Show resolved Hide resolved
include/tools.h Outdated Show resolved Hide resolved
@sgourdas sgourdas force-pushed the feature/data-directory branch 2 times, most recently from 984f837 to 0987a49 Compare August 9, 2024 09:37
@sgourdas
Copy link
Collaborator Author

sgourdas commented Aug 9, 2024

@veloman-yunkan is this ok?

src/downloader.cpp Outdated Show resolved Hide resolved
src/aria2.cpp Outdated Show resolved Hide resolved
src/aria2.cpp Outdated Show resolved Hide resolved
src/aria2.h Outdated Show resolved Hide resolved
src/downloader.cpp Outdated Show resolved Hide resolved
include/downloader.h Outdated Show resolved Hide resolved
include/downloader.h Show resolved Hide resolved
include/tools.h Outdated Show resolved Hide resolved
include/downloader.h Show resolved Hide resolved
include/downloader.h Outdated Show resolved Hide resolved
@sgourdas sgourdas changed the title Remove getDataDirectory Libkiwix cleanup Aug 10, 2024
Copy link
Collaborator

@veloman-yunkan veloman-yunkan left a comment

Choose a reason for hiding this comment

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

I think that the commits must be reordered - you should start with the enhancement of the Downloader::startDownload()

include/downloader.h Outdated Show resolved Hide resolved
src/aria2.cpp Outdated Show resolved Hide resolved
@veloman-yunkan veloman-yunkan changed the title Libkiwix cleanup Removed getDataDirectory() Aug 11, 2024
@sgourdas
Copy link
Collaborator Author

@veloman-yunkan how is it now?

@mgautierfr
Copy link
Member

LGTM too

@mgautierfr mgautierfr merged commit 0ea756c into main Aug 12, 2024
15 of 16 checks passed
@mgautierfr mgautierfr deleted the feature/data-directory branch August 12, 2024 12:41
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