Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLAT-10694: Add linux batch for doc conversion #9194

Merged
merged 6 commits into from
Feb 24, 2020

Conversation

avichainoach
Copy link
Contributor

@avichainoach avichainoach commented Feb 18, 2020

This change is Reviewable

[KAsyncConvertPdfLinux : KAsyncConvertWorker]
id = 73
friendlyName = ConvertPdfLinux
filter.jobSubTypeIn = 202
Copy link
Collaborator

Choose a reason for hiding this comment

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

isn't job sub type 202 already used used for KAsyncConvertPDF

Copy link
Contributor

Choose a reason for hiding this comment

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

It should be full compatible with 202 on windows encoders.

[KAsyncConvertPdfLinux : KAsyncConvertWorker]
id = 73
friendlyName = ConvertPdfLinux
filter.jobSubTypeIn = 202
Copy link
Contributor

Choose a reason for hiding this comment

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

It should be full compatible with 202 on windows encoders.



//Linux
if ($constructorArgs['params']->osType == self::OS_TYPE_LINUX)
Copy link
Contributor

Choose a reason for hiding this comment

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

text comparison in php must be ===

protected function getKillPopupsPath()
{
return NULL;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Indentation

$tmpFile = kFile::replaceExt(basename($realInFilePath), 'pdf');
$tmpFile = dirname($this->outFilePath).'/'.$tmpFile;
}
$tmpFile = kFile::replaceExt(basename($realInFilePath), 'pdf');
Copy link
Contributor

Choose a reason for hiding this comment

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

Read only functionality has been removed here - I see no reason for that, especially when it is not effecting the linux convertor.

unlink($killPopupsPath);

}

// Test file type
$errorMsg = $this->checkFileType($realInFilePath, $this->SUPPORTED_FILE_TYPES);
Copy link
Contributor

Choose a reason for hiding this comment

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

Since your new worker may encounter un supported file types, in case that error is returned and file type is not supported, job must be stopped with Error, so we can monitor it and understand that we need to fix it.

@MosheMaorKaltura
Copy link
Contributor

reviewed

@avichainoach avichainoach merged commit fb85dac into Orion-15.18.0 Feb 24, 2020
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.

3 participants