Skip to content

fix batch not suitable for adding files preventing uploads (WP-900)#537

Merged
vsolovei-smartling merged 3 commits into
masterfrom
WP-900-authorize
Aug 7, 2024
Merged

fix batch not suitable for adding files preventing uploads (WP-900)#537
vsolovei-smartling merged 3 commits into
masterfrom
WP-900-authorize

Conversation

@vsolovei-smartling

Copy link
Copy Markdown
Contributor

No description provided.

UploadQueueEntity::FIELD_BATCH_UID,
UploadQueueEntity::FIELD_SUBMISSION_IDS,
],
sortOptions: [UploadQueueEntity::FIELD_ID => 'ASC'],

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ensure queue behaves more like a queue

$submission = $this->submissionManager->storeEntity($submission);
if ($batchUid === null) {
$batchUid = $this->apiWrapper->createBatch($profile, $jobInfo->getJobUid(), [$fileUri]);
$batchUid = $this->apiWrapper->createBatch($profile, $jobInfo->getJobUid(), [$fileUri], $authorize);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not ticket related, another place where ui setting was ignored

$sources = $this->getSources($request, $targetBlogId);

$submission = $this->submissionManager->findOne($searchParams, 1);
$submission = $this->submissionManager->findOne($searchParams);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

findOne() has no second parameter

@vsolovei-smartling vsolovei-smartling merged commit 48ac1e4 into master Aug 7, 2024
@vsolovei-smartling vsolovei-smartling deleted the WP-900-authorize branch August 7, 2024 14:58
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.

2 participants