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

SDAAP-75 Add function to remove embedded media content #2459

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

marwoodandrew
Copy link
Contributor

No description provided.

@MarkLark86 MarkLark86 added this to the 2.5.4 milestone Jul 5, 2023
superdesk/publish/formatters/__init__.py Outdated Show resolved Hide resolved
superdesk/publish/formatters/__init__.py Outdated Show resolved Hide resolved
if renditions:
for name, rendition in renditions.items():
rendition["href"] = (
self.path.lstrip("/")
Copy link
Contributor

Choose a reason for hiding this comment

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

Why remove the / prefix? It was there in the original implementation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The idea is to make the paths relative rather than absolute on the FTP server

Copy link
Contributor

Choose a reason for hiding this comment

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

@marwoodandrew An issue I have with the change to the FTP path, will this not require a change to the config after updating?

I understand your reasons, but we will have to make sure this is communicated as a breaking change when we update clients that use this formatter/transmitter, so that their configs are updated.

Copy link
Member

Choose a reason for hiding this comment

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

I don't think anyone else is using ninjs ftp formatter, so as long as we add some notice we should be fine

superdesk/publish/formatters/ninjs_ftp_formatter.py Outdated Show resolved Hide resolved
superdesk/publish/formatters/ninjs_ftp_formatter.py Outdated Show resolved Hide resolved
@marwoodandrew marwoodandrew force-pushed the SDAAP-75 branch 2 times, most recently from c1b7d50 to 147b08c Compare July 10, 2023 05:19
superdesk/publish/formatters/__init__.py Outdated Show resolved Hide resolved
@MarkLark86
Copy link
Contributor

@petrjasek Would be good to get your review as well please

@marwoodandrew marwoodandrew merged commit e3241da into superdesk:hotfix/2.5.4 Jul 24, 2023
11 checks passed
@marwoodandrew marwoodandrew deleted the SDAAP-75 branch August 2, 2023 05:41
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