-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add column created_date to action_schedule #19068
Conversation
(Standard links)
|
well it passed tests @eileenmcnaughton and I'm not really sure as Monish was the one working on this task rather than I |
@seamuslee001 yeah - I just don't know if it should be merged as per above I'm not sure the column being added is right |
So functionally, my sense is that we want the field to be defaulted to now() when record is created. I don't see any use case for editing this field. There is a weak case for needing to see the value in case of errors, but really it is only needed by developers during debugging. So I would say 1) do not expose the field. |
a8ca355
to
f97a8ac
Compare
@seamuslee001 as discussed I've updated this to add the effective_start_date and effective_end_date to set the valid range. However, in the end I didn't remove created_date but rather added modified_date. My thinking was simply that we are seeing increasing requests for these fields on various tables & should probably treat them as a good thing to add while we are at it |
@eileenmcnaughton the style cop wants a word https://test.civicrm.org/job/CiviCRM-Core-PR/38350/checkstyleResult/new/ |
This is as it was agreed in the product maintenance meeting |
0cee9c1
to
6e8a980
Compare
test this please |
PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 276574758 bytes) in phar:///home/jenkins/bknix-dfl/extern/phpunit7 |
test this please |
Jenkins re test this please |
…on schedule table
Since we expect these to be managed by mysql to some extent they seem best ignored
6e8a980
to
30afdf4
Compare
Overview
The additional field part of #18298
Before
No created date column
After
Column created
Technical Details
@seamuslee001 @monishdeb @JoeMurray I decided to try to peel off the field creation part of #18298 as the PR seems to be fully review ready but has failed to attract review & now is stale so getting the field merged seemed like it would help.
However, in the process I started to question whether the field is correct. The field is a created_date & has a now timestamp default - but it is also exposed, unlike any other create_date field. It allows manipulation in order to allow people to treat it as an effective date.
My feeling is that it should either be
Looking at the larger PR I suspect that it might be easier to get through review with 2 as the risk of unintended consequences is lower I would imagine
Comments
I think this will fail on tests but per technical details I'm unsure that it is the correct field as stands