Skip to content

Conversation

jimchamp
Copy link
Collaborator

@jimchamp jimchamp commented Oct 6, 2025

Follows #11310

Fixes failing web.ctx.site.save() calls in legacy preference updater script by setting a default IP address. When no IP address is set, inserts into the transaction table fail.

Now, when the script is being initialized, 127.0.0.1 is set by default. A similar thing was done in update_stale_ocaid_references.py, here.

Technical

Testing

Screenshot

Stakeholders

@Copilot Copilot AI review requested due to automatic review settings October 6, 2025 22:53
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes failing database transaction inserts in the legacy preference updater script by ensuring a default IP address is set. The issue occurred when web.ctx.site.save() calls failed due to missing IP addresses required for transaction table inserts.

  • Added default IP address initialization to prevent transaction table insert failures
  • Applied the same pattern used in update_stale_ocaid_references.py for consistency

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@mekarpeles mekarpeles self-assigned this Oct 7, 2025
@mekarpeles mekarpeles merged commit 6e69753 into master Oct 7, 2025
8 checks passed
@jimchamp jimchamp deleted the fix-pref-update-script branch October 9, 2025 16:56
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.

2 participants