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

Generoidaan vahvat ID-tyypit fronttiin, osa 1 #6077

Merged
merged 36 commits into from
Dec 11, 2024
Merged

Generoidaan vahvat ID-tyypit fronttiin, osa 1 #6077

merged 36 commits into from
Dec 11, 2024

Conversation

akheron
Copy link
Contributor

@akheron akheron commented Dec 3, 2024

Generoidaan kaikki ID-tyypit fronttiin. Transitiovaiheessa osa tyypeistä generoidaan string-aliaksiksi, ja osa vahvoiksi tyypeiksi.

Vahva tyypitys perustuu "branded types" -tekniikkaan, jolloin ajon aikaisesti käsitellään stringejä, mutta tyyppitasolla eri ID:t eivät ole yhteensopivia keskenään.

ID-tyyppejä on yhteensä 82 ja tämän PR:n jälkeen niistä 32 (~39 %) on vahvasti tyypitettyjä ja loput string-aliaksia.

@akheron akheron changed the base branch from master to codegen-partials December 3, 2024 11:32
Base automatically changed from codegen-partials to master December 4, 2024 05:22
@akheron akheron changed the title Codegen ids Generoidaan vahvat ID-tyypit Dec 4, 2024
@akheron akheron added the tech Tekninen muutos, esim. refaktorointi label Dec 4, 2024
@akheron akheron changed the title Generoidaan vahvat ID-tyypit Generoidaan vahvat ID-tyypit fronttiin Dec 4, 2024
@akheron akheron force-pushed the codegen-ids branch 6 times, most recently from 496aa30 to e9580ea Compare December 10, 2024 06:22
@akheron akheron marked this pull request as ready for review December 10, 2024 06:55
@akheron akheron merged commit 934b7bd into master Dec 11, 2024
30 checks passed
@akheron akheron deleted the codegen-ids branch December 11, 2024 07:51
@akheron akheron changed the title Generoidaan vahvat ID-tyypit fronttiin Generoidaan vahvat ID-tyypit fronttiin, osa 1 Dec 11, 2024
Copy link

sentry-io bot commented Dec 12, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ TypeError: Cannot read properties of undefined (reading 'map') renderMissingGroupPlacementRow(components/unit/... View Issue
  • ‼️ Error: Invalid UUID: 2e006098-7papunet88e-11e9-bffc-4b4d3ba974f9 fromUuid(lib-common/id-type) View Issue

Did you find this useful? React with a 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech Tekninen muutos, esim. refaktorointi
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants