solidus icon indicating copy to clipboard operation
solidus copied to clipboard

4860-deprecate-and-remove-dashboards-code

Open lauriejefferson opened this issue 2 years ago • 15 comments

Summary

Fixes #4860 This PR adds deprecation warnings to the following views and controllers:

lauriejefferson avatar Oct 23 '23 16:10 lauriejefferson

Codecov Report

Merging #5448 (18d6c65) into main (c64e9fd) will decrease coverage by 0.04%. Report is 112 commits behind head on main. The diff coverage is 14.28%.

:exclamation: Current head 18d6c65 differs from pull request most recent head 5e67650. Consider uploading reports for the commit 5e67650 to get more accurate results

@@            Coverage Diff             @@
##             main    #5448      +/-   ##
==========================================
- Coverage   88.86%   88.82%   -0.04%     
==========================================
  Files         607      607              
  Lines       14750    14757       +7     
==========================================
+ Hits        13107    13108       +1     
- Misses       1643     1649       +6     
Files Coverage Δ
...ore/lib/spree/permission_sets/dashboard_display.rb 100.00% <100.00%> (ø)
...p/controllers/spree/admin/dashboards_controller.rb 0.00% <0.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

codecov[bot] avatar Oct 23 '23 16:10 codecov[bot]

Thanks for using the deprecator. This still hasn't addressed my other concerns:

Additionally, the DashboardsController is deprecated in a way that simply loading it will trigger the deprecation which is undesirable and the specs themselves don't need to be deprecated. I recommend looking through some past PRs that deprecated things to find some examples of how we've handled similar deprecations in the past to get a feel for how this should be handled.

jarednorman avatar Oct 31 '23 18:10 jarednorman

I need a little help with the DashboardController deprecation. I searched through past PRs and I see #4102 that may relate. From the PR, It does use a deprecator in the OrdersController, but I'm not sure if that code has also been deprecated in favor of Spree.deprecator.

lauriejefferson avatar Nov 01 '23 10:11 lauriejefferson

@kennyadsl @jarednorman Can this PR be closed?

lauriejefferson avatar Apr 01 '24 18:04 lauriejefferson

@lauriejefferson would you mind to rebase and force push your branch with latest main to retrigger the pipepline? Thanks 🙏🏻

tvdeyen avatar Apr 05 '24 09:04 tvdeyen

@tvdeyen Rebase completed.

lauriejefferson avatar Apr 05 '24 14:04 lauriejefferson

@jarednorman @tvdeyen @kennyadsl Is there any feedback on this issue?

lauriejefferson avatar Apr 11 '24 13:04 lauriejefferson

Nope, I have approved and am just waiting for another person on core to approve.

jarednorman avatar Apr 11 '24 15:04 jarednorman

@lauriejefferson the spec failures are related. Mind taking another look?

tvdeyen avatar Apr 11 '24 16:04 tvdeyen

@tvdeyen I fixed the rspec tests. Please review.

lauriejefferson avatar Apr 12 '24 19:04 lauriejefferson

Hey @lauriejefferson, I have a revised version of this branch available here: https://github.com/nvandoorn/solidus/tree/4860-deprecate-and-remove-dashboards-code

The specs should pass and everything is up to date. You're welcome to pull these changes if you wish, or I can open another pull request.

nvandoorn avatar Aug 14 '24 21:08 nvandoorn

@nvandoorn Has your branch been approved? I'm not sure if I need to pull your changes. I may have added what was necessary to complete this issue. @jarednorman @tvdeyen Please advise.

lauriejefferson avatar Aug 15 '24 11:08 lauriejefferson

Hey @lauriejefferson, I haven't opened a pull request yet so the changes have not been approved yet.

I believe the current revision of this pull request needs a revision for the specs to pass as indicated by @tvdeyen's last comment.

nvandoorn avatar Aug 15 '24 13:08 nvandoorn