Skip to content
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

Fix null values in waiting series #1323

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

owi92
Copy link
Member

@owi92 owi92 commented Jan 24, 2025

In a4bff75 I added read and write roles to the series API, but forgot to explicitly insert them when a new "waiting" series was created. This meant they were added as null values, leading to deserialization issues when trying to use the Series::create function. This fix explicitly adds them in said function as empty arrays.

Edit: Turns out I just needed to allow null values by adding them as Option<role> instead.

@owi92 owi92 added the changelog:nope Not worth mentioning in the changelog label Jan 24, 2025
@github-actions github-actions bot temporarily deployed to test-deployment-pr1323 January 24, 2025 15:49 Destroyed
@owi92 owi92 force-pushed the waiting-series-fix branch from d70fc26 to b395111 Compare January 27, 2025 10:27
@github-actions github-actions bot temporarily deployed to test-deployment-pr1323 January 27, 2025 10:30 Destroyed
@owi92 owi92 force-pushed the waiting-series-fix branch 2 times, most recently from d88ddcd to c2b8e18 Compare January 27, 2025 10:48
@github-actions github-actions bot temporarily deployed to test-deployment-pr1323 January 27, 2025 10:51 Destroyed
@owi92 owi92 force-pushed the waiting-series-fix branch from c2b8e18 to d48fded Compare January 27, 2025 14:07
@github-actions github-actions bot temporarily deployed to test-deployment-pr1323 January 27, 2025 14:10 Destroyed
In #a4bff75a314d04e85f7cd977076550a6dfa5373d I added
read- and write-roles to the series API, but didn't
allow `null` values. This lead to deserialization
errors when creating waiting series.

This fix adds the roles as empty arrays.
@owi92 owi92 force-pushed the waiting-series-fix branch from d48fded to caafabf Compare January 27, 2025 14:26
@github-actions github-actions bot temporarily deployed to test-deployment-pr1323 January 27, 2025 14:29 Destroyed
@github-actions github-actions bot temporarily deployed to test-deployment-pr1323 January 27, 2025 14:31 Destroyed
@LukasKalbertodt LukasKalbertodt merged commit 6e1ed19 into elan-ev:next Jan 27, 2025
4 checks passed
@owi92 owi92 deleted the waiting-series-fix branch January 27, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:nope Not worth mentioning in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants