Problem/Motivation
The "fail count" for links is still going up, despite having set "test link" for those links to FALSE.
Steps to reproduce
- Add a node with a link in the body. Make the link redirect or an invalid link.
- Configure link checker to run with cron.
- Run cron's link checker process
- The link will fail
- Visit the "broken links" report, edit the link, and uncheck "Check link status". Save.
- Run cron's link checker process
- The link will fail again, making the fail count go up (as seen in the broken links report).
Proposed resolution
See MR !64.
Note that MR !63 is closed, and the "Not currently mergeable." result is for that MR, which was pointing at the wrong branch.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | linkchecker-3386764-m64.patch | 3.79 KB | solideogloria |
Issue fork linkchecker-3386764
Show commands
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
solideogloria commentedComment #6
solideogloria commentedEverything is backwards compatible. Queued links will no longer be checked if unpublished, and unpublished links will not be queued anymore. Links tested manually with
->check()will still be checked, even if unpublished. The function returns a Promise, and returning early would break BC and require more changes.I created a test for this fix. There is a failing test related to a "Save" button when I run them locally, but it's also failing on dev, and it's not related to these changes.
Also, could a maintainer please set 2.0.x as the default branch? (I accidentally created MR 63 because the older branch is still the default for some reason.)
Comment #9
solideogloria commentedComment #10
solideogloria commentedComment #11
solideogloria commentedHere's a patch of the changes.
Comment #12
solideogloria commentedComment #13
joelpittetI echo what @solideogloria said in #6 about the default branch but you can change it retroactively.
Anyways this looks great and is what I'd expect it to be doing, it's ready to be committed.
Comment #16
eiriksmAwesome 👍♥️
Comment #17
eiriksmI think I managed to change the default branch now as well ✌️