Foren

Liferay 6.1.x Docs & Media How to delete version in Version History

thumbnail
Davide Rossi, geändert vor 11 Jahren.

Liferay 6.1.x Docs & Media How to delete version in Version History

Junior Member Beiträge: 55 Beitrittsdatum: 03.07.10 Neueste Beiträge
Hi to all,
In liferay 6.0.x and previous versions, in Document Library one could navigate through Version History select a Version, maybe an old useless one and delete it. This functionality seems not to exist or work in 6.1.x version.
In 6.0 there is a delete bin button on the right to delete version.
In 6.1 there is no delete button.
Clicking on the lens button you select the version that will appear as eg Lifery.odt (Version 1.1)
Clicking the delete button will delete the whole document and not just the selected Version.
Added image attacments for reference.
Look like a bug???
I will copy htis to issues....
thumbnail
Hitoshi Ozawa, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
Yes, this is definitely a bug. Please create a jira issue for it.
thumbnail
Davide Rossi, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Junior Member Beiträge: 55 Beitrittsdatum: 03.07.10 Neueste Beiträge
Done!!! ISSUE LPS-26863
thumbnail
Alexander Chow, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Liferay Master Beiträge: 518 Beitrittsdatum: 20.07.05 Neueste Beiträge
Interestingly enough, in our development branch of 6.1, this was removed in lieu of a revert functionality (see LPS-14260). However, when the new UI was put in, this seemed to have been accidentally dropped.

Is there a particular business reason why you need to be able to delete a particular version? Or is the revert functionality sufficient? I think for most cases, revert should do the job. Is this not correct?
thumbnail
Hitoshi Ozawa, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
I wanted to archive or delete very old versions to save space. As it is now, liferay will just keep adding new versions and after many years, it's just going to using more space. This is especially true when the file size if very large. What I needed and from the forum, what other users wants is a way to purge/archive old versions.
thumbnail
Davide Rossi, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Junior Member Beiträge: 55 Beitrittsdatum: 03.07.10 Neueste Beiträge
Hi Alexander,
File size is one of the main reasons for deleting old, unused documents and with no reason for reverting. Some documents are edited and republished continually also with small, and many times, useless changes. It does happen because of many inexperienced users and cleaning up (delete-purge) is a need.
In any case i really don't see the reason not to have both reverting and deleting. Delete was already there!!!
My very personal philosophy is Add and don't remove existing functionalities?
thumbnail
Alexander Chow, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Liferay Master Beiträge: 518 Beitrittsdatum: 20.07.05 Neueste Beiträge
So, part of the rationale for making that change in the first place was that, versioning provides a history of what has been done to a given file. It serves the purpose of a kind of pseudo-audit trail. Another reason is this is something you cannot do in mounted repositories (though, of course, we can block that functionality for mounted repositories but allow it for Liferay's internal system).

Personally, I don't find the argument of "saving space" all too compelling because if you are manually going in and deleting specific versions of select files just to save space, you have other problems. This really should either be (1) automated (which, of course, doesn't exist in 6.1) or (2) upgrade your hardware.

My very personal philosophy is Add and don't remove existing functionalities?

While in general, I would probably agree with this, there are times in which redundant or problematic functionalities should be removed. Whether this is one of those cases, I'm not 100% convinced yet.
thumbnail
Ravi Kumar Gupta, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Liferay Legend Beiträge: 1302 Beitrittsdatum: 24.06.09 Neueste Beiträge
Can we not have a portlal property that defines to let users delete or not. That way, sites which want users to let delete the specific versions, can allow to do so. And where auditing is so needed, they can restrict using just one property.

??
thumbnail
Hitoshi Ozawa, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
What I've implemented is a property to specify how many versions to keep.
-1: do not archive/delete
0: do not keep history
1... : number of versions to keep. Archive/delete from older version

I think this requirement were brought up by other people in the forum before and I think some us have already implemented it.
thumbnail
Ravi Kumar Gupta, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Liferay Legend Beiträge: 1302 Beitrittsdatum: 24.06.09 Neueste Beiträge
What did you do for that Hitoshi, a hook? If possible, can that be contributed?
thumbnail
Hitoshi Ozawa, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
No. I have a Japanese version of Liferay with all requirements need by Japanese users.
I'm adding hooks and ext plugin to this version to customize for each of my installation.

I'm not just adding features, but I'm also deleting unnecessary features. Liferay.com didn't want it and was taking too much arguing about which feature and how to implement them. I'm working on a tight schedule and don't have too much time waiting for them. I think it's the same for many developers here too.

A simple way to implement this feature was posted in the forum before. I think there was a version which has a bug that caused an error when there were more than 10 versions.
thumbnail
Ravi Kumar Gupta, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Liferay Legend Beiträge: 1302 Beitrittsdatum: 24.06.09 Neueste Beiträge
This is good.. really good.. creating a different version of software while keeping just the features which are needed.

I was just curious to know how one did it.. not in my requirements though. I will find and check that post emoticon

-Ravi
thumbnail
Hitoshi Ozawa, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
This is good.. really good.. creating a different version of software while keeping just the features which are needed.


Keeps support calls to a minimum and it actually increases end users' satisifaction. Some people are just tester and like to test features
even though they'll never really use them. Keep those calls to a minimum and increase time to spend of features users really needs.

I seems Liferay.com is becoming to large when people have to "convince" to internal developers to get necessary features implemented.
thumbnail
Ravi Kumar Gupta, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Liferay Legend Beiträge: 1302 Beitrittsdatum: 24.06.09 Neueste Beiträge
I did propose that in my previous organization but never put hands on it. Will try to do it. Keeping minimal features, just the required one. Hope that will bring something good out of it. Should I need any help, will ping you emoticon

Thanks for pointing that out again.
-Ravi
thumbnail
Davide Rossi, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Junior Member Beiträge: 55 Beitrittsdatum: 03.07.10 Neueste Beiträge
Alexander all you mention is very clear.

Not all people that will use liferay will grasp all rules to keep documents and media in clean and orderly manner.
Has anyone ever tried to teach file naming conventions to groups of poeple that only know how to write a document in word. Well it works for a while but suddenly this appears: This is "the name of a file" 04/2012 (but with some stuff) -in.it.jpg
Then admin, tech support or whatever is called, usually me.. My file does not work! Sigh,sob,sob!!! I can't send it. I cant save it on the server. I get error messages.
I'd kill at that point, but no, I just explain all over again until next time.
Easy things look tough to many.
This is the same issue I have found forming people to use different non mounted repositories, "php stuff" emoticon in the past.

My very personal philosophy is Add and don't remove existing functionalities?

While in general, I would probably agree with this, there are times in which redundant or problematic functionalities should be removed.


I also agree with that, but don't see redundancy, nor problem here.
Not all will use other mounted repositories with auditing capabilities and liferay document and media technology is improving continuously so more will just use that (great, great job). emoticon
thumbnail
Alexander Chow, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Liferay Master Beiträge: 518 Beitrittsdatum: 20.07.05 Neueste Beiträge
Yes, so the deleting of unnecessary files becomes important. This can of course be blocked with permissions if you don't want somebody to delete a file version.

Davide Rossi:

My very personal philosophy is Add and don't remove existing functionalities?

While in general, I would probably agree with this, there are times in which redundant or problematic functionalities should be removed.


I also agree with that, but don't see redundancy, nor problem here.
Not all will use other mounted repositories with auditing capabilities and liferay document and media technology is improving continuously so more will just use that (great, great job). emoticon


You know, flattery will get you no where. Well, it might. emoticon

FYI, I'm waiting to hear back from our internal product management about this.
thumbnail
Davide Rossi, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Junior Member Beiträge: 55 Beitrittsdatum: 03.07.10 Neueste Beiträge
Tried all my cards...... (more hidden ones to come) Bet you knew!!! You past it on...emoticon
Will wait for internal product management too...

Thank you!!!
thumbnail
Alexander Chow, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Liferay Master Beiträge: 518 Beitrittsdatum: 20.07.05 Neueste Beiträge
In case you haven't noticed on the ticket, revert + delete file version is going through final review and should be in the next releases of 6.1.

Thanks for your patience!

Alex
thumbnail
Hitoshi Ozawa, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
That's great news Alexander! Will be looking forward to it. Will this be the one due next month?
thumbnail
Alexander Chow, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Liferay Master Beiträge: 518 Beitrittsdatum: 20.07.05 Neueste Beiträge
@Hitoshi, I would expect so.
thumbnail
Davide Rossi, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Junior Member Beiträge: 55 Beitrittsdatum: 03.07.10 Neueste Beiträge
Alexander and team, thanks...
Tested latest git... Works great...
Delete and revert are there in "nifty" new popup menu...
have to understand how revert works though...
Revert should mean to return to previous state doesn't it???
Because now revert is shown in popup menus starting from first 1.0 upward and last one (say 1.5) does not have revert.
When one clicks on revert (say 1.4) a new 2.0 version is created.
Can someone explain revert functionality in liferay???
Will read previous posts to find more info in any case...
Thanks again for great work.
thumbnail
Alexander Chow, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Liferay Master Beiträge: 518 Beitrittsdatum: 20.07.05 Neueste Beiträge
So, if you have a file with say versions 1.0, 1.1, 1.2, … 1.5. Reverting makes the latest version have the same data as an earlier version. So, you can back to revert 1.0-1.4. There is no point in reverting back to 1.5… because it already is 1.5.
thumbnail
Davide Rossi, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Junior Member Beiträge: 55 Beitrittsdatum: 03.07.10 Neueste Beiträge
So, if you have a file with say versions 1.0, 1.1, 1.2, … 1.5. Reverting makes the latest version have the same data as an earlier version. So, you can back to revert 1.0-1.4. There is no point in reverting back to 1.5… because it already is 1.5.


Wow that was fast!!!

Ok, made and attached a screenshot to show deleted 1.0 (also deleted 1.5, 1.4)
reverted 1.2 that became latest therefor 2.0

Thank you for clarity...
thumbnail
Davide Rossi, geändert vor 11 Jahren.

RE: Liferay 6.1.x Docs & Media How to delete version in Version History

Junior Member Beiträge: 55 Beitrittsdatum: 03.07.10 Neueste Beiträge
Alexander,
noticed and appreciated lots...
Following ticket carefully...
Thank you!
Davide