Skip to content

PS-1145_databox indexer : fix missing rendition policy editable param#813

Open
moctardiouf wants to merge 1 commit into
masterfrom
PS-1145_databox_indexer_missing_rendition_policy_editable
Open

PS-1145_databox indexer : fix missing rendition policy editable param#813
moctardiouf wants to merge 1 commit into
masterfrom
PS-1145_databox_indexer_missing_rendition_policy_editable

Conversation

@moctardiouf
Copy link
Copy Markdown
Contributor

…eter

Copy link
Copy Markdown
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

Adds support in the databox indexer’s Phraseanet structure import to configure whether created rendition policies are “editable”, addressing a previously missing configuration parameter.

Changes:

  • Extend the Phraseanet rendition configuration type to include policyAssetEditable.
  • Ensure generated “missing renditions” configs include a default policyAssetEditable: false.
  • Propagate policyAssetEditable into rendition policy creation via the editable request field.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
databox/indexer/src/handlers/phraseanet/types.d.ts Adds the policyAssetEditable?: boolean config field to rendition/subdef mapping types.
databox/indexer/src/handlers/phraseanet/StructureImporter.ts Defaults and forwards policyAssetEditable into rendition policy creation (editable).

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

useAsAnimatedThumbnail: boolean;
types: Record<string, PhraseanetSubdefStruct>;
policy: string | null;
policyAssetEditable: boolean | false;
subdefToRendition[settings['from']].push(name);
sdByName[name].types[sd.type] = sd;
sdByName[name].labels = sd.labels; // todo: check conflicts
sdByName[name].policyAssetEditable = rendition.policyAssetEditable ?? false;
rendition.useAsAnimatedThumbnail ?? false,
types: {} as Record<string, PhraseanetSubdefStruct>,
policy: rendition['policy'] ?? null,
policyAssetEditable: rendition['policyAssetEditable'] ?? false,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
policyAssetEditable: rendition['policyAssetEditable'] ?? false,
policyAssetEditable: rendition.policyAssetEditable ?? false,

useAsAnimatedThumbnail: boolean;
types: Record<string, PhraseanetSubdefStruct>;
policy: string | null;
policyAssetEditable: boolean | false;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
policyAssetEditable: boolean | false;
policyAssetEditable: boolean;

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.

3 participants