Keyword Feature Enhancement

If you are having a problem using Vault, post a message here.

Posts: 19
Joined: Mon Sep 14, 2015 12:34 pm
PostPosted: Thu Jun 06, 2019 7:54 pm
I'm not sure whether this is already available.

It would be useful if the history keyword had an option to limit the number of history records to report. At present it seems to be an all or nothing deal, but for most purposes only the most recent change(s) are needed.

Posts: 3599
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
PostPosted: Fri Jun 07, 2019 8:29 am
No that is not available. I'll add this as a feature request.

As a brute-force work around, at this time any unwanted expanded items would need to be trimmed from the file before it is committed back to the Vault server.
Jeff Clausius
SourceGear

Posts: 19
Joined: Mon Sep 14, 2015 12:34 pm
PostPosted: Fri Jun 07, 2019 9:29 am
jclausius wrote:No that is not available. I'll add this as a feature request.

As a brute-force work around, at this time any unwanted expanded items would need to be trimmed from the file before it is committed back to the Vault server.

Thanks Jeff.

I tend to submit in-progress work frequently, as in daily. With history enabled my historical comments can quickly become overwhelming in terms of quantity.

Perhaps there might be some scope for marking comments with a tag (or prefix) to enable/disable their inclusion in the history list.

Posts: 3599
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
PostPosted: Fri Jun 07, 2019 9:53 am
The feature request I added was to add some delineation that would put a limit / cap on the # of entries that could be found with KW (knocking off the bottom most entry once that limit is reached). There might be some difficulties as there are not necessarily delineation marks for stripping out old entries.

In any case, in your last post, I believe this suggestion is something new. Just to clarify, are you're asking for a checkbox option during the commit dialog to skip KW expansion during this commit?
Jeff Clausius
SourceGear

Posts: 19
Joined: Mon Sep 14, 2015 12:34 pm
PostPosted: Fri Jun 07, 2019 11:31 pm
jclausius wrote:In any case, in your last post, I believe this suggestion is something new. Just to clarify, are you're asking for a checkbox option during the commit dialog to skip KW expansion during this commit?

Please ignore that last comment, I was spouting gibberish.

The ability to limit the number of historical comments would be very useful. I recall that was an option in another version control program I used some time ago. It's implementation is probably fairly simple - increment a counter for each historical comment posted and once a given limit was reached then stop posting historical comments. There doesn't need to be a complex algorithm.

Rather than add additional functionality, this counter could be applied to ALL historical record processing, with a default limit on the number of records processed set arbitrarily high. Maybe that arbitrary limit could be defined in the web control panel for the source code project rather than being scripted in the keywords?

Posts: 3599
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
PostPosted: Mon Jun 10, 2019 8:12 am
OK. I understand, and perhaps should have asked for more details in my earlier post.

What I had recorded was to keep the last "top" of N comments. So, for example, KW has some type of formatting that says, "N:3". You check in version 1, 2, and 3, and the history expansion occurs. On the 4th modification / commit, version 1's item is edited out (since it is jut plain text at this point in time), and version 4 expansion is physically added to the file... So, the expanded text is shown for version 4, 3, and 2.

Next, Version 5 is made, and now version 2 is physically deleted from the file, leaving 5, 4, and 3. There are difficulties in this scenario in finding / editing out past comments and when used in binary files, this is EXTREMELY dangerous, as it could end up in file corruption.

I've adjusted your feature request with the updated information you've provided.

I know this is not a per repository setting as you requested, but as a work around, after you reach the threshold within any given file, on the next edit of the file, by removing the keywords too, expansion would stop in that specific file.
Jeff Clausius
SourceGear

Return to Support (Vault Professional)

Who is online

Users browsing this forum: No registered users and 2 guests

cron