UEPlasticPlugin icon indicating copy to clipboard operation
UEPlasticPlugin copied to clipboard

Automate Refresh

Open ka-132274 opened this issue 5 years ago • 3 comments

Hi,

it would be great if the Refresh function could be automated to see if there are newer version of a file available without having to manually refresh.

We just had the problem that I checked out a blueprint, modified it and checked it in again. Afterwards, my colleague didn't refresh, the bp wasn't checked out any more, the bp wasn't shown as "new version available", and thus he was able to work further on the old version. So the problem showed up when he tried to check in his changes.

Is there already a way to prevent this?

ka-132274 avatar Feb 20 '20 06:02 ka-132274

Hello,

What version of the Engine and of the plugin are you using?

A first answer is that there is already such à mechanism in Editor to automate update status of file. As such, there is also a cache and à notion of timeout. So it is just bad luck. Also, all this is in Editor and not configurable.

So there are two course of actions; I could modify the Engine Editor and hope for integration, or add à workaround in the plugin

SRombauts avatar Feb 24 '20 07:02 SRombauts

namespace SourceControlConstants
{
	/** The maximum number of file/directory status requests we should dispatch in a tick */
	const int32 MaxStatusDispatchesPerTick = 64;

	/** The interval at which we refresh a file's state */
	const FTimespan StateRefreshInterval = FTimespan::FromMinutes(5.0);
}

SRombauts avatar Feb 25 '20 13:02 SRombauts

There is no easy way to add proper Editor Settings to the source control module, that is, not with a UI... I'll try to figure this out

SRombauts avatar Feb 25 '20 17:02 SRombauts

The correct answer is that using exclusive checkout, a.k.a. Locks, is solving the issue entirely. Even better with Smart Locks

SRombautsU avatar Jun 04 '24 06:06 SRombautsU