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

Add command to organize old plugin version packages #328

Merged
merged 3 commits into from
Jan 31, 2024

Conversation

Xpirix
Copy link
Collaborator

@Xpirix Xpirix commented Dec 6, 2023

Changes summary:

The command runs the following process:

  • List all plugin versions created before 31 December 2014 that are located directly in the folder packages
  • Create a folder according to the created_on year and move each package inside it
  • Update the package field in the PluginVersion model

To run the command: python manage.py organize_old_package

@dimasciput
Copy link
Collaborator

@Xpirix, could you change the 'move' command to 'copy' instead? Then, we can delete the duplicates after we've ensured that everything is good

@Xpirix Xpirix marked this pull request as draft December 26, 2023 03:38
@Xpirix
Copy link
Collaborator Author

Xpirix commented Dec 26, 2023

Thanks @dimasciput , I've converted this to a draft for the moment. We also need to ensure the coverage of the backup script with @timlinux before running this command on the server side

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b661773) 32.51% compared to head (e8592d8) 82.75%.
Report is 8 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #328       +/-   ##
===========================================
+ Coverage   32.51%   82.75%   +50.24%     
===========================================
  Files          71      142       +71     
  Lines        4217     5497     +1280     
===========================================
+ Hits         1371     4549     +3178     
+ Misses       2846      948     -1898     

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

@Xpirix Xpirix marked this pull request as ready for review January 22, 2024 09:09
@dimasciput dimasciput merged commit 2f7e9c1 into qgis:master Jan 31, 2024
2 checks passed
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

3 participants