Skip to content

Timing member of timeline#49

Merged
pendingintent merged 7 commits intomasterfrom
timing-member-of-timeline
Jan 6, 2026
Merged

Timing member of timeline#49
pendingintent merged 7 commits intomasterfrom
timing-member-of-timeline

Conversation

@pendingintent
Copy link
Owner

Added timeline selector to timings
Schedule timelines now support selecting entry_id
Timings now support selecting relative to and from ScheduledAcitivityInstance

Copilot AI review requested due to automatic review settings January 6, 2026 20:36
@pendingintent pendingintent added the enhancement New feature or request label Jan 6, 2026
@pendingintent pendingintent self-assigned this Jan 6, 2026
@pendingintent pendingintent added this to the v1.2-beta milestone Jan 6, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for selecting timelines and activity instances in the timing management system. It introduces a new schedule timelines feature that allows users to manage timelines with entry/exit conditions and instance references, and enables timings to reference specific activity instances and be associated with schedule timelines.

Key Changes:

  • Added schedule timeline entity with CRUD operations and UI
  • Enhanced timings to support member_of_timeline field and schedule instance selectors
  • Updated UI to replace text inputs with dropdowns for instance selection

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
tests/test_timings.py Removed test for timing UID and order index trimming functionality
src/usdm/generate_elements.py Removed unused UID index mapping variables
src/soa_builder/web/utils.py Added helper functions to retrieve scheduled activity instances and schedule timelines
src/soa_builder/web/templates/timings.html Enhanced UI with dropdowns for instance/timeline selection and improved form layout
src/soa_builder/web/templates/schedule_timelines.html New template for schedule timeline management interface
src/soa_builder/web/templates/base.html Added navigation link for schedule timelines
src/soa_builder/web/schemas.py Added member_of_timeline field to timing schemas and new schedule timeline schemas
src/soa_builder/web/routers/timings.py Updated timing endpoints to support member_of_timeline and instance options
src/soa_builder/web/routers/schedule_timelines.py New router implementing full CRUD operations for schedule timelines
src/soa_builder/web/routers/instances.py Renamed return variable from 'row' to 'after' for consistency
src/soa_builder/web/migrate_database.py Added migration to add member_of_timeline column to timing table
src/soa_builder/web/initialize_database.py Added schedule_timelines_audit table initialization
src/soa_builder/web/audit.py Added audit logging function for schedule timeline operations
src/soa_builder/web/app.py Registered schedule timelines router and migration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pendingintent pendingintent merged commit 517acec into master Jan 6, 2026
6 checks passed
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.

2 participants