[spree-user] Spree Garbage Cleaner extension released

59 views
Skip to first unread message

Alberto Vena

unread,
Aug 9, 2012, 8:08:45 AM8/9/12
to spree...@googlegroups.com

Hi,

we just released a new Spree extension that helps deleting unneeded data created by Spree from database. 


https://github.com/nebulab/spree-garbage-cleaner


The extension works defining a couple of rake task, one to verify how many records will be deleted (rake db:garbage:stats) and another that does the job (rake db:garbage:cleanup). Records to be deleted are incomplete orders and anonymous users, considered as garbage if older then 7 days (as editable preference).


We built the extension as a starting point and we have tried to make it easily extendable to other models or configurations if needed.

We need the community to help us understand if we didn't consider (or left out) something so we would like to receive some feedback from spree users to improve the extension.


Regards

--
Alberto Vena
NebuLab 

Trung LE

unread,
Aug 9, 2012, 11:01:38 AM8/9/12
to spree...@googlegroups.com
Good and useful extension, please make sure you submit this extension into Spree Extension tree :)

Trung LE
Sent with Sparrow

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree...@googlegroups.com.
To unsubscribe from this group, send email to spree-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

Alberto Vena

unread,
Aug 9, 2012, 11:24:30 AM8/9/12
to spree...@googlegroups.com
Thanks.

-- 
Alberto Vena

Denis (jumph4x)

unread,
Aug 9, 2012, 4:36:51 PM8/9/12
to spree...@googlegroups.com
Awesome!

Ryan Bigg

unread,
Aug 9, 2012, 7:21:09 PM8/9/12
to spree...@googlegroups.com
Excellent work Alberto! Thank you for creating this.

Alberto Vena

unread,
Aug 10, 2012, 1:19:49 PM8/10/12
to spree...@googlegroups.com

Thanks, we are glad our work is appreciated.

We are also working on a branch for older versions (without namespace) for some of our stores. If someone is interested in a specific version let us know. We can try to provide a tested branch for that version too.

Alberto Vena

Irish

unread,
Aug 11, 2012, 3:52:08 AM8/11/12
to spree...@googlegroups.com
Nice job! Is there any particular reason you have the gem dependency set to Spree 1.1.3?  Or more specifically is there anything preventing this from working with any 1.1.X version?

Alberto Vena

unread,
Aug 12, 2012, 8:48:33 AM8/12/12
to spree...@googlegroups.com

We used that version to run tests but the extension should work with every Spree version after the namespace refactor. Do you think we have to set dependencies in another way?

P.S. pull requests are welcome. :)

To view this discussion on the web visit https://groups.google.com/d/msg/spree-user/-/L9ojM77qnYUJ.

Trung LE

unread,
Aug 12, 2012, 7:17:43 PM8/12/12
to spree...@googlegroups.com
I'd recommend you to set up branches that match 1-0-stable, 1-1-stable and 1-2-stable and master on Spree and setup Travis (if you do use this CI) to only run CI test on those.

Trung LE
Sent with Sparrow

Alberto Vena

unread,
Aug 13, 2012, 12:44:45 PM8/13/12
to spree...@googlegroups.com
Ok, we are having some issues with the 1.2 version but I think they are related to the role bug discussed in issue #9 of spree_auth_devise ( https://github.com/spree/spree_auth_devise/issues/9 ). We will wait for the next RC to try again. 

In the meantime we have applied your advice creating 1-0-stable and 1-1-stable branches with TravisCI active.

Thanks!

-- 
Alberto Vena

Kate

unread,
Sep 23, 2012, 10:54:03 AM9/23/12
to spree...@googlegroups.com
Hi Alberto,

We are interested in a garbage cleaner for spree version 0.40.2.  Any chance you have one?

Thanks very much,
Kate

Alberto Vena

unread,
Sep 23, 2012, 1:27:19 PM9/23/12
to spree...@googlegroups.com
Hi Kate,

I'm quite sure that the 0-30-stable branch ( https://github.com/nebulab/spree-garbage-cleaner/tree/0-30-stable ) will work with 0.40.x version too but unfortunately we have not a real environment we can do some tests over.

Anyway have you already considered to fork the repo, change the dependencies inside "spree_garbage_cleaner.gemspec" and test (not in production) the extension with your application? If you need help I will be happy to guide you in this process and to check with you if everything worked fine.

Cheers

-- 
Alberto Vena


To view this discussion on the web visit https://groups.google.com/d/msg/spree-user/-/_7kfIvMafZcJ.
Reply all
Reply to author
Forward
0 new messages