Skip to content

Keep ordering of checklist items when copying from prototype#9007

Merged
carlobeltrame merged 1 commit intoecamp:develfrom
carlobeltrame:fix-checklist-order-after-copying-template
Feb 6, 2026
Merged

Keep ordering of checklist items when copying from prototype#9007
carlobeltrame merged 1 commit intoecamp:develfrom
carlobeltrame:fix-checklist-order-after-copying-template

Conversation

@carlobeltrame
Copy link
Copy Markdown
Member

Previously, we didn't copy the position attribute from ChecklistItem prototypes. If the items were created in order (and you were lucky), the DB would return the items in order during Checklist#copyFromPrototype. But if some of the items in the checklist prototype were created or reordered later, it was not guaranteed that the order of the copied checklist items matches the order of the prototype checklist items.

Since the numbering of the checklist items is quite important for PBS courses, this is a problem.

@carlobeltrame carlobeltrame added the deploy! Creates a feature branch deployment for this PR label Feb 6, 2026
@carlobeltrame carlobeltrame requested a review from a team February 6, 2026 08:20
@carlobeltrame carlobeltrame temporarily deployed to feature-branch February 6, 2026 08:23 — with GitHub Actions Inactive
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 6, 2026

Feature branch deployment ready!

Name Link
😎 Deployment https://pr9007.ecamp3.ch/
🔑 Login test@example.com / test
🕒 Last deployed at Fri Feb 06 2026 10:32:24 GMT+0100
🔨 Latest commit 235d7574bf793870dd6f61a507966b42204a339b
🔍 Latest deploy log https://github.com/ecamp/ecamp3/actions/runs/21745589337/job/62730769849
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

@carlobeltrame carlobeltrame force-pushed the fix-checklist-order-after-copying-template branch from 4c35593 to 235d757 Compare February 6, 2026 09:28
@carlobeltrame carlobeltrame temporarily deployed to feature-branch February 6, 2026 09:31 — with GitHub Actions Inactive
@carlobeltrame carlobeltrame added this pull request to the merge queue Feb 6, 2026
Merged via the queue into ecamp:devel with commit d572190 Feb 6, 2026
35 checks passed
@carlobeltrame carlobeltrame deleted the fix-checklist-order-after-copying-template branch February 6, 2026 09:44
This was referenced Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deploy! Creates a feature branch deployment for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants