exponentcms / exponent-cms

Content Management, Simple.
exponentcms.org
GNU General Public License v2.0
60 stars 24 forks source link

Feature request: Need to improve how/when we implement recycle bin & delete #1079

Open exponentcms opened 4 years ago

exponentcms commented 4 years ago

Rollup of tickets #1032 #1033 #1034

The recycle bin should work as such:

We had tended to delete the object after sending it to the recycle bin (navigation & container) is some cases

exponentcms commented 4 years ago

Note to self:

Therefore to move a module to the recycle bin involves removing it from the containers table and setting its sectionref->refcount to 0...otherwise the module is untouches (expConfigs content_xxx attachments, & items entries are untouched)

And to move a recycled module out of the recycle bin changes the sectionref->refcount to 1 and adds a new containers table entry

exponentcms commented 4 years ago

(from [cc8ef5e696cef1f0ab0381e6fa6cfb3f4d1cc111]) Robusts recycle bin operation which should now more consistently work...all modules from deleted pages (content pages moved to standalone first) are now placed in the recycle bin, all nested modules inside a deleted container are now placed in the recycle bin, all module items (assoc, attached, configs) are removed when a module is removed from the recycle bin, the add module dialog 'recycle bin' status is now more accurate [#1035] https://github.com/exponentcms/exponent-cms/commit/cc8ef5e696cef1f0ab0381e6fa6cfb3f4d1cc111

exponentcms commented 4 years ago

Now that the basic function of the recycle bin is MUCH more consistent, we should make it a little smart so that:

exponentcms commented 4 years ago

[bulk edit]

exponentcms commented 4 years ago

[bulk edit]

exponentcms commented 4 years ago

[bulk edit]

exponentcms commented 4 years ago

[bulk edit]

exponentcms commented 4 years ago

[bulk edit]

exponentcms commented 4 years ago

[bulk edit]

exponentcms commented 4 years ago

[bulk edit]

exponentcms commented 4 years ago

Clarification on desire to not sent all modules to recycle bin:

exponentcms commented 4 years ago

[bulk edit]

exponentcms commented 4 years ago

[bulk edit]

exponentcms commented 4 years ago

[bulk edit]

exponentcms commented 4 years ago

[bulk edit]

exponentcms commented 4 years ago

[bulk edit]

exponentcms commented 4 years ago

Lighthouse URL: https://exponentcms.lighthouseapp.com/projects/61783/tickets/1035