Skip to content

Remove Namespace save and delete methods - #1

Open
znorris wants to merge 11 commits into
mainfrom
update-to-1.1.0
Open

Remove Namespace save and delete methods#1
znorris wants to merge 11 commits into
mainfrom
update-to-1.1.0

Conversation

@znorris

@znorris znorris commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

The API does not support PATCH or DELETE on namespace resources. Remove these methods so they fall back to the base Resource class NotImplementedError, preventing runtime errors against the API.


Migrated from GitLab MR https://git.scorevision.com/fantag/pug-client-ruby/-/merge_requests/3 (author @znorris, opened 2026-02-25). Review discussion remains readable there.

The API does not support PATCH or DELETE on namespace resources. Remove these methods so they fall back to the base Resource class NotImplementedError, preventing runtime errors against the API.
The API uses modifiedAt instead of updatedAt. Update all resource classes, test helpers, and specs to match. Also fix client namespace integration test that was calling the now-removed Namespace#save.
The API expects lowercase 'liveStreams' for the JSON:API type field, not 'LiveStreams'.
Remove started_at and source (now writable). Add playback_start and playback_stop (server-managed fields).
The API allows started_at to be set by clients, so it should not be read-only.
Rename preroll_video_id/postroll_video_id to preroll_id/postroll_id. Add FIELD_MAPPINGS infrastructure to Resource base class and PatchGenerator for fields where snake_case → camelCase doesn't match the API (Campaign start_time → start, end_time → end).
Users can pass snake_case filter keys that auto-translate to camelCase for the API. Supports both top-level filter: option and nested query: { filter: ... } syntax.
Provides a discoverable list of valid webhook action strings for video, livestream, and simulcast target events.
Major version bump for breaking changes: removed Namespace save/delete, renamed Campaign fields (preroll_video_id → preroll_id, start_time → start), renamed updated_at → modified_at.
Fix read-only attributes (Video: add source, remove stale playback_urls/
thumbnail_url; LiveStream: remove nonexistent thumbnails), add missing
type fields to request bodies (Video clip: videoCommands, SimulcastTarget
create: fix casing to simulcastTargets), and add livestream.edited webhook
action.
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