Skip to content

Conversation

@joelwilliam2005
Copy link
Contributor

@joelwilliam2005 joelwilliam2005 commented Jan 20, 2025

Fixes issue #90
By adding new Confirmation page for deleting A/B tests associated with a page.

Screenshot From 2025-01-21 01-02-41

@codecov
Copy link

codecov bot commented Jan 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.78%. Comparing base (1ecc8d8) to head (19b1460).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #94      +/-   ##
==========================================
+ Coverage   93.51%   93.78%   +0.26%     
==========================================
  Files          42       43       +1     
  Lines        1620     1690      +70     
  Branches      107      111       +4     
==========================================
+ Hits         1515     1585      +70     
  Misses         69       69              
  Partials       36       36              

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@mgax mgax left a comment

Choose a reason for hiding this comment

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

Hi @joelwilliam2005, thanks for fixing this issue, and taking the time to make a PR! 🙌

I've tested the branch locally and it does what it says. The UI is nice and slick!

However, it does not address deleting pages from their parent page listing (which is what I tried initially, when the AB test was still active, since I did not have access to its individual delete button). Since that is a bulk delete action, I'm not sure what to do about it.

@joelwilliam2005
Copy link
Contributor Author

Hi @joelwilliam2005, thanks for fixing this issue, and taking the time to make a PR! 🙌

I've tested the branch locally and it does what it says. The UI is nice and slick!

However, it does not address deleting pages from their parent page listing (which is what I tried initially, when the AB test was still active, since I did not have access to its individual delete button). Since that is a bulk delete action, I'm not sure what to do about it.

@mgax I have fixed the addressed issues.
And yes this does not address deleting pages using bulk deletion, it works for deleting individual pages.
Perhaps I can fix that in another PR, that addresses bulk deletion which would require a new page that lists the pages that have A/B tests.

Copy link
Contributor

@mgax mgax left a comment

Choose a reason for hiding this comment

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

Lots of good stuff in here, nice work @joelwilliam2005! I've left some suggestions, hopefully I'm not overwhelming you with change requests 😅

Sorry about the code style nitpicks; ideally we should have automated linting in place to catch them. I've opened a ticket for this: #95.

@joelwilliam2005
Copy link
Contributor Author

joelwilliam2005 commented Mar 1, 2025

Thank you for reviewing @mgax
I'll look into your suggested changes.

@joelwilliam2005 joelwilliam2005 requested a review from mgax March 2, 2025 10:13
Copy link
Contributor

@mgax mgax left a comment

Choose a reason for hiding this comment

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

Hi @joelwilliam2005, thanks for addressing the comments! The PR is in pretty good shape I think. There are a couple of issues left to address. Cheers!

@mgax mgax force-pushed the feat-confirm-delete-page-for-page-with-abtests branch from e43931a to 07bafd9 Compare March 14, 2025 15:23
@mgax
Copy link
Contributor

mgax commented Mar 14, 2025

Sorry, I've pushed an erroneous commit to your branch, I've now removed it.

@joelwilliam2005 joelwilliam2005 requested a review from mgax March 14, 2025 16:12
Copy link
Contributor

@mgax mgax left a comment

Choose a reason for hiding this comment

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

@joelwilliam2005 nice work, thank you! 🎉

@mgax mgax merged commit fbd11bf into wagtail-nest:main Mar 17, 2025
11 checks passed
@Stormheg
Copy link
Member

@joelwilliam2005 @mgax wanted to let you know that I just released v0.12 with this confirmation screen included 🎉

Thank you both for your work on this!

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