Skip to content

fix(SUP-51410): Add fileProcessingGracePeriod to a per-drop-folder setting#13831

Open
yambenari24 wants to merge 11 commits intoVenus-22.15.0from
Venus-22.14.0-SUP-51410
Open

fix(SUP-51410): Add fileProcessingGracePeriod to a per-drop-folder setting#13831
yambenari24 wants to merge 11 commits intoVenus-22.15.0from
Venus-22.14.0-SUP-51410

Conversation

@yambenari24
Copy link
Contributor

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-actions bot commented Mar 5, 2026

@github-copilot suggest

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

@github-copilot suggest

@github-actions
Copy link

@github-copilot suggest

@github-actions
Copy link

@github-copilot suggest

@github-actions
Copy link

@github-copilot suggest

@github-actions
Copy link

@github-copilot suggest

@yambenari24 yambenari24 changed the base branch from Venus-22.14.0 to Venus-22.15.0 March 10, 2026 15:50
@github-actions
Copy link

@github-copilot suggest

@github-actions
Copy link

@github-copilot suggest

@github-actions
Copy link

@github-copilot suggest

$fileProcessingGracePeriodValue = $this->fileProcessingGracePeriod;

// Convert to integer if it's a numeric string
if (is_string($fileProcessingGracePeriodValue) && is_numeric($fileProcessingGracePeriodValue)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

coding convension - { in a new line

*/
public function getFileProcessingGracePeriod()
{
return $this->getFromCustomData(self::CUSTOM_DATA_FILE_PROCESSING_GRACE_PERIOD);
Copy link
Collaborator

Choose a reason for hiding this comment

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

If value was not set return default value




// Convert to integer if it's a numeric string
Copy link
Collaborator

Choose a reason for hiding this comment

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

The insertion / update login should not happen here but in KalturaZoomDropFolder toInsertableObject and toUpdatableObject .....

* The amount of time, in seconds, to wait before processing a drop folder file
* @var int
*/
public $fileProcessingGracePeriod;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This feature is only relevant for Zoom, lets keep it only there

}

// Set default if empty
if (is_null($fileProcessingGracePeriodValue) || $fileProcessingGracePeriodValue === '' || $fileProcessingGracePeriodValue === 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

validations are done in validateForInsert or validateForUpdate

// (parent may not recognize this property due to reflection cache)
if ($this->shouldGet('fileProcessingGracePeriod', $responseProfile))
{
$this->fileProcessingGracePeriod = $source_object->getFileProcessingGracePeriod();
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this needed if the param fileProcessingGracePeriod is mapped to explicit core object function getFileProcessingGracePeriod()

$dropFolder->validatePropertyNotNull('path');
$dropFolder->validatePropertyNotNull('partnerId');
$dropFolder->validatePropertyMinValue('fileSizeCheckInterval', 0, true);
$dropFolder->validatePropertyMinValue('fileProcessingGracePeriod', 0, true);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not needed

* The amount of time, in seconds, to wait before processing a drop folder file
* @var int
*/
public $fileProcessingGracePeriod;
Copy link
Collaborator

Choose a reason for hiding this comment

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

If you want to validate min max values you can use annotations

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