Skip to content

IO-740 & IO-789 Classify dotted POSIDs by last segment#431

Open
cyanidesayonara wants to merge 2 commits intodevelopfrom
IO-740-789
Open

IO-740 & IO-789 Classify dotted POSIDs by last segment#431
cyanidesayonara wants to merge 2 commits intodevelopfrom
IO-740-789

Conversation

@cyanidesayonara
Copy link
Copy Markdown
Contributor

@cyanidesayonara cyanidesayonara commented Apr 17, 2026

  • Dotted POSIDs (e.g. 2814I04749.03.01) now classify by the LAST non-empty segment instead of the first, so Karhusuontie's .03.01 bookings land in planning (leaf task 01) while .03.02 / .03.01.03 / .03.01.05 stay in construction
  • Add --force-refetch flag to fetchsapdatabyyear so frozen 2025 rows can be rewritten once after deploy (IO-790 freeze otherwise returns the stale DB row)

Deploy / post-merge steps

  1. Merge and let the pipeline roll out to prod as usual.
  2. Nightly sapsynchronizer will correctly re-classify 2026 data on the next run with no manual step.
  3. One-off repair for frozen 2025 rows:
    oc exec -- python manage.py fetchsapdatabyyear --year 2025 --force-refetch

Only needs to be run once, after deploy.

UAT checklist

After step 3 above, verify on the projects named in the tickets:

  • 2814I04749 Karhusuontie.03.01 bookings should now appear under planning (Suunnittelu), not construction.
  • 2814I00720 Valtimontie / Koskela — commitments should match SAP breakdown for 2025.
  • 2814I03976 Karamzininranta — 2025 planning total should match the SAP report, not show zero under planning.

* Dotted POSIDs (e.g. 2814I04749.03.01) now classify by the LAST non-empty
  segment instead of the first, so Karhusuontie's .03.01 bookings land in
  planning (leaf task 01) while .03.02 / .03.01.03 / .03.01.05 stay in
  construction
* Add --force-refetch flag to fetchsapdatabyyear so frozen 2025 rows can be
  rewritten once after deploy (IO-790 freeze otherwise returns the stale DB
  row)
* Restore subproject "000" fallback in concat branch
* Add regression tests for Karhusuontie (2814I04749),
  Valtimontie (2814I00720) and Karamzininranta (2814I03976) using the
  actual amounts from prod sync logs
* Add unit tests for --force-refetch
@sonarqubecloud
Copy link
Copy Markdown

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.

1 participant