Old pseudo-versioned plans need to be migrated to new system
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
Research direction
Start by locating the persistence code for plans and plan_version, then trace how plans are associated with an agreement and how canonical_id is stored. Define the one-off migration around the existing records described in the issue; it is done when related plans share the intended canonical_id and the required plan_version rows exist after a safe production run.
Written by the indexing model from the issue text.
Description
The previous "versioning" that was done created multiple plans for an agreement. These records should be updated to all have the same canonical_id value (most likely set to the id of the latest plan), and related plan_version rows created. Preferably, this will be some kind of script that we will run once after merging the versioning changes into prod.
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bcgov/range-api
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
-
Renew MyRange SSL certificate (expires Apr 14, 2027)Possibly taken @brijesh-amin claimed this 6 days ago. Open
-
#523 - Reduce any usage in db2 model/query layerMay be free again @brijesh-amin claimed this 79 days ago, and no pull request is open. Open
-
#523 - TypeScript hardening for runtime-critical pathMay be free again @brijesh-amin claimed this 79 days ago, and no pull request is open. Open
-
#523 - Centralize and type environment configurationMay be free again @brijesh-amin claimed this 79 days ago, and no pull request is open. Open
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr impact:session-state issue-rating: 🌊 off-meta tidepool P2
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
openclaw/openclaw#165245 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
agent-canvas bug priority:low ready-for-dev
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
🐛 bug
Difficulty 2/5 1-3 hours Newbie friendliness 61/100
spicetify/marketplace#1262 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 Half a day Newbie friendliness 68/100
Maintainers usually reply within 1 day