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

Kaavasuositukset kaavakohteille #118

Merged
merged 6 commits into from
Jan 22, 2025
Merged

Kaavasuositukset kaavakohteille #118

merged 6 commits into from
Jan 22, 2025

Conversation

nmaarnio
Copy link
Collaborator

Based on PR #112

@nmaarnio nmaarnio linked an issue Jan 21, 2025 that may be closed by this pull request
@nmaarnio nmaarnio added the enhancement New feature or request label Jan 21, 2025
Copy link
Contributor

@LKajan LKajan left a comment

Choose a reason for hiding this comment

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

Yksi ehkä kriittinen kommentti olisi, että tallentuuko muokattaessa kantaan koskemattomista kaavamääräysryhmistä aina uusi assosiaatio?
Yksi keino noiden kaavamääräysryhmien assiosiaatioiden hallintaan voisi olla, että kaavamääräysryhmämodeliin lisäisi esim. association_status-attribuutin ja se voisi olla existing, new, deleted. Widgetissä ei tietenkään näytettäisi modeleita, joilla tuo on deleted. Sitten kohteen kaavamääräysryhmät voisi loopata ja poistaa assosiaatiot, joilla status deleted ja luoda ne joilla new. Ja jättää huomioimatta existing. Muuten pitää jotenkin etsiä kannasta ne jotka jo olemassa ja jotka poistuneet (kuten nyt oot tehnytkin get_dangling_associations).

Copy link
Contributor

@LKajan LKajan left a comment

Choose a reason for hiding this comment

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

Enpä huomannut, että tarkistus onko kohde jo olemassa tehdään tuolla feature_from()ssa. Ehkä selkeämpi olisi tarkistaa asia sen ulkopuolella?

@nmaarnio nmaarnio force-pushed the 113-kaavasuositukset branch 2 times, most recently from c4dddd9 to b3c12f3 Compare January 21, 2025 14:15
- add plan proposition model
- add widget for plan proposition
- handle saving and loading plan propositions for plan regulation groups
- add possibility to define plan propositions for custom plan regulation groups
- add PlanThemeLayer code layer model
- remove spacer and horizontal line layout items from plan regulation widget
- use LANGUAGE constant, defined in misc_utils for now
- add AdditionalInformationTypeLayer and define get_additional_information_name for it
- add get_attribute_value_by_another_attribute_value for AbstractLayer
@nmaarnio nmaarnio force-pushed the 113-kaavasuositukset branch from b3c12f3 to 484c8f5 Compare January 22, 2025 09:20
@nmaarnio nmaarnio merged commit a2cca41 into main Jan 22, 2025
7 checks passed
@nmaarnio nmaarnio deleted the 113-kaavasuositukset branch January 22, 2025 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kaavasuositukset kaavakohteille
2 participants