balderdashy / balderdashy/sails

Configure hook order?

Open
#6,799 6 comments 0 reactions 0 assignees View on GitHub
helpful info or workaround orm
Dominant language
JavaScript
Stars
22.8k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

I'd like to define (and potentially release) a couple of hooks which modify the models and associated functions created by `sails-hook-orm`. Is there a way to configure the order of hook loading/execution?

I've noticed a couple of issues asking the same question (https://github.com/balderdashy/sails/issues/2517, https://github.com/balderdashy/sails/issues/4338), but no response and nothing in the hooks docs (https://sailsjs.com/documentation/concepts/extending-sails/hooks/hook-specification).

Contributor guide

Open the contributing guide

Research direction

Start with the hook specification documentation and the related issues #2517 and #4338 to establish the current hook loading and execution behavior. Done would require a clear answer on whether hook order can be configured and, if so, documented configuration guidance or a defined implementation path.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.