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

Apply syncOriginal for dirty state tracking #248

Merged
merged 8 commits into from
Feb 28, 2024
Merged

Conversation

jasonvarga
Copy link
Member

@jasonvarga jasonvarga commented Feb 21, 2024

This goes along with statamic/cms#5502 to allow isDirty etc to work correctly when using the Eloquent driver.

  • Entries
  • Terms
  • Assets
  • Trees
  • Composer requirement
  • Tests

@jasonvarga
Copy link
Member Author

The changes in the tests were because collections are technically required, although in the simple test cases they never got to the real world usage where collection would be used, so they passed.

Now that syncOriginal is being called, it looks for the collection and caused an error. These changes add collections where necessary.

@jasonvarga
Copy link
Member Author

Tests will break until Statamic 4.51.0 is released.

@jasonvarga jasonvarga marked this pull request as ready for review February 28, 2024 15:29
@jasonvarga jasonvarga merged commit 662bb12 into master Feb 28, 2024
21 checks passed
@jasonvarga jasonvarga deleted the syncoriginal branch February 28, 2024 15:30
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.

1 participant