•  
     
    story #10215 manage "svn access file" with REST API
Summary
Empty
manage "svn access file" with REST API
Empty

Update existing routes:

GET /svn/:id

{
    "id": int,
    ...
    "settings": {
        "commit_rules": {
            "mandatory_reference": boolean,
            "allow_commit_message_change": boolean
        },
        "access_file": "[/]\n* = \nContributors = r\n[/stuff]\nContributors = rw"
    }
}
  • As JSON doesn't support multi-line strings, the multiline is defined here with an array which each line corresponds to a line of svn access file
  • The content of "access_file" key corresponds to what is customizable by svn administrators in "Access control" tab in the web UI (it means that the global definition of [groups] as well as default [/] is not visible nor modifiable here but will be present at the begining of the final file anyway.

POST /svn

{
    ...
    "settings": {
        "commit_rules": {
            "mandatory_reference": boolean,
            "allow_commit_message_change": boolean
        },
        "access_file": "[/]\n* = \nContributors = r\n[/stuff]\nContributors = rw"
    }
}

PUT /svn/:id

{
    "id": int
    "settings": {
        "commit_rules": {
            "mandatory_reference": boolean,
            "allow_commit_message_change": boolean
        },
        "access_file": "[/]\n* = \nContributors = r\n[/stuff]\nContributors = rw"
    }
}
  • Changes are recorded in Project History (link to svn access file history)
Empty
Empty
Status
Empty
Done
Development
  • [ ] Does it involves User Interface? 
  • [ ] Are there any mockups?
  • [ ] Are permissions checked?
  • [ ] Does it need Javascript development?
  • [ ] Does it need a forge upgrade bucket?
  • [ ] Does it need to execute things in system events?
  • [ ] Does it impact project creation (templates)?
  • [ ] Is it exploratory?
Empty
Details
#10215
Manuel Vacelet (vaceletm)
2017-08-04 17:01
2017-05-15 11:26
3276

References

Follow-ups

User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
  • Permissions set to