Skip to content

[6.x] Support non-revisable fields in entries#11252

Open
edalzell wants to merge 45 commits into
statamic:6.xfrom
edalzell:non-revisable-fields
Open

[6.x] Support non-revisable fields in entries#11252
edalzell wants to merge 45 commits into
statamic:6.xfrom
edalzell:non-revisable-fields

Conversation

@edalzell

@edalzell edalzell commented Dec 12, 2024

Copy link
Copy Markdown
Contributor

We have a feature were you can sponsor an orphan. The sponsorship happens in the background (through folks signing up online).

We also have revisions. The issue is that if we want to revert back to some previous orphan data, we might be restoring a version that doesn't have a sponsorship, which will cause problems.

So we'd like to set the sponsorship fields as non-revisable so they persist.

@edalzell edalzell changed the title Support non-revisable fields [5.x] Support non-revisable fields Dec 12, 2024
@edalzell edalzell marked this pull request as ready for review December 13, 2024 19:43
@edalzell edalzell requested a review from jasonvarga December 13, 2024 19:43
@edalzell

Copy link
Copy Markdown
Contributor Author

I didn't see any tests for EntriesController nor TermsController, and honestly I was afraid to start them cuz I bet they need lots of setup.

Happy to start one, with some guidance

@jasonvarga

Copy link
Copy Markdown
Member

Those are in Tests\Feature\Entries\StoreEntryTest, UpdateEntry, EditEntryTest, etc.

@edalzell edalzell marked this pull request as draft December 16, 2024 23:52
@edalzell

edalzell commented Jan 3, 2025

Copy link
Copy Markdown
Contributor Author

Don't understand why the tests are failing, cuz one of the runs DID pass.

@edalzell

edalzell commented Jan 7, 2025

Copy link
Copy Markdown
Contributor Author

@jasonvarga as term revisions aren't actually supported, this is good to go now.

@edalzell edalzell marked this pull request as draft January 27, 2025 21:55
@edalzell edalzell marked this pull request as ready for review January 27, 2025 23:23
@edalzell edalzell changed the title [5.x] Support non-revisable fields [5.x] Support non-revisable fields in entries Jan 28, 2025
@duncanmcclean duncanmcclean changed the title [5.x] Support non-revisable fields in entries [6.x] Support non-revisable fields in entries Jan 28, 2026
@duncanmcclean duncanmcclean changed the base branch from 5.x to 6.x January 28, 2026 17:33
@edalzell edalzell marked this pull request as draft March 24, 2026 23:48
@edalzell edalzell changed the base branch from 6.x to 5.x March 25, 2026 17:08
# Conflicts:
#	tests/Feature/Entries/EntryRevisionsTest.php
# Conflicts:
#	src/Http/Controllers/CP/Collections/EntriesController.php
#	tests/Fields/BlueprintTest.php
#	tests/Fields/FieldTest.php
#	tests/Fields/FieldsTest.php
#	tests/Fields/SectionTest.php
#	tests/Fields/TabTest.php
#	tests/Fieldtypes/NestedFieldsTest.php
#	tests/Fieldtypes/SetsTest.php
@edalzell edalzell changed the base branch from 5.x to 6.x March 25, 2026 17:23
@edalzell edalzell marked this pull request as ready for review March 25, 2026 18:19
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.

2 participants