Skip to content

Conversation

@dkotter
Copy link
Collaborator

@dkotter dkotter commented Oct 23, 2025

Description of the Change

Coming out of some changes we made to show a more thorough message around impacts of caching, ran into an issue where IP addresses weren't saving properly on the network settings screen.

Looking into it, the issue was a call to the get_ips method, as this will always pull settings from the site level, not network level.

Now we could update that method to work properly in both situations but in looking at how we were using this method, it seems we use the output of this to decide if we show a more robust caching message, i.e. if someone has IP addresses they've unrestricted, we then show a more robust message.

Unless I'm missing something here, seems fine to show that message to all users, whether they have IP addresses allowed or not. That fixes the problem here and I don't think there's any downside to showing that extra messaging, though I'm open to feedback here.

How to test the Change

  1. Network activate RSA
  2. Go to the network settings screen and ensure you can add IP addresses, save those and have those persist after a refresh
  3. Activate RSA only on the site-level
  4. Test the same but at the site-level instead of network level, ensuring things save properly

Changelog Entry

Fixed - Ensure IP addresses can be saved properly at the network level

Credits

Props @dkotter

Checklist:

…d cache message to everyone, not just those that have unrestricted IP addresses set. This fixes an issue where IP addresses couldn't be saved properly on the network page
@dkotter dkotter added this to the 7.6.0 milestone Oct 23, 2025
@dkotter dkotter self-assigned this Oct 23, 2025
@dkotter dkotter requested a review from jeffpaul as a code owner October 23, 2025 17:57
@dkotter dkotter requested review from peterwilsoncc and removed request for jeffpaul October 23, 2025 17:57
@github-actions github-actions bot added the needs:code-review This requires code review. label Oct 23, 2025
Copy link
Contributor

@peterwilsoncc peterwilsoncc left a comment

Choose a reason for hiding this comment

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

Thanks for catching this, this looks good to me and tests well.

@jeffpaul jeffpaul merged commit ca97483 into develop Oct 24, 2025
15 checks passed
@jeffpaul jeffpaul deleted the fix/network-ip-saving branch October 24, 2025 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:code-review This requires code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants