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

Statamic 5 Support #276

Merged
merged 20 commits into from
May 3, 2024
Merged

Statamic 5 Support #276

merged 20 commits into from
May 3, 2024

Conversation

duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Apr 24, 2024

This pull request makes the Eloquent Driver compatible with Statamic 5, in addition to refreshing the docs & various other improvements.

Changes

To Do

  • After pending PRs have been merged, mark this PR ready for review.
  • After v5 has been tagged, change minimum statamic/cms version to ^5.0

ryanmitchell and others added 12 commits April 9, 2024 07:11
…ory and Query Builder (#177)

* Add upgrade note to readme

* Begin split configs

* Use form handle to relate, rather then a database id

* Defer to core methods for retrieving submissions

* Update fresh migrations and add migration for existing installs

* Eloquent FormRepository

* Fix migration

* Dont force a model type or it can't be overwritten

* Missing update script

* Correct file path to migration

* Lets not exclude parent

* StyleCI

* Actually run update script

* Prep for Statamic 5

* Update dev dependencies

* Try again

* Meh

* Remove deprecated test functions

* static

* Migrate PHP unit config

* Fix migration

* Fix tests to use handle instead of id

* Bug fixes

* Fix form listing bugs
* Split migration tags

* fix everything

* Merge branch '5.x-support' into split-migration-tags

* Ignore `.phpunit.cache`

---------

Co-authored-by: Ryan Mitchell <[email protected]>
* Simplify `TestCase`

* Remove `partialMock` method from `TestCase`

I'm not sure which "earlier versions of Laravel" this is referring to but the test suite seems to pass without it so I presume it's no longer needed.

* doesn't look like we're using this method either

* The `ConsoleKernel` isn't needed
* Eloquent driver should be opt-in, not opt-out

* Swap all drivers to `eloquent` in our `TestCase`
* Fix asset import bug

* Drop status on entries

* Revert "Fix asset import bug"

This reverts commit 35ebe65.

* Fix test

* StyleCI

* Revert

* Proper update script

* Make status nullable in down migration
* Initial docs refresh

* Fix tpyo

* Missing space

---------

Co-authored-by: Ryan Mitchell <[email protected]>
* Fix failing tests in `EntryQueryBuilderTest`

* dont need to freeze time for this test
* Clear blink cache on asset save

* Update to ensure cache is also cleared

* Also clear query cache
Otherwise, tests fail because they're referencing the `AddonTestCase` which changed namespace in a recent version.
@duncanmcclean duncanmcclean changed the title Statamic 5 Statamic 5 Support May 1, 2024
jasonvarga and others added 6 commits May 2, 2024 13:26
Co-authored-by: duncanmcclean <[email protected]>
Co-authored-by: Jason Varga <[email protected]>
Co-authored-by: Ryan Mitchell <[email protected]>
Co-authored-by: Jason Varga <[email protected]>
Co-authored-by: Ryan Mitchell <[email protected]>
Co-authored-by: Jason Varga <[email protected]>
@duncanmcclean duncanmcclean marked this pull request as ready for review May 3, 2024 08:36
@jasonvarga jasonvarga merged commit b1e2751 into master May 3, 2024
21 checks passed
@duncanmcclean duncanmcclean deleted the statamic-5 branch May 3, 2024 14:10
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.

4 participants