Option ForceLibraryHistoryCheck naming

You have a question or need an advice about how to do something? Ask it here!
Post Reply
User avatar
hdradio
Posts: 625
Joined: 10 Apr 2012 17:36
Location: Crete, Hellas
Option ForceLibraryHistoryCheck naming

Post by hdradio »

I was watching youtube video : ProppFrexx Histories, Restrictions and Rules.
You explain that the option "ForceLibraryHistoryCheck" is directly related to Script Max. History.
I think that this name should be "ForceScriptHistoryCheck". The word "library" points out to Media library instead of "script history library".
User avatar
hdradio
Posts: 625
Joined: 10 Apr 2012 17:36
Location: Crete, Hellas
Re: Option ForceLibraryHistoryCheck naming

Post by hdradio »

I did not understand from the video that it affects media library too (which you suggest let history=0).
PFOA user for almost 4 years and still learning.
User avatar
hdradio
Posts: 625
Joined: 10 Apr 2012 17:36
Location: Crete, Hellas
Re: Option ForceLibraryHistoryCheck naming

Post by hdradio »

I think that it would be easier to have 3 options. One for each history. I had told you that in the past.
SuppressGlobalHistoryCheck
SuppressScriptHistoryCheck
SuppressLibraryHistoryCheck.

Default would be check all histories.
That way is easy for anyone to understand what each option does.
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Option ForceLibraryHistoryCheck naming

Post by radio42 »

Yes, but now that we have these options, I must also ensure backward compatibility...
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Option ForceLibraryHistoryCheck naming

Post by radio42 »

Both are affected: the script library history AND the media library history.
So the "ForceLibraryHistoryCheck" enables both, the media library history (if defined) as well as the script library history (if defined).
That's why I have chosen this name.

If I would have used the name "ForceScriptHistoryCheck" - it would not be clear, that also the media library history is affected ;-)
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Option ForceLibraryHistoryCheck naming

Post by radio42 »

Yes, in case the media library history is set to 0 (as per default), there is NO media library history- that's why i didn't mention it explicitly in the video. Using a media library history is only useful in very very specific cases. So the rule of thumb is: don't use it unless you know that you need it and if you don't know why you might need it, you probably really don't need it ;-)

But if there would be a script library history AND a media library history defined, than the option 'ForceLibraryHistoryCheck' would apply to both.

Post Reply