Skip to content

feat: IO-848 Add migration to backfill missing project types and type qualifiers for projects#429

Open
markohaarni wants to merge 1 commit intodevelopfrom
IO-848/bulk-update-migration-for-project-type
Open

feat: IO-848 Add migration to backfill missing project types and type qualifiers for projects#429
markohaarni wants to merge 1 commit intodevelopfrom
IO-848/bulk-update-migration-for-project-type

Conversation

@markohaarni
Copy link
Copy Markdown
Contributor

Project types and type qualifiers are backfilled based on project class and only if they do not exist on project.

https://helsinkisolutionoffice.atlassian.net/browse/IO-848

… qualifiers for projects

Project types and type qualifiers are backfilled based on project class
and only if they do not exist on project.
@sonarqubecloud
Copy link
Copy Markdown

SUFFIX_PATTERN = re.compile(
r",\s*(?:Kylkn|kylkn|Kaupunkiymparistolautakunnan|kaupunkiymparistolautakunnan|"
r"KHN|Khn|khn|Kaupunginhallituksen|kaupunginhallituksen)\s+kaytettavaksi"
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This pattern should be using finnish characters, like in ProjectClassSerializer.py

SUFFIX_PATTERN = re.compile(
    r',\s*(?:Kylkn|kylkn|Kaupunkiympäristölautakunnan|kaupunkiympäristölautakunnan|'
    r'KHN|Khn|khn|Kaupunginhallituksen|kaupunginhallituksen)\s+käytettäväksi'
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants