Skip to content

fix(connlib): Emit resources updated when display fields change#8286

Merged
jamilbk merged 3 commits into
mainfrom
fix/connlib-on-update
Feb 28, 2025
Merged

fix(connlib): Emit resources updated when display fields change#8286
jamilbk merged 3 commits into
mainfrom
fix/connlib-on-update

Conversation

@jamilbk

@jamilbk jamilbk commented Feb 27, 2025

Copy link
Copy Markdown
Member

Whenever a Resource's name, address_description, or assigned sites change, it is not currently reflected in clients. For that to happen the address is changed.

This PR updates that behavior so that if any display fields are changed, the on_update_resources callback is called which properly updates the resource list views in clients.

Fixes #8284

@vercel

vercel Bot commented Feb 27, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
firezone ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2025 0:54am

@jamilbk jamilbk force-pushed the fix/connlib-on-update branch from ba0b9e1 to c227ac3 Compare February 27, 2025 04:32
@jamilbk

jamilbk commented Feb 27, 2025

Copy link
Copy Markdown
Member Author

Tested on iOS/macOS by individually changing each of: sites, address, name, address_description - fixes the issue.

@thomaseizinger thomaseizinger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Left a suggestion to make the control-flow easier to reason about.

Comment thread rust/connlib/tunnel/src/client.rs Outdated
@jamilbk jamilbk added this pull request to the merge queue Feb 28, 2025
Merged via the queue into main with commit 1bd8051 Feb 28, 2025
@jamilbk jamilbk deleted the fix/connlib-on-update branch February 28, 2025 04:48
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.

connlib fails to send on_update_resource unless resource.address changes

2 participants