Skip to content

Conversation

@ben-beauhurst
Copy link
Contributor

@ben-beauhurst ben-beauhurst commented Jul 11, 2025

Changes

  • Added a setting LINKCHECK_PROXIES so that proxies can be passed to the requests
  • Added another setting LINKCHECK_TRUST_PROXY_SSL to give the option to turn off SSL verification
  • Added a test
  • In utils.py changed an instance of linklist["object"].id to linklist["object"].pk so that this is able to work with models whose PK is not id
  • Added environment option LINKCHECK_SKIP_TRANSLATIONS to skip compilation of translation files when they are not needed.
  • Added a check for instance._state.adding to instance_pre_save as checking not instance.pk is insufficient. In cases involving concrete model inheritance it can have a PK set but not be saved in the DB yet, which will call this to fail.

ben-beauhurst and others added 15 commits July 8, 2025 10:32
Added environment option to skip compilation of translation files.
…king not instance.pk is insufficient. It can have a PK but not be saved in the DB yet, which will call this to fail.
Handle case where an instance has a PK but isn't saved yet.
Was raising a `RuntimeWarning: DateTimeField Url.last_checked received a naive datetime ... while time zone support is active.`
Since we're using sqlite as the test db backend,
we can't effectively test the `Url` objects being saved in the `ThreadPoolExecutor` futures,
but there's enough test coverage that under the hood `Url.check_url` is doing the right thing
check_links: add concurrent version to speed up the `check_links` task
@claudep
Copy link
Contributor

claudep commented Sep 11, 2025

Thanks for the various fixes, but please create one pull request per concern, so we can properly review each improvement/fix separately.

@ben-beauhurst
Copy link
Contributor Author

Thanks for the various fixes, but please create one pull request per concern, so we can properly review each improvement/fix separately.

Yes, will do.

@claudep
Copy link
Contributor

claudep commented Sep 15, 2025

Great, I will try to find some time to review soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants