Skip to content

chore: prevent null loading sync settings #17430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2025

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Apr 16, 2025

Nulls passed to the frontend caused a page to fail to load.

Record<string,string> can be nil in golang 😢

Screenshot From 2025-04-16 15-40-44

Nulls passed to the frontend cause errors
@Emyrk Emyrk changed the title chore: when saving sync settings, prevent nil chore: prevent null loading sync settings Apr 16, 2025
@Emyrk Emyrk requested a review from aslilac April 16, 2025 17:37
@Emyrk
Copy link
Member Author

Emyrk commented Apr 16, 2025

I am going to make guts handle these types more accurately

@stirby
Copy link
Collaborator

stirby commented Apr 16, 2025

/cherry-pick release/2.21

@aslilac
Copy link
Member

aslilac commented Apr 16, 2025

I love it when my Record<string, string> is actually secretly a Record<string, string> | null

@Emyrk
Copy link
Member Author

Emyrk commented Apr 16, 2025

I love it when my Record<string, string> is actually secretly a Record<string, string> | null

I have a change to guts to do that. Hoping there's not too many UI changes...

@Emyrk Emyrk merged commit c4d3dd2 into main Apr 16, 2025
42 checks passed
@Emyrk Emyrk deleted the stevenmasley/org_sync_settings_not_null branch April 16, 2025 19:39
gcp-cherry-pick-bot bot pushed a commit that referenced this pull request Apr 16, 2025
Nulls passed to the frontend caused a page to fail to load.

`Record<string,string>` can be `nil` in golang
@github-actions github-actions bot locked and limited conversation to collaborators Apr 16, 2025
@matifali
Copy link
Member

/cherry-pick release/2.20

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants