Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Liferay 6.1.x Docs & Media How to delete version in Version History Davide N. P. Rossi April 20, 2012 7:52 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Hitoshi Ozawa April 22, 2012 6:51 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Davide N. P. Rossi April 23, 2012 7:54 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Alexander Chow April 23, 2012 4:15 PM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Hitoshi Ozawa April 23, 2012 8:05 PM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Davide N. P. Rossi April 24, 2012 2:11 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Alexander Chow April 24, 2012 2:44 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Ravi Kumar Gupta April 24, 2012 2:48 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Hitoshi Ozawa April 24, 2012 5:52 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Ravi Kumar Gupta April 24, 2012 6:48 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Hitoshi Ozawa April 24, 2012 7:16 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Ravi Kumar Gupta April 24, 2012 10:52 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Hitoshi Ozawa April 24, 2012 2:47 PM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Ravi Kumar Gupta April 25, 2012 2:48 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Davide N. P. Rossi April 24, 2012 3:06 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Alexander Chow April 24, 2012 3:28 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Davide N. P. Rossi April 24, 2012 3:50 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Alexander Chow April 26, 2012 5:49 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Hitoshi Ozawa April 26, 2012 5:52 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Alexander Chow April 26, 2012 5:58 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Davide N. P. Rossi April 27, 2012 3:58 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Alexander Chow April 27, 2012 4:00 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Davide N. P. Rossi April 27, 2012 4:22 AM
RE: Liferay 6.1.x Docs & Media How to delete version in Version History Davide N. P. Rossi April 26, 2012 5:56 AM
Davide N. P. Rossi
Liferay 6.1.x Docs & Media How to delete version in Version History
April 20, 2012 7:52 AM
Answer

Davide N. P. Rossi

Rank: Junior Member

Posts: 55

Join Date: July 3, 2010

Recent Posts

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....
Attachment

Attachment

Attachment

Attachments: liferay60versionhistory.png (12.7k), liferay61versionhistory.png (12.4k), liferay61versionselected.png (16.1k)
Hitoshi Ozawa
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 22, 2012 6:51 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

Yes, this is definitely a bug. Please create a jira issue for it.
Davide N. P. Rossi
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 23, 2012 7:54 AM
Answer

Davide N. P. Rossi

Rank: Junior Member

Posts: 55

Join Date: July 3, 2010

Recent Posts

Done!!! ISSUE LPS-26863
Alexander Chow
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 23, 2012 4:15 PM
Answer

Alexander Chow

LIFERAY STAFF

Rank: Liferay Master

Posts: 519

Join Date: July 19, 2005

Recent Posts

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?
Hitoshi Ozawa
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 23, 2012 8:05 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

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.
Davide N. P. Rossi
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 24, 2012 2:11 AM
Answer

Davide N. P. Rossi

Rank: Junior Member

Posts: 55

Join Date: July 3, 2010

Recent Posts

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?
Alexander Chow
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 24, 2012 2:44 AM
Answer

Alexander Chow

LIFERAY STAFF

Rank: Liferay Master

Posts: 519

Join Date: July 19, 2005

Recent Posts

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.
Ravi Kumar Gupta
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 24, 2012 2:48 AM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1216

Join Date: June 23, 2009

Recent Posts

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.

??
Davide N. P. Rossi
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 24, 2012 3:06 AM
Answer

Davide N. P. Rossi

Rank: Junior Member

Posts: 55

Join Date: July 3, 2010

Recent Posts

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
Alexander Chow
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 24, 2012 3:28 AM
Answer

Alexander Chow

LIFERAY STAFF

Rank: Liferay Master

Posts: 519

Join Date: July 19, 2005

Recent Posts

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.
Davide N. P. Rossi
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 24, 2012 3:50 AM
Answer

Davide N. P. Rossi

Rank: Junior Member

Posts: 55

Join Date: July 3, 2010

Recent Posts

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!!!
Hitoshi Ozawa
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 24, 2012 5:52 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

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.
Ravi Kumar Gupta
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 24, 2012 6:48 AM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1216

Join Date: June 23, 2009

Recent Posts

What did you do for that Hitoshi, a hook? If possible, can that be contributed?
Hitoshi Ozawa
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 24, 2012 7:16 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

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.
Ravi Kumar Gupta
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 24, 2012 10:52 AM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1216

Join Date: June 23, 2009

Recent Posts

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
Hitoshi Ozawa
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 24, 2012 2:47 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

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.
Ravi Kumar Gupta
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 25, 2012 2:48 AM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1216

Join Date: June 23, 2009

Recent Posts

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
Alexander Chow
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 26, 2012 5:49 AM
Answer

Alexander Chow

LIFERAY STAFF

Rank: Liferay Master

Posts: 519

Join Date: July 19, 2005

Recent Posts

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
Hitoshi Ozawa
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 26, 2012 5:52 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

That's great news Alexander! Will be looking forward to it. Will this be the one due next month?
Davide N. P. Rossi
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 26, 2012 5:56 AM
Answer

Davide N. P. Rossi

Rank: Junior Member

Posts: 55

Join Date: July 3, 2010

Recent Posts

Alexander,
noticed and appreciated lots...
Following ticket carefully...
Thank you!
Davide
Alexander Chow
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 26, 2012 5:58 AM
Answer

Alexander Chow

LIFERAY STAFF

Rank: Liferay Master

Posts: 519

Join Date: July 19, 2005

Recent Posts

@Hitoshi, I would expect so.
Davide N. P. Rossi
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 27, 2012 3:58 AM
Answer

Davide N. P. Rossi

Rank: Junior Member

Posts: 55

Join Date: July 3, 2010

Recent Posts

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.
Alexander Chow
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 27, 2012 4:00 AM
Answer

Alexander Chow

LIFERAY STAFF

Rank: Liferay Master

Posts: 519

Join Date: July 19, 2005

Recent Posts

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.
Davide N. P. Rossi
RE: Liferay 6.1.x Docs & Media How to delete version in Version History
April 27, 2012 4:22 AM
Answer

Davide N. P. Rossi

Rank: Junior Member

Posts: 55

Join Date: July 3, 2010

Recent Posts

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...
Attachment

Attachments: version-history-working.png (30.9k)