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.
Part of meta-issue #1310084: [meta] API documentation cleanup sprint
Comment | File | Size | Author |
---|---|---|---|
#32 | syslog-docu-366152-31.patch | 1.08 KB | kid_icarus |
#30 | syslog-docu-366152-30.patch | 1.09 KB | kid_icarus |
#26 | syslog-docu-366152-26.patch | 1.08 KB | kid_icarus |
#24 | syslog-docu-366152-24.patch | 1.07 KB | kid_icarus |
#14 | syslog-docu-366152-16.patch | 627 bytes | oriol_e9g |
Comments
Comment #1
agentrickardAnd the patch, which clarifies the constants defined by the module. All else is fine.
Comment #3
agentrickard#1: 1368872-syslog-api-cleanup.patch queued for re-testing.
Comment #4
jhodgdonHuh. Will that actually work in the API module as documentation for that DEFINE? I kind of doubt it. We should test that before committing this patch. Probably the docblock would need to be inside the if() statement... I can test this later.
Also, when linking to function docs on php.net, we try to use a non-language URL (/en/ should not be in the URL). Check other examples in Drupal core.
Amazing that the syslog module wouldn't need any other fixes!
Comment #5
agentrickardSo do you want the IF test checked or are we passing on that until later?
Comment #6
jhodgdonUm... I am not sure what you're asking? I'm just saying that the doc block for the define() needs to be, I believe, directly before the define() line, not before the if() block.
Comment #7
agentrickardOK. Got it. But does it need to go before both instances or just the first one?
Comment #8
jhodgdonAh [finally looked at the code, not just the patch].
I guess both of them should have docblocks, within the if/else respectively. I guess we should also still see if the API module will recognize them inside or outside the ifs.
Comment #9
agentrickardI suspect API module will choke, since its the same variable each time.
Comment #10
jhodgdonYes, you're right. The API module allows for multiple "objects" (functions, defines, classes, etc.) to have the same name within the same project, but only one per file (the URL is composed of project / file / object name).
So let's just document it on one (inside the if() I think?), but document what it does for Windows and non-Windows in the same docblock.
Comment #11
agentrickardRevised.
Comment #12
jhodgdonThat looks quite reasonable to me, thanks!
Comment #13
catchLooks good to me, committed/pushed to 8.x. I think we could backport this.
Comment #14
oriol_e9gD7 patch.
Comment #15
jhodgdonSame patch; definitely needs port. Thanks!
Comment #16
Dave ReidYIKES. The commit to 8.x accidentally included the patch from #375397: Make Node module optional but we're handling the rollback in that issue.
Comment #17
xjmThis will need to be reapplied for D8 (see #375397-125: Make Node module optional). ;)
Comment #18
sunCommit of #11 had to be reverted:
http://drupalcode.org/project/drupal.git/commit/256a10dd192cab26c5c919b4...
One more time, please! :)
Comment #19
Dave ReidWas reverted in 8.x. Needs to have ONLY the patch in #11 committed to 8.x.
Comment #20
catchLet's try that again. Committed/pushed to 8.x.
Comment #21
webchickCommitted and pushed to 7.x. Thanks!
Comment #22
xjmYay, no sneak API changes this time! ;)
Reopening for some minor followup--
syslog_facility_list()
has a wrong verb tense, as doesSyslogTestCase::testSettings()
, andSyslogTestCase
is missing a docblock entirely.Comment #23
jhodgdonI don't think agentrickard has worked on this for a while, so unassigning. Also tagging.
Comment #24
kid_icarus CreditAttribution: kid_icarus commentedAddresses #22. Changed verb tense and added a docblock to
SyslogTestCase
Comment #25
xjmThanks @kid_icarus! That looks good. One minor thing:
This summary should start with a verb as well.
Comment #26
kid_icarus CreditAttribution: kid_icarus commentedThe summary now starts with a verb :) I chose "Represents", as I think that's an accurate verb for a class description.
Comment #27
kid_icarus CreditAttribution: kid_icarus commentedComment #28
jhodgdonHm. I would agree with you in Java, but I'm not sure this class really "represents" anything -- it's just a collection of test functions.
Perhaps following the model on other test classes in Drupal Core would be more sensible? Such as:
Comment #29
jhodgdonAnd otherwise, this patch looks fine! I checked and nothing else but these few changes needs to have docs fixes. Of course, the module only has about 25 functions all together. :)
Comment #30
kid_icarus CreditAttribution: kid_icarus commentedYeah, you're right on the class not representing anything :) I was influenced by http://drupal.org/node/1354#classes in that decision.
Comment #31
kid_icarus CreditAttribution: kid_icarus commentedComment #32
kid_icarus CreditAttribution: kid_icarus commentedD'oh, I misspelled functionality as "functionalality".
Comment #33
jhodgdonThanks! Patch in #32 committed to 8.x and 7.x. I think we are officially done cleaning up syslog. :)