Custom Fields: Harden implementation #194

Closed
opened 2025-11-10 15:04:44 +01:00 by simon · 0 comments
Owner

Description

We agreed on hardening the implementation. This includes:

  • renaming the resources
  • adding validations - make sure the value matches the type before saving for the existing types :string, :integer, :boolean, :date, :email, provide error messages and proof via tests
  • make sure a member can only have one of each custom_field -> test!
  • make sure all custom_fields can be optional/empty (also mail!) -> test!
  • make sure custom_fields are also translated in the UI -> test!
  • add maximum for Custom Field names, e.g. 100 chars
  • add maximum for Custom Field values, e.g. 10k chars for strings
  • adding tests for the current basic implementation
  • add database seeds for the existing custom fields

Acceptance criteria

  • renamed property to custom_field_value
  • renamed property_type to custom_field
  • updated documentation and ERM where needed
  • hardened implementation according to description
  • added tests
## Description We agreed on hardening the implementation. This includes: - renaming the resources - adding validations - make sure the value matches the type before saving for the existing types `:string`, `:integer`, `:boolean`, `:date`, `:email`, provide error messages and proof via tests - make sure a member can only have one of each `custom_field` -> test! - make sure all custom_fields can be optional/empty (also mail!) -> test! - make sure custom_fields are also translated in the UI -> test! - add maximum for Custom Field names, e.g. 100 chars - add maximum for Custom Field values, e.g. 10k chars for strings - adding tests for the current basic implementation - add database seeds for the existing custom fields ## Acceptance criteria - [x] renamed `property` to `custom_field_value` - [x] renamed `property_type` to `custom_field` - [x] updated documentation and ERM where needed - [x] hardened implementation according to description - [x] added tests
simon added this to the I can add custom fields milestone 2025-11-10 15:04:44 +01:00
simon added the
S
label 2025-11-10 15:04:44 +01:00
simon added this to the Sprint 8 - 23.10 - 20.11 project 2025-11-10 15:05:26 +01:00
simon changed title from Rename property and property_type to custom fields to Custom Fields: Harden implementation 2025-11-10 15:26:30 +01:00
simon added
M
and removed
S
labels 2025-11-10 15:48:20 +01:00
simon added a new dependency 2025-11-10 16:03:43 +01:00
simon added a new dependency 2025-11-10 16:53:49 +01:00
moritz self-assigned this 2025-11-13 16:37:32 +01:00
carla closed this issue 2025-11-17 17:01:33 +01:00
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: local-it/mitgliederverwaltung#194
No description provided.