I have a need to extend Computed Field with 2 new columns: "Logic" (where I store a serialized array of the steps in the calculation of the computed value) and Timestamp (where I track the timestamp of the computed field, separately from $node->changed, for saving-in-place updating.)
I'm not sure if this is of general interest to the module's users or maintainers, but I thought I'd share the code I've written so far (modifying computed_field), and see if anyone else has a use for this. So far it adds checkboxes to toggle logic and timestamp, creates the columns, and saves the data. The next step will be integrating the new columns properly with Views, so I can run a report showing the computed values, times they were computed (with filtering), and the logic.
The patch is rolled from the latest 6.x-dev release.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

thebuckst0p’s picture

New patch --
* Added a views field handler for the new serialized Logic field
* Moved most of the modifications to a computed_field_extra submodule.
Unfortunately, due to problems with drupal_alter'ing the 'database columns' op (discussed here), some of the modifications still have to be in the main module to work (unless I make a separate table for the new columns, which seems like a waste of a JOIN.
It still needs a Views handler (field and maybe filter) for the timestamp column.

As mentioned before, I'm not necessarily requesting that this be considered for committing into the main module -- I'm just curious if anyone else is interested in this, and want to share it (and get collaboration/feedback) if so.

thebuckst0p’s picture

Final working draft of the patch, fixed some bugs from the previous one.

mmjvb’s picture

Issue summary: View changes
Status: Active » Closed (outdated)