Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Translation] deprecate the backup feature#18290

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:masterfromxabbuh:translator-backup-interface
Apr 1, 2016

Conversation

@xabbuh
Copy link
Member

QA
Branch?master
Bug fix?no
New feature?no
BC breaks?no
Deprecations?yes
Tests pass?yes
Fixed tickets#16912 (comment)
LicenseMIT
Doc PR

@javiereguiluz
Copy link
Member

@xabbuh@aitboudad what if we remove this backup feature altogether for the Translation component? My feel is that we're trying to do "too much" here. In Symfony we do more "dangerous" things (e.g. the SensioGeneratorBundle) without providing a backup feature.

@fabpot
Copy link
Member

I agree with@javiereguiluz

@aitboudad
Copy link
Contributor

I agree too.

@stof
Copy link
Member

I agree too. I'm always disabling this backup, as git already gives me a way to get the old file if something goes wrong, and backup files only lead to mistakes in such cases

@xabbuh
Copy link
MemberAuthor

I am not too familiar with the Translation component internals. But if you all agree on this, I will revert the new interface and instead deprecate thesetBackup() method. What do you think about that?

@aitboudad
Copy link
Contributor

@xabbuh I think so and deprecate backup for thetranslation:update command too.

@fabpot
Copy link
Member

👍 for deprecation

@xabbuhxabbuhforce-pushed thetranslator-backup-interface branch from4fde2f1 to6c3ddf1CompareMarch 31, 2016 18:23
@xabbuhxabbuh changed the title[Translation] add a BackupAwareDumperInterface[Translation] deprecate the backup featureMar 31, 2016
@xabbuh
Copy link
MemberAuthor

I added deprecation trigger for the backup feature. I couldn't deprecate the--no-backup option of the command nor thedisableBackup() method of theTranslationWriter class as people will need to use them to prepare for the 4.0 upgrade. Though we have to deprecate them in 4.1.

@fabpot
Copy link
Member

Thank you@xabbuh.

@fabpotfabpot merged commit6c3ddf1 intosymfony:masterApr 1, 2016
fabpot added a commit that referenced this pull requestApr 1, 2016
This PR was merged into the 3.1-dev branch.Discussion----------[Translation] deprecate the backup feature| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets |#16912 (comment)| License       | MIT| Doc PR        |Commits-------6c3ddf1 [Translation] deprecate the backup feature
@xabbuhxabbuh deleted the translator-backup-interface branchApril 1, 2016 06:58
@fabpotfabpot mentioned this pull requestMay 13, 2016
fabpot added a commit that referenced this pull requestOct 28, 2020
…when using "--no-backup" (liarco)This PR was squashed before being merged into the 5.1 branch.Discussion----------[FrameworkBundle] Fixing TranslationUpdateCommand failure when using "--no-backup"| Q             | A| ------------- | ---| Branch?       | 5.1| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       || License       | MIT| Doc PR        |[5.0.0](https://github.com/symfony/symfony/blob/5.0/src/Symfony/Component/Translation/CHANGELOG.md#500) removed `TranslationWriter::disableBackup()` but `TranslationUpdateCommand` still has `--no-backup` flag. Using that flag throws an error so I think that removing it without deprecation may be the right choice.Thrown error:```In TranslationUpdateCommand.php line 287:  Attempted to call an undefined method named "disableBackup" of class "Symfony\Component\Translation\Writer\TranslationWriter".```Further references to the topic: -#18290 (comment) -#25860Commits-------ef24b10 [FrameworkBundle] Fixing TranslationUpdateCommand failure when using "--no-backup"
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@xabbuh@javiereguiluz@fabpot@aitboudad@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp