-
Notifications
You must be signed in to change notification settings - Fork 8
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(action result builder): allow user to set SA response headers #945
Conversation
@@ -105,6 +105,10 @@ export default class ActionRoute extends CollectionRoute { | |||
const data = ForestValueConverter.makeFormData(dataSource, rawData, fields); | |||
const result = await this.collection.execute(caller, this.actionName, data, filterForCaller); | |||
|
|||
if (result.responseHeaders) { | |||
context.response.set(result.responseHeaders); |
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.
💪
Code Climate has analyzed commit 9b8b3f6 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (98% is the threshold). This pull request will bring the total coverage in the repository to 97.3%. View more on Code Climate. |
## [1.6.81](https://github.com/ForestAdmin/agent-nodejs/compare/example@1.6.80...example@1.6.81) (2024-02-02) ### Features * **action result builder:** allow user to set SA response headers ([#945](#945)) ([ce37c01](ce37c01))
# [1.37.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/agent@1.36.20...@forestadmin/agent@1.37.0) (2024-02-02) ### Features * **action result builder:** allow user to set SA response headers ([#945](#945)) ([ce37c01](ce37c01))
# [1.42.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-customizer@1.41.1...@forestadmin/datasource-customizer@1.42.0) (2024-02-02) ### Bug Fixes * **schema:** force schema metadata update even in production ([#947](#947)) ([3ce68e0](3ce68e0)) ### Features * **action result builder:** allow user to set SA response headers ([#945](#945)) ([ce37c01](ce37c01))
## [1.1.2](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-dummy@1.1.1...@forestadmin/datasource-dummy@1.1.2) (2024-02-02) ### Bug Fixes * **schema:** force schema metadata update even in production ([#947](#947)) ([3ce68e0](3ce68e0)) ### Features * **action result builder:** allow user to set SA response headers ([#945](#945)) ([ce37c01](ce37c01))
## [1.6.2](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-mongoose@1.6.1...@forestadmin/datasource-mongoose@1.6.2) (2024-02-02) ### Bug Fixes * **schema:** force schema metadata update even in production ([#947](#947)) ([3ce68e0](3ce68e0)) ### Features * **action result builder:** allow user to set SA response headers ([#945](#945)) ([ce37c01](ce37c01))
🎉 This PR is included in version 1.0.73 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
## [1.0.62](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-replica@1.0.61...@forestadmin/datasource-replica@1.0.62) (2024-02-02) ### Bug Fixes * **schema:** force schema metadata update even in production ([#947](#947)) ([3ce68e0](3ce68e0)) ### Features * **action result builder:** allow user to set SA response headers ([#945](#945)) ([ce37c01](ce37c01))
## [1.6.2](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-sequelize@1.6.1...@forestadmin/datasource-sequelize@1.6.2) (2024-02-02) ### Bug Fixes * **schema:** force schema metadata update even in production ([#947](#947)) ([3ce68e0](3ce68e0)) ### Features * **action result builder:** allow user to set SA response headers ([#945](#945)) ([ce37c01](ce37c01))
🎉 This PR is included in version 1.6.81 🎉 The release is available on Your semantic-release bot 📦🚀 |
## [1.7.47](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-sql@1.7.46...@forestadmin/datasource-sql@1.7.47) (2024-02-02) ### Bug Fixes * **schema:** force schema metadata update even in production ([#947](#947)) ([3ce68e0](3ce68e0)) ### Features * **action result builder:** allow user to set SA response headers ([#945](#945)) ([ce37c01](ce37c01))
🎉 This PR is included in version 1.37.0 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
# [1.31.0](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-toolkit@1.30.1...@forestadmin/datasource-toolkit@1.31.0) (2024-02-02) ### Bug Fixes * **schema:** force schema metadata update even in production ([#947](#947)) ([3ce68e0](3ce68e0)) ### Features * **action result builder:** allow user to set SA response headers ([#945](#945)) ([ce37c01](ce37c01))
## [1.25.8](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/forestadmin-client@1.25.7...@forestadmin/forestadmin-client@1.25.8) (2024-02-02) ### Bug Fixes * **schema:** force schema metadata update even in production ([#947](#947)) ([3ce68e0](3ce68e0)) ### Features * **action result builder:** allow user to set SA response headers ([#945](#945)) ([ce37c01](ce37c01))
## [1.3.61](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/plugin-aws-s3@1.3.60...@forestadmin/plugin-aws-s3@1.3.61) (2024-02-02) ### Bug Fixes * **schema:** force schema metadata update even in production ([#947](#947)) ([3ce68e0](3ce68e0)) ### Features * **action result builder:** allow user to set SA response headers ([#945](#945)) ([ce37c01](ce37c01))
## [1.0.86](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/plugin-flattener@1.0.85...@forestadmin/plugin-flattener@1.0.86) (2024-02-02) ### Bug Fixes * **schema:** force schema metadata update even in production ([#947](#947)) ([3ce68e0](3ce68e0)) ### Features * **action result builder:** allow user to set SA response headers ([#945](#945)) ([ce37c01](ce37c01))
🎉 This PR is included in version 1.42.0 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.1.2 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.6.2 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.0.62 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.6.2 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.7.47 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.31.0 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.25.8 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.3.61 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.0.86 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
Definition of Done
General
Security