Autosave puts work-in-progress edits live when working on already published entries
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by reading the autosave configuration at /config/statamic/autosave.php and the collection-level autosave setup described there. Reproduce the issue by editing a manually saved, published entry and waiting for autosave, then refresh its live page. The issue proposes several possible approaches but names no implementation files or tests; done means edits in progress no longer appear live before manual publication.
由索引模型根据 Issue 内容生成。
描述
Bug description
If an editor is working on edits to an entry that is published, Autosave puts the partial updates live in 5 second chunks while the editor works.
Because of the way that the experimental Autosave functionality works, edits to entries that are already published will be autosaved over the top of the existing file that Statamic is also reading to serve the live page. That means that edits in progress will be published live before the editor realises.
I think there are three approaches to address this, which could be combined:
-
Disable autosave on posts that are already published. This is the easiest, but should also warn the editor that autosave isn't running for that reason. This could also be an override-able option in autosave.php.
-
Autosave could only function on published posts if Revisions are being used, and makes its changes to the working copy.
-
Some other way of autosave keeping its work-in-progress away from the live file in a temporary file like Revisions does
I'm aware that Autosave is an experimental feature, and am up for testing and troubleshooting to refine it.
How to reproduce
- Enable autosave in /config/statamic/autosave,php
- Enable autosave on a collection as described in autosave.php
- Create an entry in that collection, and save it manually
- View that entry on the website in another browser tab
- Now go back and edit the entry, waiting enough time for autosave to happen. Don't press manual save!
- refresh the browser tab with the website display of the page and see your partial updates live
Logs
No response
Environment
Environment
Application Name: Convivio
Laravel Version: 11.17.0
PHP Version: 8.3.9
Composer Version: 2.7.7
Environment: local
Debug Mode: ENABLED
URL: convivio.test
Maintenance Mode: OFF
Timezone: Europe/London
Locale: en
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: smtp
Queue: sync
Session: file
Livewire
Livewire: v3.5.4
Statamic
Addons: 11
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.17.0 PRO
Statamic Addons
goldnead/statamic-toc: 1.5
jonassiewertsen/statamic-livewire: 3.6.0
mitydigital/feedamic: 2.4.1
statamic/wikilinks: 2.1.0
stillat/relationships: 2.2.1
studio1902/statamic-peak-browser-appearance: 3.5.0
studio1902/statamic-peak-commands: 8.4.0
studio1902/statamic-peak-seo: 8.15.3
studio1902/statamic-peak-tools: 6.3.0
tv2regionerne/statamic-passport: 1.4.1
tv2regionerne/statamic-private-api: 1.15.0
Installation
Existing Laravel app
Additional details
No response
- 主要语言
- PHP
- 星标
- 4.9k
- 派生
- 647
- 平均合并
- 1 天 45 分钟
- 30 天内合并 PR
- 221
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
statamic/cms 的其他 Issue
-
forms ui
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
accessibility
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
antlers
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
Nav: link to the site root with an anchor (/#section) gets is_parent on every page可能已有人在做 @duncanmcclean 今天认领。 未关闭navigations
难度 2/5 1-3 小时 新手友好度 35/100
维护者通常 1 天内回复
-
Multiple Choice and Checkboxes no longer offer "Inline", but the default views still use it可能已有人在做 @duncanmcclean 今天认领。 未关闭forms
难度 4/5 3-5 天 新手友好度 35/100
维护者通常 1 天内回复
相似的 Issue
-
sync-en
难度 1/5 1 小时以内 新手友好度 86/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
taskforcesh/bullmq#5238 ·
维护者通常 1 天内回复
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects it可能已有人在做 @bfs2021 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
Automattic/jetpack#55517 ·
维护者通常 1 天内回复