-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(smart-action): user can add dynamically field with hook on smart action form #717
Conversation
cd74053
to
5777599
Compare
1cb27ec
to
cc9a2a6
Compare
5777599
to
c75e86e
Compare
cc9a2a6
to
3d0857b
Compare
252e775
to
f7e2dd1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, apart from a few typos and tests structure.
We're almost there 🐨 🥇
try { | ||
smartActionFieldValidator.validateSmartActionFields(action, collection.name); | ||
} catch (error) { | ||
logger.error(error.message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've distinguish on the rails side warn (For invalid property that should still work) and error for things that might be broken. Maybe we should do the same here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want to do that i will do the work inside an another PR
63daef2
to
ce48f20
Compare
d09709c
to
c320ef3
Compare
ce48f20
to
9816936
Compare
c320ef3
to
737e5d6
Compare
… action form BREAKING CHANGE: change hook is no longer choosen by the field name, field need to have hook defined inside it definition by addin a props hook
737e5d6
to
81f27a7
Compare
# [9.0.0-beta.5](v9.0.0-beta.4...v9.0.0-beta.5) (2021-06-07) ### Features * **smart-action:** user can add dynamically field with hook on smart action form ([#717](#717)) ([910df2b](910df2b)) ### BREAKING CHANGES * **smart-action:** change hook is no longer choosen by the field name, field need to have hook defined inside it definition by addin a props hook
🎉 This PR is included in version 9.0.0-beta.5 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
# [9.0.0](v8.7.5...v9.0.0) (2021-07-19) ### Bug Fixes * handle composite primary key case when checking permissions for smart actions ([#756](#756)) ([30e8002](30e8002)) * **smart-action:** smart actions after trying to mitigate breaking change ([#754](#754)) ([c413992](c413992)) * remove breaking change on smart action middleware ([#739](#739)) ([b2a8f74](b2a8f74)) * update record getter usage in action route to use global scope ([#730](#730)) ([b92f158](b92f158)) ### Features * smart action hooks now have access to the http request ([#753](#753)) ([ea5cd59](ea5cd59)) * **security:** secure segments queries ([#747](#747)) ([23e8817](23e8817)) * **smart-action:** add changedField argument on hook function ([#716](#716)) ([709fe32](709fe32)) * **smart-action:** user can add dynamically field with hook on smart action form ([#717](#717)) ([910df2b](910df2b)) * feat(scopes)!: enforce scopes restrictions on a wider range of requests (#702) ([e36026e](e36026e)), closes [#702](#702) ### BREAKING CHANGES * record is no longer send to the hook midleware & values option on smart action is no longer supported * **smart-action:** change hook is no longer choosen by the field name, field need to have hook defined inside it definition by addin a props hook * **smart-action:** fields parameters on hook function is no longer a map of field, it is now an array. * the public API of the package has changed to include the parameters which are needed to evaluate scope filters. This includes PermissionMiddlewareCreator, all classes on the /exposed folder and most services.
🎉 This PR is included in version 9.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.5 to 2.8.9. **This update includes a security fix.** - [Release notes](https://github.com/npm/hosted-git-info/releases) - [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md) - [Commits](npm/hosted-git-info@v2.8.5...v2.8.9) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
## [8.0.14](ForestAdmin/forest-express-sequelize@v8.0.13...v8.0.14) (2021-08-25) ### Bug Fixes * **security:** patch hosted-git-info dependency vulnerability ([#717](ForestAdmin/forest-express-sequelize#717)) ([92ee9ed](ForestAdmin/forest-express-sequelize@92ee9ed))
BREAKING CHANGE: change hook is no longer choosen by the field name, field need to have hook defined inside it definition by adding a props hook
Pull Request checklist: