Skip to content

Commit 8c70783

Browse files
committed
[!!!][TASK] Remove workspace 'Freeze Editing'
Workspaces has a feature to mark single workspaces as frozen to prevent further editing of records. The patch drops this feature altogether: While the feature may be theoretically useful, its implementation is so half-done and sparse that we either have the option to put a lot of time and effort into it to render it usable, or to remove it for now in favor of other workspace related features that should receive love. Asking in the community revealed no single actual user of the feature, there is only one forge issue exists that points out a major flaw, and zero work has been put into the feature since the initial introduction of workspaces. Some details: * A frozen workspace can not be published. When a frozen workspace means "this has been fully reviewed, do not edit anymore", then publishing is the only option that actually *should* be possible. * Only admins can freeze a workspace. We'd expect owners should be able to do this. * The *only* attached functionality are early checks in DataHandler that prevent writing records. They return early and write a log entry. There is zero notification whatsoever to the user: There are no flash messages during editing that records can't be saved, there is no information in the workspace module this workspace is frozen, record fields are not readonly, all 'edit pencils' are still shown. This turns this feature into a UX disaster. * A proper "only certain persons can publish a workspace" can be realized using custom stages in combination with a list of 'responsible persons', 'Publish only content in publish stage' and 'Restrict publishing to workspace owners'. This is not fully documented (which we can change), but ends up in a more flexible feature than the half implemented 'Freeze Editing' toggle. Resolves: #107323 Resolves: #82892 Releases: main Change-Id: I2327a830a271a2713e92720bd411f3c1d02f07fa Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/90473 Tested-by: Stefan Bürk <[email protected]> Tested-by: Stefan Froemken <[email protected]> Tested-by: Christian Kuhn <[email protected]> Reviewed-by: Stefan Bürk <[email protected]> Reviewed-by: Stefan Froemken <[email protected]> Reviewed-by: Christian Kuhn <[email protected]> Tested-by: core-ci <[email protected]>
1 parent 6570d0e commit 8c70783

File tree

5 files changed

+9
-26
lines changed

5 files changed

+9
-26
lines changed

Configuration/TCA/sys_workspace.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,6 @@
7676
'default' => 0,
7777
],
7878
],
79-
'freeze' => [
80-
'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.freeze',
81-
'config' => [
82-
'type' => 'check',
83-
'renderType' => 'checkboxToggle',
84-
'default' => 0,
85-
],
86-
],
8779
'live_edit' => [
8880
'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:sys_workspace.live_edit',
8981
'config' => [
@@ -240,9 +232,6 @@
240232
],
241233
],
242234
'palettes' => [
243-
'main' => [
244-
'showitem' => 'title,freeze',
245-
],
246235
'memberlist' => [
247236
'label' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:tabs.users',
248237
'showitem' => 'adminusers,members',
@@ -263,7 +252,7 @@
263252
'types' => [
264253
'0' => ['showitem' => '
265254
--div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
266-
--palette--;;main,
255+
title,
267256
stagechg_notification,
268257
--palette--;;memberlist,
269258
--div--;LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xlf:tabs.internal_stages,

Documentation/Administration/CustomWorkspace/Index.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ Subsequently you can configure settings for the three predefined stages.
9999

100100
The "Settings dialog" is about the popup window which appears after
101101
each review process. If the "show dialog" box is not checked, the
102-
popup will not show notification settings and notifications will
103-
be sent according to the predefined settings.
102+
popup will not show notification settings and notifications will
103+
be sent according to the predefined settings.
104104
When the "changeable preselection" box is checked, the preselected
105105
list of users to notify can be modified
106106
on the fly before sending the change notification.
@@ -203,9 +203,6 @@ Other
203203
The "Other" tab is comprised of various settings affecting
204204
the behavior of the custom workspace.
205205

206-
The "Freeze editing" flag actually blocks all operations in
207-
the workspace until it is turned off again.
208-
209206
It is possible to allow editing of non-versionable records
210207
in the custom workspace. These records will be edited "live",
211208
i.e. any changes to them performed in the workspace will be

Resources/Private/Language/locallang_db.xlf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@
8787
<trans-unit id="sys_workspace.unpublish_time">
8888
<source>Un-Publish changes on (requires scheduler task)</source>
8989
</trans-unit>
90-
<trans-unit id="sys_workspace.freeze">
91-
<source>Freeze Editing</source>
92-
</trans-unit>
9390
<trans-unit id="sys_workspace.live_edit">
9491
<source>Allow "live" editing of records from tables without versioning</source>
9592
</trans-unit>

Tests/Functional/Hook/DataSet/deletingSysWorkspaceDeletesWorkspaceRecords.csv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"sys_workspace",,,,,,,,,,,,,,,,,
2-
,"uid","pid","deleted","title","adminusers","members","db_mountpoints","file_mountpoints","freeze","live_edit","publish_access","custom_stages","stagechg_notification","edit_notification_defaults","edit_allow_notificaton_settings","publish_notification_defaults","publish_allow_notificaton_settings"
3-
,1,0,0,"Workspace #1",,,,,0,0,0,0,0,0,0,0,0
4-
,2,0,0,"Workspace #2",,,,,0,0,0,0,0,0,0,0,0
2+
,"uid","pid","deleted","title","adminusers","members","db_mountpoints","file_mountpoints","live_edit","publish_access","custom_stages","stagechg_notification","edit_notification_defaults","edit_allow_notificaton_settings","publish_notification_defaults","publish_allow_notificaton_settings"
3+
,1,0,0,"Workspace #1",,,,,0,0,0,0,0,0,0,0
4+
,2,0,0,"Workspace #2",,,,,0,0,0,0,0,0,0,0
55
"pages",,,,,,,,,,,,,,,,,
66
,"uid","pid","sorting","hidden","deleted","l10n_parent","l10n_source","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","title",,,,,
77
,1,0,256,0,0,0,0,0,0,0,0,"FunctionalTest",,,,,

Tests/Functional/Hook/DataSet/deletingSysWorkspaceDeletesWorkspaceRecordsResult.csv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"sys_workspace",,,,,,,,,,,,,,,,,
2-
,"uid","pid","deleted","title","adminusers","members","db_mountpoints","file_mountpoints","freeze","live_edit","publish_access","custom_stages","stagechg_notification","edit_notification_defaults","edit_allow_notificaton_settings","publish_notification_defaults","publish_allow_notificaton_settings"
3-
,1,0,1,"Workspace #1",,,,,0,0,0,0,0,0,0,0,0
4-
,2,0,0,"Workspace #2",,,,,0,0,0,0,0,0,0,0,0
2+
,"uid","pid","deleted","title","adminusers","members","db_mountpoints","file_mountpoints","live_edit","publish_access","custom_stages","stagechg_notification","edit_notification_defaults","edit_allow_notificaton_settings","publish_notification_defaults","publish_allow_notificaton_settings"
3+
,1,0,1,"Workspace #1",,,,,0,0,0,0,0,0,0,0
4+
,2,0,0,"Workspace #2",,,,,0,0,0,0,0,0,0,0
55
"pages",,,,,,,,,,,,,,,,,
66
,"uid","pid","sorting","hidden","deleted","l10n_parent","l10n_source","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","title",,,,,
77
,1,0,256,0,0,0,0,0,0,0,0,"FunctionalTest",,,,,

0 commit comments

Comments
 (0)