feat(smart actions): endpoint that handle forms' load hooks#546
feat(smart actions): endpoint that handle forms' load hooks#546rap2hpoutre merged 9 commits intomasterfrom
Conversation
GuillaumeCisco
left a comment
There was a problem hiding this comment.
Thank you for your work! 🔥
Great thing we can go further in this topic.
I added some possible improvements and some questions.
GuillaumeCisco
left a comment
There was a problem hiding this comment.
With this refacto, code is far more easier to read.
I've added some improvements.
Especially in term of complexity.
I'm available for talking about it :)
GuillaumeCisco
left a comment
There was a problem hiding this comment.
LGTM 🚀
I will check if we can get rid of the codeclimate warning.
seems overkill to me.
|
Code Climate has analyzed commit 689bb60 and detected 1 issue on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 95.8% (49% is the threshold). This pull request will bring the total coverage in the repository to 50.9% (0.6% change). View more on Code Climate. |
# [7.7.0](v7.6.0...v7.7.0) (2020-11-26) ### Features * **smart actions:** endpoint that handle forms' load hooks ([#546](#546)) ([3e3c018](3e3c018))
|
🎉 This PR is included in version 7.7.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [8.0.0-beta.4](v8.0.0-beta.3...v8.0.0-beta.4) (2020-12-02) ### Bug Fixes * **schema:** do not generate `framework`, `framework_version` to ensure equality across environments ([#556](#556)) ([30ee17a](30ee17a)) * **smart fields:** compute properly smart fields ([#570](#570)) ([923c968](923c968)) * **smart-actions:** transform legacy widgets in hooks ([#571](#571)) ([f58b867](f58b867)) * **technical:** remove useless data property from load hook controller ([#562](#562)) ([7465982](7465982)) ### Features * **smart actions:** endpoint that handle forms' load hooks ([#546](#546)) ([3e3c018](3e3c018)) * **smart actions:** endpoint that handle forms' load hooks ([#565](#565)) ([824a670](824a670)) ### Reverts * **related-data:** use same reference on record for dataValues and direct attributes ([#569](#569)) ([5e7a689](5e7a689))
|
🎉 This PR is included in version 8.0.0-beta.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Developer' agents have an endpoint that handle smart actions forms'
loadhooksPOSTactions/smart-action-endpoint/hooks/load(or the smart action endpoint)recordIdto a record.fieldsfrom request or get it from schema when missing (we could discuss about it later).fieldsandrecordto the callback (the function defined by the user).loadis not a functionfields)Almost all lines of code are covered (90.3%, not sure why it's not 100%).
I suggest reviewing code by opening
src/routes/actions.jsrather than reading the diff.Pull Request checklist:
Tests