Skip to content

feat(decorator): add compute support#23

Merged
matthv merged 37 commits intobetafrom
feat/compute-decorator
Jan 24, 2024
Merged

feat(decorator): add compute support#23
matthv merged 37 commits intobetafrom
feat/compute-decorator

Conversation

@matthv
Copy link
Copy Markdown
Member

@matthv matthv commented Jan 23, 2024

This PR allows the user to create new fields on any collection.

Simply use the new add_field method on the customizer.

@matthv
Copy link
Copy Markdown
Member Author

matthv commented Jan 24, 2024

Copy link
Copy Markdown
Contributor

@nicolasalexandre9 nicolasalexandre9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Copy Markdown
Contributor

@nicolasalexandre9 nicolasalexandre9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@matthv matthv merged commit 3345fb4 into beta Jan 24, 2024
forest-bot added a commit that referenced this pull request Jan 24, 2024
# [1.0.0-beta.29](v1.0.0-beta.28...v1.0.0-beta.29) (2024-01-24)

### Features

* **decorator:** add compute support ([#23](#23)) ([3345fb4](3345fb4))
@forest-bot
Copy link
Copy Markdown
Member

🎉 This PR is included in version 1.0.0-beta.29 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@matthv matthv deleted the feat/compute-decorator branch January 24, 2024 13:07
forest-bot added a commit that referenced this pull request Sep 22, 2025
# 1.0.0 (2025-09-22)

### Bug Fixes

* load OpenIDConnect constant to prevent uninitialized error ([edf557a](edf557a))
* load OpenIDConnect constant to prevent uninitialized error ([#116](#116)) ([f7b0a5f](f7b0a5f))
* proper raise of OpenIDConnect Exceptions ([#112](#112)) ([81370ed](81370ed))
* reorder filter and grouping operations in QueryAggregate ([#119](#119)) ([65e76a1](65e76a1))
* replace ambiguous Error with ForestAdminAgent Error ([#117](#117)) ([6529ca0](6529ca0))
* **active_record:** introspection should not crash on an unconventional relation ([#66](#66)) ([976420a](976420a))
* **active_record:** return default string type and add log when field type is unknown ([#95](#95)) ([19db22a](19db22a))
* **charts:** properly format week of year ([#103](#103)) ([6774d27](6774d27))
* **collection:** add missing function enable_search and add_segments ([#91](#91)) ([58dc7e6](58dc7e6))
* **computed:** allow to use computed decorator with nested relations ([#62](#62)) ([b065d84](b065d84))
* **form:** remove type attribute from schema layout element ([#77](#77)) ([19e6b45](19e6b45))
* **introspection:** ignore models that do not have primary key  ([#64](#64)) ([49bbb97](49bbb97))
* **permission:** get approval conditions by role id  ([#82](#82)) ([bd4b3e7](bd4b3e7))
* **permissions:** properly check permissions when dissociating or deleting related resources ([#75](#75)) ([d0239de](d0239de))
* **polymorphic:** prevent update path when not rename polymorphic relation field ([#96](#96)) ([46d3251](46d3251))
* **publication:** log warning when relation field is unknown and return false ([#107](#107)) ([14adf3f](14adf3f))
* **relation:** add support of has_and_belongs_to_many relations ([#105](#105)) ([09eeca0](09eeca0))
* **relation:** support has_one through when through collection has 2 belongs_to ([#109](#109)) ([3bf698c](3bf698c))
* **search:** mark schema as dirty when search is disable or replace search is set ([#93](#93)) ([b5f4799](b5f4799))
* add safe navigation operator to get the inverse_of relation ([#97](#97)) ([bc17389](bc17389))
* allow replace_search to accept a block ([#102](#102)) ([6f2d35e](6f2d35e))
* ci ([0358208](0358208))
* ci deploy ([2f7653d](2f7653d))
* ci deploy agent_ruby ([#15](#15)) ([2ab162f](2ab162f))
* ci deploy multiple packages ([d790bab](d790bab))
* ci remove rubygems_mfa_required ([#14](#14)) ([848cdf9](848cdf9))
* comment out slack release ([9854f43](9854f43))
* decorators and toolkit for work with polymorphic relations ([#67](#67)) ([e95dd58](e95dd58))
* display custom success/error messages for actions ([#101](#101)) ([083c8e0](083c8e0))
* ensure correct values are returned for user tags in context variables ([#79](#79)) ([02eb548](02eb548))
* release on forest_admin_datasource_customizer package ([#61](#61)) ([10b8726](10b8726))
* workflow for coverage upload to codeclimate ([#99](#99)) ([ef38cd3](ef38cd3))
* **rename decorator:** properly map relation when renaming pk field  ([#85](#85)) ([cfb2d12](cfb2d12))
* **search:** collection is not always searchable ([#92](#92)) ([96824b7](96824b7))
* **security:** patch braces dependency vulnerabilities ([#56](#56)) ([699446e](699446e))
* **security:** patch cross-spawn dependency vulnerabilities ([#83](#83)) ([9fd5aeb](9fd5aeb))
* **security:** patch ip dependency vulnerabilities ([#28](#28)) ([6988f97](6988f97))
* **security:** patch micromatch dependency vulnerabilities ([#68](#68)) ([a0d5cf5](a0d5cf5))
* **security:** patch micromatch dependency vulnerabilities ([#84](#84)) ([fa5b38f](fa5b38f))
* add emulate_field_filtering missing method on customizer ([#49](#49)) ([41dfb0e](41dfb0e))
* ci deploy packages ([9541ba0](9541ba0))
* ci deploy packages to rubygems ([75b32f5](75b32f5))
* ci releaserc deploy packages ([e9402a4](e9402a4))
* ci setup credentials ([5a33f54](5a33f54))
* deploy packages on rubygems ([#13](#13)) ([ca07d9b](ca07d9b))
* gemspecs load packages from rubygems ([#60](#60)) ([8c3feaf](8c3feaf))
* polished after doc review ([#51](#51)) ([055a153](055a153))
* search behaviour  ([#55](#55)) ([e429c4c](e429c4c))
* unscoped active record query ([#65](#65)) ([c975334](c975334))
* **authentication:** return errors detail instead of generic error 500 ([#11](#11)) ([19f84e5](19f84e5))
* **security:** patch tar dependency vulnerabilities ([#40](#40)) ([86be2a7](86be2a7))
* **security:** patch tar dependency vulnerabilities ([#57](#57)) ([b86f396](b86f396))
* rubocop lint ([#38](#38)) ([48b658f](48b658f))

### Features

*  add customizer with decorator stack and empty-decorator ([#18](#18)) ([900effd](900effd))
*  add write decorator support ([#36](#36)) ([f052601](f052601))
* add all writing operations ([#9](#9)) ([3fd6a7a](3fd6a7a))
* add authentication  ([#3](#3)) ([ce369fd](ce369fd))
* add binary decorator support ([#42](#42)) ([0e03047](0e03047))
* add chart decorator support ([#37](#37)) ([c1fc0ac](c1fc0ac))
* add charts support ([#16](#16)) ([a8d609f](a8d609f))
* add export routes support ([#50](#50)) ([1377185](1377185))
* add export_limit_size support for csv ([#123](#123)) ([8712d35](8712d35))
* add forestadmin schema generate ([#4](#4)) ([329397b](329397b))
* add hook decorator support ([#39](#39)) ([1514aed](1514aed))
* add ipwhitelist support ([#7](#7)) ([680a17d](680a17d))
* add jsonapi serializer ([#5](#5)) ([3528191](3528191))
* add lazy join decorator to improve performance ([#89](#89)) ([3a17fd1](3a17fd1))
* add list and count api ([#6](#6)) ([19b5bd9](19b5bd9))
* add logs in dev mode ([#43](#43)) ([da941af](da941af))
* add mongoid datasource ([#111](#111)) ([b9b90cc](b9b90cc))
* add native driver support ([#54](#54)) ([aea9c32](aea9c32))
* add operator emulate support ([#31](#31)) ([fc6c7b5](fc6c7b5))
* add override decorator support ([#46](#46)) ([a581678](a581678))
* add package to provide test tools  ([#88](#88)) ([6e15882](6e15882))
* add pages in action forms ([#74](#74)) ([2a8a7f4](2a8a7f4))
* add permissions support ([#17](#17)) ([d7b14ca](d7b14ca))
* add polymorphic support ([#63](#63)) ([80566a5](80566a5))
* add publication decorator support ([#34](#34)) ([7550e10](7550e10))
* add related routes ([#12](#12)) ([78e5a04](78e5a04))
* add relation decorator support  ([#29](#29)) ([e181b5f](e181b5f))
* add rename collection decorator support ([#35](#35)) ([e0cad85](e0cad85))
* add rename field decorator support ([#33](#33)) ([1bcfd42](1bcfd42))
* add request ip to user context ([#80](#80)) ([08e4276](08e4276))
* add RPC datasource support ([#114](#114)) ([b87bd75](b87bd75))
* add schema decorator support ([#19](#19)) ([3548290](3548290))
* add scope invalidation endpoint ([#58](#58)) ([36a3aa7](36a3aa7))
* add segment decorator support ([#41](#41)) ([3b4e437](3b4e437))
* add sorting of models and fields in apimap ([#121](#121)) ([18b63e0](18b63e0))
* better error response formatting and logging ([#118](#118)) ([31c7a57](31c7a57))
* improve error handling ([#120](#120)) ([7952e95](7952e95))
* **action:** add action widgets support ([#53](#53)) ([51605b2](51605b2))
* **action:** add permission on action routes ([#27](#27)) ([c7361f7](c7361f7))
* **action_form:** add row layout customization ([#71](#71)) ([1dea61a](1dea61a))
* **caller:** add project and environment ([#81](#81)) ([59a98fa](59a98fa))
* **capabilities:** add native query support ([#86](#86)) ([88213ae](88213ae))
* **capabilities:** add new collections route ([#78](#78)) ([d868174](d868174))
* **decorator:** add action support ([#24](#24)) ([e586476](e586476))
* **decorator:** add operators equivalence support  ([#20](#20)) ([006c49a](006c49a))
* **decorator:** add search support ([#21](#21)) ([a71acc6](a71acc6))
* **engine:** improve setup agent ([#8](#8)) ([8fb5c29](8fb5c29))
* **form:** add description and submit button customization ([#72](#72)) ([a42ce7a](a42ce7a))
* **form:** add HtmlBlock layout element ([#70](#70)) ([0ba5669](0ba5669))
* **form:** add id in form fields ([#73](#73)) ([363d700](363d700))
* **form:** add separator layout element ([#69](#69)) ([5bfbd7a](5bfbd7a))
* **form:** add support of static form with layout elements ([#76](#76)) ([ecf5f1a](ecf5f1a))
* expose plugin to datasource-customizer ([#52](#52)) ([2d36337](2d36337))
* **plugin:** add new import field plugin ([#47](#47)) ([be7b575](be7b575))
* add sort decorator support ([#32](#32)) ([a5320fc](a5320fc))
* add validation support ([#30](#30)) ([a0e8092](a0e8092))
* added filters feature ([#10](#10)) ([9210563](9210563))
* support multi field sorting from frontend ([#44](#44)) ([eadde5d](eadde5d))
* **decorator:** add compute support ([#23](#23)) ([3345fb4](3345fb4))
* **serializer:** serialize hash instead of an active record object ([#22](#22)) ([70dea37](70dea37))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants