User tests: Successful: Unsuccessful:
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_content com_contenthistory |
Labels |
Added:
?
|
should be better now, it deletes only what you can delete
I have tested this item
The keep for ever feature is not "prevent user deletion" thing
It is keep a version when it "ages" due to new versions created ...
aka prevent automatic deletion of it
That is why the "... forever" thing
otherwise it would have been called something else "Not deletable" or something
COM_CONTENTHISTORY_BUTTON_KEEP_TOGGLE_OFF="Select to allow this version to be deleted automatically according to the delete schedule."
COM_CONTENTHISTORY_BUTTON_KEEP_TOGGLE_ON="Select to prevent this version being deleted automatically."
There is nothing to be fixed
if you do this change
then you will also need to update language strings and any documentation written for the feature
and also rename the feature
this is outside of the scope of this silly pr, as for my understanding of this feature...
...but i'm open to different opinions...
can you show me where/when this automatic deletion happens
When a new version is stored by store() method of ContentHistoryHelper
there is a cleanup of old versions to enforce the limit of maximum versions kept
and it calls
public function deleteOldVersions($maxVersions)
of ContentHistory 's Table class
https://github.com/joomla/joomla-cms/blob/staging/libraries/src/Table/ContentHistory.php#L179-L200
If you keep 5 versions and the first version is marked keep forever when the 6th version will come it will not delete the first one but the second one and the result will be still 5 versions stored.
ok sorry this keep_forever feature, then is not clear to me
Status | Pending | ⇒ | Expected Behaviour |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-05-16 18:53:15 |
Closed_By | ⇒ | Quy |
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/20430
Closing as expected per Keep Forever
tooltips:
Select to allow this version to be deleted automatically according to the delete schedule.
Select to prevent this version being deleted automatically.
are you so sure ?
then fine to me
@alikon I thought that too until reading the documentation further:
Maximum Versions. The maximum number of versions to store for an item. If an item is saved and the maximum number of versions has been reached, the oldest version will be deleted automatically. If set to 0, then versions will never be deleted automatically. Also, specific versions may be flagged as "Keep Forever" and will not be deleted automatically. Note that versions may be deleted manually using the Delete button in the Version History screen.
Keep On/Off. This button allows you to toggle on or off the Keep Forever feature for a version. Normally, the oldest version of an item will be deleted automatically when the maximum number of versions (set in the Options for the component) has been exceeded. If you set the Keep Forever property for a version, it will never be automatically deleted.
The current way keep forever works is that it wont be automatically deleted based on the number of revisions stored. However, and as originally reported, it seems perfectly reasonable to me that you also can not manually delete something marked as keep forever
IMO have sense this PR. Mark a version as "Keep Forever" is a way to prevent someone from mistakenly deleting a version that can not be deleted.
@brianteeman Please decide. I tried to reopen it and got this error:
422 RuntimeException
Invalid response from GitHub
I can't reopen it as the branch is deleted
This PR was created to fix a bug
and as detailed explained,
there was no bug to be fixed in the first place
but since majority here, thinks to change existing design
you will also need to
finally people using this so far will have a small surprise when trying to cleanup their keep forever versions because they want to mark some other as keep forever
And besides what i mentioned above,
you are not changing the behavior in com_content only
you are changing the behavior in all core and 3rd party extensions that use versions
maybe a confirmation when clicking the delete button would be better:
Some of the versions selected for deletion are marked as keep-forever, are you sure to delete them ?
well about name, you are propably right, no need to change it
i said, maybe naming needs to be changed
but the description language strings and documentation need to be changed / updated
and the rest i said , do apply
Status | Needs Review | ⇒ | New |
Closed_Date | 0000-00-00 00:00:00 | ⇒ |
Status | New | ⇒ | Pending |
Status | Expected Behaviour | ⇒ | Needs Review |
Closed_Date | 2018-05-16 18:53:15 | ⇒ | |
Closed_By | Quy | ⇒ |
Set to "open" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/20430
Reopening for further discussion.
Also, I think is good change this string COM_CONTENTHISTORY_BUTTON_DELETE_DESC
describing that these types of versions cannot be eliminated
I have tested this item
I did the test, just as have a CS, I not put the test result, waiting for that. I will do now, no problem
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
Ready to Commit after 3 successful tests.
Labels |
Added:
?
|
sorry @carlitorweb i've losed your comment ...
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-06-18 02:55:48 |
Closed_By | ⇒ | mbabker |
If you select 5 items - one of which is flagged keep forever - then it prevents you from deleting them all. I expected it to delete 4 items