Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

Venus 22.7.0 plat 25584#13684

Merged
MosheMaorKaltura merged 3 commits intoVenus-22.8.0from
Venus-22.7.0-PLAT-25584
Nov 25, 2025
Merged

Venus 22.7.0 plat 25584#13684
MosheMaorKaltura merged 3 commits intoVenus-22.8.0from
Venus-22.7.0-PLAT-25584

Conversation

@MosheMaorKaltura
Copy link
Collaborator

Pull Request Checklist

Please complete the following before submitting:

General notes -

  • I have tested the changes locally.
  • I have written unit tests where applicable.
  • I have updated documentation where needed.
  • I have added comments to complex code.
  • This PR follows the coding style guidelines.
  • I have updated release notes with new feature

New Kaltura Types

  • I have created new clients
  • I have notified related apps - KMCNG / KMS / EP .... about new clients

New Kaltura Services / Actions

  • I have added a deployment script

Questions

  1. What is the purpose of this PR?

    • Enter your answer here
  2. Does this change affect production code or infrastructure?

    • Yes
    • No
  3. If yes, what is the rollback plan?

    • Enter your answer here

@github-actions
Copy link

@github-copilot suggest

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 functionality to preserve the original creation timestamp when cloning annotation cue points. When an annotation is cloned, the system now stores the original cue point's creation time in a new field to maintain historical tracking.

Key Changes

  • Added originalCuePointCreateAt field to store the source cue point's creation timestamp during cloning operations
  • Implemented getter/setter methods in the Annotation model for the new field
  • Updated the clone action to populate this field, either from an already-cloned annotation or from the original creation time

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

File Description
plugins/cue_points/annotation/services/AnnotationService.php Implements logic in cloneAction to retrieve and set the original creation timestamp
plugins/cue_points/annotation/lib/model/Annotation.php Adds constant, getter, and setter methods for storing the original creation timestamp in custom data
plugins/cue_points/annotation/lib/api/KalturaAnnotation.php Exposes the new originalCuePointCreateAt field in the API response

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

$dbAnnotation->setParentId($parentId);
}

//save the original annotation cue point createAt time on field originalCuePointCreateAt
Copy link

Copilot AI Nov 25, 2025

Choose a reason for hiding this comment

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

Extra space between 'save' and 'the'. Should be a single space.

Suggested change
//save the original annotation cue point createAt time on field originalCuePointCreateAt
//save the original annotation cue point createAt time on field originalCuePointCreateAt

Copilot uses AI. Check for mistakes.

/**
* In case of cloned annotation it will hold source cuepoint createdAt.
* @var time
Copy link

Copilot AI Nov 25, 2025

Choose a reason for hiding this comment

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

The @var type should be int instead of time. The value is stored as a Unix timestamp (integer), as evidenced by the use of $dt->getTimestamp() in the service layer.

Suggested change
* @var time
* @var int

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

@github-copilot suggest

@MosheMaorKaltura MosheMaorKaltura merged commit 0bf9dac into Venus-22.8.0 Nov 25, 2025
2 checks passed
@MosheMaorKaltura MosheMaorKaltura deleted the Venus-22.7.0-PLAT-25584 branch November 25, 2025 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants