Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
CivicActions is reviewing and upgrading multiple modules for use on client sites. Part of this work is a coding standards review using coder. I realize the code is still in development for Drupal 6, but attached are three patches which may be of use. None of the issues "fixed" are bugs per se, though some of the ones in the "panels_upgradeD6.patch" file might be.
Cheers,
Stella
Comment | File | Size | Author |
---|---|---|---|
panels_sql.patch | 5.04 KB | stella | |
panels_upgradeD6_minor_0.patch | 6.66 KB | stella | |
panels_upgradeD6.patch | 3.14 KB | stella | |
Comments
Comment #1
catchI reviewed all three patches visually and did a short clickaround test to ensure no accidental breakage. Like Stella says they aren't major issues, but fwiw I think they're rtbc for the changes made.
Comment #2
sdboyer CreditAttribution: sdboyer commentedI'll look at these during my Panels time this weekend. The parts pertaining to the the form contexts may or may not be included, simply because there's a decent bit of re-thinking that needs to be done with those regardless. I'm also not sure why the query in the sql patch was split into two - I actually find that approach LESS understandable, as it underemphasizes the difference between the two queries. That is, you have to grok the whole thing instead of seeing the parts that are actually different broken out explicitly.
But yeah. I'll fully review this weekend.
Comment #3
stella CreditAttribution: stella commentedFair enough point about sql patch - probably a matter of style. However I would still encourage you to adopt the changes in that patch which make use of the new D6
db_placeholders()
function.Comment #4
sdboyer CreditAttribution: sdboyer commentedOK, these have been committed, sans the changes from #2. The form-related stuff in the contexts is likely to be changed again before a new version is released, though.
Also, in future - just one patchfile with all the changes, please. If the content of the patch is really different enough to justify different patchfiles, then open separate issues for each.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.