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 3: New Version class #6442

Merged
merged 4 commits into from
Jun 5, 2024
Merged

Conversation

bastianallgeier
Copy link
Member

@bastianallgeier bastianallgeier commented May 6, 2024

This PR …

Refactoring

  • New Version class which inherits most of the logic from the ContentStorage handler and will eventually replace it.

Outlook

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

*/
public function content(string $language = 'default'): Content
{
return new Content(
Copy link
Member

Choose a reason for hiding this comment

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

I assume Version will later cache the content object for each language, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, exactly. But this isn't implemented in the other PRs so far. It's only on the todo list in Notion

src/Content/Version.php Show resolved Hide resolved
src/Content/Version.php Show resolved Hide resolved
Base automatically changed from v5/changes/plain-text-handler-refactoring to v5/develop May 25, 2024 14:56
@lukasbestle lukasbestle marked this pull request as ready for review May 25, 2024 15:00
Copy link
Member

@lukasbestle lukasbestle left a comment

Choose a reason for hiding this comment

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

Added more context and links to our todo list for later. I agree it makes sense to merge this as is to avoid merge conflicts and endless rebasing. The class is not fully there yet, but we can and will improve it later in the process.

Added some comments on the tests. Same applies here: You don't have to change anything right now. I'd also be totally fine with merging the PR and adding those to the todo list for later.

tests/Content/VersionTest.php Outdated Show resolved Hide resolved
tests/Content/VersionTest.php Show resolved Hide resolved
Copy link
Member

@lukasbestle lukasbestle left a comment

Choose a reason for hiding this comment

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

Makes sense. Could you add it to the todo list please?

@bastianallgeier bastianallgeier merged commit 362e86a into v5/develop Jun 5, 2024
10 of 11 checks passed
@bastianallgeier bastianallgeier deleted the v5/changes/version-class branch June 5, 2024 09:00
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

2 participants