You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Default Folder uses different config than user-created folders #6086
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Frankly, I'm not sure this is a bug. These apply in different situations. The 10 is set as a reasonable default value when creating a new folder, and will be visible as such in the config. The -1 (no maximum) applies if there is no value set at all in the config. I think it's reasonable to not apply a limit to the number of conflicts if the config value for the limit is not present.
Well, the whole "where do defaults come from"-situation is a bit nasty. My thoughts above are maybe just a rationalization, and it would be good with a central place for defaults that gets applied to new folders (and other config items) however they are created... cough#4224cough
What about taking the defaults away from UI/JS and add a /rest/system/defaultfolder endpoint. As a first step just as a GET operation. And if anyone tackles #4224 they can add a SET operation too. Then if we want any different defaults displayed in the UI, we just override that specific item there. The GET only change should be fairly simple.
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
AudriusButkevicius commentedon Oct 14, 2019
Given you found the code, you might as well pitch a PR.
calmh commentedon Oct 14, 2019
Frankly, I'm not sure this is a bug. These apply in different situations. The
10is set as a reasonable default value when creating a new folder, and will be visible as such in the config. The-1(no maximum) applies if there is no value set at all in the config. I think it's reasonable to not apply a limit to the number of conflicts if the config value for the limit is not present.AudriusButkevicius commentedon Oct 14, 2019
I guess auto-introduced folders have it inconsistent, where we might went it fixed.
calmh commentedon Oct 14, 2019
Well, the whole "where do defaults come from"-situation is a bit nasty. My thoughts above are maybe just a rationalization, and it would be good with a central place for defaults that gets applied to new folders (and other config items) however they are created... cough#4224cough
imsodin commentedon Oct 15, 2019
What about taking the defaults away from UI/JS and add a
/rest/system/defaultfolderendpoint. As a first step just as a GET operation. And if anyone tackles #4224 they can add a SET operation too. Then if we want any different defaults displayed in the UI, we just override that specific item there. The GET only change should be fairly simple.[-]Different defaults for maxConflicts[/-][+]Default Folder uses different config than user-created folders[/+]