Skip to content

feat: Added bulk delete to version change view #338

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

Conversation

polyccon
Copy link
Contributor

@polyccon polyccon commented Jun 2, 2023

Description

*- Initial draft on adding functionality to bulk delete to versions djangocms versioning
*- More information required on the ticket that needs to be a user story - see link below

Related resources

Checklist

  • I have opened this pull request against master
  • I have added or modified the tests when changing logic
  • I have followed the conventional commits guidelines to add meaningful information into the changelog
  • I have read the contribution guidelines and I have joined #workgroup-pr-review on
    Slack to find a “pr review buddy” who is going to review my pull request.

@codecov
Copy link

codecov bot commented Jun 2, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.21%. Comparing base (f90c5b2) to head (934dba4).
Report is 33 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #338      +/-   ##
==========================================
+ Coverage   90.88%   91.21%   +0.32%     
==========================================
  Files          72       72              
  Lines        2546     2663     +117     
  Branches      361      307      -54     
==========================================
+ Hits         2314     2429     +115     
+ Misses        168      163       -5     
- Partials       64       71       +7     

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

@marksweb marksweb force-pushed the GITHUB-24538627-Add-bulk-delete-to-versions-djangocms-versioning branch from 601944c to 1deb2b7 Compare June 26, 2023 13:19
Do not delete anything if a published or draft version is amongst the selected objects
Update the queryset to contain content elements
@fsbraun
Copy link
Member

fsbraun commented Oct 29, 2024

@polyccon I updated your PR. People keep asking for this feature! I guess you were 80% there. I hope you do not mind, that I added some stuff to finish this.

@fsbraun fsbraun changed the title Draft: GitHub 24538627 add bulk delete to versions djangocms versioning feat: Added bulk delete to version change view Oct 29, 2024
@@ -1388,7 +1419,7 @@
.latest("created")
.content
)
except ObjectDoesNotExist:
except (ObjectDoesNotExist, KeyError):

Check notice

Code scanning / CodeQL

Empty except Note

'except' clause does nothing but pass and there is no explanatory comment.
Copy link
Member

@fsbraun fsbraun left a comment

Choose a reason for hiding this comment

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

@polyccon Thanks so much for getting this started. It's been a feature that people have kept requesting. Great that we can finish this now!

@fsbraun fsbraun merged commit d51f806 into django-cms:master Oct 29, 2024
52 checks passed
@polyccon
Copy link
Contributor Author

Nice work @fsbraun thank you for your hard work to bring it over the finish line!!!!!!

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.

2 participants