Skip to content

Default Folder uses different config than user-created folders #6086

Closed

Description

@uok

While setting up a new folders I noticed that there are different defaults for maxConflicts

MaxConflicts int `xml:"maxConflicts" json:"maxConflicts" default:"-1"`

"maxConflicts": 10,

Expected value
-1

Activity

  1. added
    bug
    on Oct 14, 2019
  2. AudriusButkevicius commented on Oct 14, 2019

    @AudriusButkevicius
    Member

    Given you found the code, you might as well pitch a PR.

  3. calmh commented on Oct 14, 2019

    @calmh
    Member

    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.

  4. AudriusButkevicius commented on Oct 14, 2019

    @AudriusButkevicius
    Member

    I guess auto-introduced folders have it inconsistent, where we might went it fixed.

  5. calmh commented on Oct 14, 2019

    @calmh
    Member

    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

  6. imsodin commented on Oct 15, 2019

    @imsodin
    Member

    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.

  7. changed the title [-]Different defaults for maxConflicts[/-] [+]Default Folder uses different config than user-created folders[/+] on Dec 19, 2020
  8. added this to the v1.14.0 milestone on Feb 4, 2021
  9. added
    frozen-due-to-age
    on Feb 5, 2022
  10. locked and limited conversation to collaborators on Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions