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

Changes 4: Refactor PlainTextContentStorageHandler to use Language object #6448

Draft
wants to merge 4 commits into
base: v5/changes/version-class
Choose a base branch
from

Conversation

bastianallgeier
Copy link
Member

@bastianallgeier bastianallgeier commented May 17, 2024

This PR …

Refactoring

  • New Language::single() method to create a Language placeholder object in single language installations
  • Use full language objects in ContentStorageHandler and PlainTextContentStorageHandler methods
  • Refactor ContentStorage to always provide a full language object to the storage methods. This is only temporary to keep all the unit tests working. ContentStorage will be removed later, as planned.

Outlook

  • The PlainTextContentStorageHandler class will no longer implement the interface but extend the abstract ContentStorageHandler class. This change will also remove the __construct method, which will then be implemented by the abstract. Changes 5: ContentStorageHandler Abstract #6449
  • The new ::write method will later be moved to the ContentStorageHandler class as an abstract method. ContentStorageHandler will then also get a non-abstract update and create method, which will use the new write method by default. This will add the option for storage handlers to only modify the write method if no further logic is needed for create and update. Changes 10: New MemoryContentStorageHandler #6457

Breaking changes

None

Ready?

  • In-code documentation (wherever needed)
  • Unit tests for fixed bug/feature
  • Tests and checks all pass

For review team

  • Add changes & docs to release notes draft in Notion

@bastianallgeier bastianallgeier force-pushed the v5/changes/language-type-hinting branch from ea67992 to dcb5a81 Compare May 22, 2024 12:26
@bastianallgeier bastianallgeier changed the base branch from v5/develop to v5/changes/version-class May 22, 2024 12:26
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.

None yet

1 participant