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
Feature/litigation soft delete #62
Conversation
I'm on it. 👀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
Just found one error, could be also in other places where we soft-delete. After delete I was redirected to page with scope All
in the header bar scope=All
, but I think that should be scope=all
or no scope param, because I was on the default page. Our default all scope should not show archived records.
Thanks @tsubik ! I'll take a look and fix in all places |
@kowal @tsubik I tried We have 2 options:
|
Hmm, I think default ActiveAdmin destroy must not have this issue. Maybe it's worth to check the AA code how they redirecting after destroy. |
Fine for me, let's not block this story (since the problem was there before). We can improve those redirect later. @agwozdowski can you add a pivotal task to track that? |
@kowal added a story but it's a minor in my opinion. For now it's working in the same way like active-admin DESTROY action |
Litigation
modelDESTROY
action using::Command::Destroy::Litigation