Skip to content

Operator API | Change No Shows to Service Violations#753

Open
anm-ioki wants to merge 3 commits into
mainfrom
service-violations
Open

Operator API | Change No Shows to Service Violations#753
anm-ioki wants to merge 3 commits into
mainfrom
service-violations

Conversation

@anm-ioki

@anm-ioki anm-ioki commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Similar to #745

The Operator API now has new endpoints for service violations to replace the existing no shows. These changes use the new endpoints and rename the models accordingly. Additionally, there's a new response attribute for the type of service violation, which for now will just be 'no_show' until new functionality is added to triebwerk.

Copilot AI left a comment

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.

Pull request overview

Updates the Operator API client to use the new “service violations” endpoints that replace the legacy “no shows” endpoints, including corresponding model renames and response shape updates.

Changes:

  • Renames Operator API methods/endpoints from no_shows / no_show_acknowledge to service_violations / service_violation_acknowledge.
  • Renames the model from Ioki::Model::Operator::NoShow to Ioki::Model::Operator::ServiceViolation.
  • Adds the service_violation_type response attribute to the service violation model.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
spec/ioki/operator_api_spec.rb Updates Operator API specs to assert the new service violations endpoints/method names and model class.
lib/ioki/model/operator/service_violation.rb Renames the model class and adds the service_violation_type attribute.
lib/ioki/apis/operator_api.rb Switches endpoint registrations from no_shows to service_violations and updates acknowledge action routing.
Comments suppressed due to low confidence (1)

lib/ioki/model/operator/service_violation.rb:47

  • Renaming NoShow to ServiceViolation removes the Ioki::Model::Operator::NoShow constant entirely, which is a breaking change for consumers who type-check against that class. If backwards compatibility is desired, provide a deprecated alias constant so existing code keeps working.

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

Comment thread lib/ioki/apis/operator_api.rb
@anm-ioki
anm-ioki marked this pull request as ready for review July 20, 2026 13:50
@anm-ioki
anm-ioki requested review from dal-ioki, phylor and tom-ioki July 22, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants