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

Update to Matrix v1.7 #669

Merged
merged 4 commits into from Jun 6, 2023
Merged

Update to Matrix v1.7 #669

merged 4 commits into from Jun 6, 2023

Conversation

KitsuneRal
Copy link
Member

As a part of 0.8 beta preparation, I pulled almost-freshest matrix-spec; routinely applying the changes broke the build, revealing the problem with default field values - unlike constructor arguments, fields never had default values. Fixing that required a small change in GTAD, and since the order in some structures has changed, code that list-initialises them may break as a consequence (I don't think we have any, across the two clients but I might've missed something).

Default values for fields, unlike parameters passed to constructors,
were completely missing before. This commit introduces initializers
to non-omittable fields, and uses fillFromJson() instead of fromJson()
to preserve those defaults when nothing is found in JSON instead.

GTAD 0.9 is needed to generate structures with required fields first,
optional after.
@KitsuneRal KitsuneRal added the enhancement A feature or change request for the library label Jun 6, 2023
@KitsuneRal KitsuneRal added this to In work in libQuotient 1 via automation Jun 6, 2023
@sonarcloud
Copy link

sonarcloud bot commented Jun 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 19 Code Smells

15.5% 15.5% Coverage
0.0% 0.0% Duplication

Looks like it's misplaced in the original matrix-spec repo.
@KitsuneRal KitsuneRal merged commit 896f250 into dev Jun 6, 2023
16 checks passed
libQuotient 1 automation moved this from In work to 0.8 - Done Jun 6, 2023
@KitsuneRal KitsuneRal deleted the kitsune/update-to-matrix-1.7 branch June 6, 2023 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A feature or change request for the library
Projects
libQuotient 1
  
0.8 - Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants