You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the creation and deletion of a documentation section will correctly increment and decrement an order_id using the beforeCreate and afterDelete lifecycle hooks provided by Strapi. As the default Strapi update function is used to update the entries on creation and deletion, handling the update of an order_id will cause a recursive update of all the entries order_ids.
A likely fix to this problem is to use a custom update "service" to update entries on creation, deletion, and update.
ChrisHinchey
changed the title
Handle order_id update from Strapi admin panel
Handle Documentation order_id update from Strapi admin panel
Oct 28, 2022
Possible Alternative (https://market.strapi.io/plugins/@retikolo-drag-drop-content-types)
Relates to: https://feedback.strapi.io/customization/p/ordering-content-type-entries-in-the-list-view
Currently the creation and deletion of a documentation section will correctly increment and decrement an order_id using the
beforeCreate
andafterDelete
lifecycle hooks provided by Strapi. As the default Strapi update function is used to update the entries on creation and deletion, handling the update of an order_id will cause a recursive update of all the entries order_ids.A likely fix to this problem is to use a custom update "service" to update entries on creation, deletion, and update.
Strapi also seems to have a feature planned for future release that may help: https://feedback.strapi.io/developer-experience/p/ability-to-define-custom-indexes-in-the-schema
Resources that may be helpful:
The text was updated successfully, but these errors were encountered: