Feature(s) impacted
Smart Fields
Observed behavior
Smart Field not available in fields list in forestadmin when created in backend.
But appears well in .forestadmin-schema
, {
"field": "name_admin",
"type": "String",
"default_value": null,
"enums": null,
"integration": null,
"is_filterable": false,
"is_read_only": true,
"is_required": false,
"is_sortable": false,
"is_virtual": true,
"reference": null,
"inverse_of": null,
"widget": null,
"validations": []
}
Expected behavior
Smart Field available in list
Context
Code of smart field
class Forest::BestPractice
include ForestLiana::Collection
collection :BestPractice
field :name_admin, type: 'String' do
"#{object.name} - #{object.organisation.name}"
end
end
in lib/forest_liana/collections/best_practice.rb
- Project name: Lakaa
- Team name: Lakaa
- Environment name: Production
- Agent type & version:
"liana": "forest-rails",
"liana_version": "7.7.0",
"stack": {
"database_type": "postgresql",
"orm_version": "7.0.4"
}
Thanks