Closed (fixed)
Project:
Gift Aid management
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2025 at 16:32 UTC
Updated:
25 Nov 2025 at 18:34 UTC
Jump to comment: Most recent
I'm not sure that the calculated field Declaration:status is going to work. The value depends on the date, so it would break any caching.
Options
Also the internal values are printed - we need translated UI text instead.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
adamps commentedComment #3
adamps commentedComment #4
adamps commentedComment #5
adamps commentedThis is presumably a beta-blocker, so I'll comment on it to bump it up the list.
Comment #7
jonathanshawI suggest we remove all code related to declaration status for now. I'm not clear enough what problem this is trying to solve, to know what constraints the solution needs to obey. I suspect that when actual problems emerge that need something like this, the solution(s) we end up with might be quite different.
The code we can remove is:
Declaration::statusOptions()
Declaration status field
DeclarationInterface status constants
Drupal\gift_aid\Plugin\Field\DeclarationStatusItemList
Comment #8
adamps commentedWe are using the status in several places. However AFAICS we don't anywhere rely on it being a field. Here's a MR that tests removing the field but keeping the functions.
Comment #10
adamps commentedComment #11
adamps commented