pillar-svnman.git
17 months agoRemove rsync_ui.sh
Sybren A. Stüvel [Tue, 13 Feb 2018 09:02:00 +0000 (10:02 +0100)]
Remove rsync_ui.sh

No longer need it since Blender Cloud commit 94ef616593e85

19 months agoFix for Werkzeug < 0.12
Sybren A. Stüvel [Fri, 8 Dec 2017 16:04:41 +0000 (17:04 +0100)]
Fix for Werkzeug < 0.12

20 months agoDon't give svn-use to demo users
Sybren A. Stüvel [Tue, 14 Nov 2017 15:50:25 +0000 (16:50 +0100)]
Don't give svn-use to demo users

20 months agoSet name to 'svnman' to match the module to import.
Sybren A. Stüvel [Tue, 14 Nov 2017 15:28:26 +0000 (16:28 +0100)]
Set name to 'svnman' to match the module to import.

20 months agoFixed rsync_ui.sh
Sybren A. Stüvel [Tue, 14 Nov 2017 15:21:43 +0000 (16:21 +0100)]
Fixed rsync_ui.sh

20 months agoFixed bug deleting repository
Sybren A. Stüvel [Fri, 10 Nov 2017 08:57:33 +0000 (09:57 +0100)]
Fixed bug deleting repository

It left the list of users intact, causing desynchronisation issues when
creating a new repo.

20 months agoFixed template rendering bug when no users are granted access
Sybren A. Stüvel [Thu, 9 Nov 2017 16:37:08 +0000 (17:37 +0100)]
Fixed template rendering bug when no users are granted access

20 months agoDirectly grant access to user creating the repository
Sybren A. Stüvel [Thu, 9 Nov 2017 16:36:52 +0000 (17:36 +0100)]
Directly grant access to user creating the repository

20 months agoFixed AJAX error msg + some layout tweaks
Sybren A. Stüvel [Thu, 9 Nov 2017 16:36:33 +0000 (17:36 +0100)]
Fixed AJAX error msg + some layout tweaks

20 months agoBasic SVN management web UI works.
Sybren A. Stüvel [Thu, 9 Nov 2017 15:26:47 +0000 (16:26 +0100)]
Basic SVN management web UI works.

20 months agoOnly construct the set of hashes to replace once
Sybren A. Stüvel [Thu, 9 Nov 2017 10:01:14 +0000 (11:01 +0100)]
Only construct the set of hashes to replace once

20 months agoNicer permission handling
Sybren A. Stüvel [Thu, 9 Nov 2017 10:01:04 +0000 (11:01 +0100)]
Nicer permission handling

20 months agoStarted working on granting access to repo users via web interface.
Sybren A. Stüvel [Wed, 8 Nov 2017 16:30:18 +0000 (17:30 +0100)]
Started working on granting access to repo users via web interface.

20 months agoCheck project access on repo deletion too
Sybren A. Stüvel [Wed, 8 Nov 2017 16:29:55 +0000 (17:29 +0100)]
Check project access on repo deletion too

20 months agoRemoved svn-specifics cap from admin role
Sybren A. Stüvel [Wed, 8 Nov 2017 15:42:41 +0000 (16:42 +0100)]
Removed svn-specifics cap from admin role

We have no use for them yet.

20 months agoAdded some web UI so that sidebar and index etc. are at least functional.
Sybren A. Stüvel [Wed, 8 Nov 2017 15:14:15 +0000 (16:14 +0100)]
Added some web UI so that sidebar and index etc. are at least functional.

20 months agoAdded a lot of unittests and fixed some small issues
Sybren A. Stüvel [Wed, 8 Nov 2017 14:05:08 +0000 (15:05 +0100)]
Added a lot of unittests and fixed some small issues

20 months agoCheck project for PUT access before allowing repository creation.
Sybren A. Stüvel [Wed, 8 Nov 2017 11:59:43 +0000 (12:59 +0100)]
Check project for PUT access before allowing repository creation.

We'll need to save the project later, and without PUT access this is not
possible. Better check it before creating the actual repository.

20 months agoStore the repository ID as returned by SVNMan
Sybren A. Stüvel [Wed, 8 Nov 2017 11:59:09 +0000 (12:59 +0100)]
Store the repository ID as returned by SVNMan

This makes it possible for SVNMan to perform some manipulation on the
repository ID.

20 months agoMake sure that the test project can be saved via Eve
Sybren A. Stüvel [Wed, 8 Nov 2017 11:57:10 +0000 (12:57 +0100)]
Make sure that the test project can be saved via Eve

20 months agoFixed mistake in RepoDescription definition
Sybren A. Stüvel [Wed, 8 Nov 2017 11:56:52 +0000 (12:56 +0100)]
Fixed mistake in RepoDescription definition

20 months agoBugfix for defaultdict
Sybren A. Stüvel [Wed, 8 Nov 2017 09:36:11 +0000 (10:36 +0100)]
Bugfix for defaultdict

20 months agoOnly use $2y$ BCrypt hash type markers
Sybren A. Stüvel [Wed, 8 Nov 2017 09:36:02 +0000 (10:36 +0100)]
Only use $2y$ BCrypt hash type markers

The contents of $2a$, $2b$ and $2y$ are exactly the same, but $2y$
indicates that certain bugs from the past have been fixed. Since these bugs
were never in the Python implementation of BCrypt, we don't care. However,
Apache only accepts $2y$ in its htpasswd file.

20 months agoDifferent variables for API endpoint and svn checkout URL.
Sybren A. Stüvel [Wed, 8 Nov 2017 09:35:02 +0000 (10:35 +0100)]
Different variables for API endpoint and svn checkout URL.

The API endpoint could be reachable via another route (like a VPN
connection between the Pillar and SVN hosts), whereas the svn checkout
URL is meant for external use.

20 months agoAllow deletion of repositories
Sybren A. Stüvel [Fri, 3 Nov 2017 17:00:16 +0000 (18:00 +0100)]
Allow deletion of repositories

20 months agoAllow creation of SVN repositories
Sybren A. Stüvel [Fri, 3 Nov 2017 16:38:43 +0000 (17:38 +0100)]
Allow creation of SVN repositories

20 months agoRemoved superfluous f''
Sybren A. Stüvel [Fri, 3 Nov 2017 14:56:03 +0000 (15:56 +0100)]
Removed superfluous f''

20 months agoMore logging
Sybren A. Stüvel [Fri, 3 Nov 2017 14:55:53 +0000 (15:55 +0100)]
More logging

20 months agoAdded CLI command for repo deletion
Sybren A. Stüvel [Fri, 3 Nov 2017 14:55:42 +0000 (15:55 +0100)]
Added CLI command for repo deletion

20 months agoAdded creation of SVN repos
Sybren A. Stüvel [Fri, 3 Nov 2017 13:35:50 +0000 (14:35 +0100)]
Added creation of SVN repos

20 months agoWrap all HTTP errors from SVNMan API in RemoteErrors
Sybren A. Stüvel [Fri, 3 Nov 2017 13:35:37 +0000 (14:35 +0100)]
Wrap all HTTP errors from SVNMan API in RemoteErrors

This ensures that errors on the API side aren't sent as-is to the
Pillar web client. For example, a 404 indicating that a repository
cannot be found shouldn't automatically result in a 404 sent to the
browser.

20 months agoUsing utility function attrs_extra.string()
Sybren A. Stüvel [Fri, 3 Nov 2017 13:34:38 +0000 (14:34 +0100)]
Using utility function attrs_extra.string()

20 months agoRemoved superflous (object)
Sybren A. Stüvel [Fri, 3 Nov 2017 13:34:17 +0000 (14:34 +0100)]
Removed superflous (object)

20 months agoMoved function around
Sybren A. Stüvel [Fri, 3 Nov 2017 12:55:29 +0000 (13:55 +0100)]
Moved function around

20 months agoAdded modify_access call + CLI interface
Sybren A. Stüvel [Fri, 3 Nov 2017 12:55:13 +0000 (13:55 +0100)]
Added modify_access call + CLI interface

20 months agoDon't include password in repr()
Sybren A. Stüvel [Fri, 3 Nov 2017 12:44:05 +0000 (13:44 +0100)]
Don't include password in repr()

20 months agoRaise RepoAlreadyExists exception instead of generic HTTP exception
Sybren A. Stüvel [Fri, 3 Nov 2017 12:43:54 +0000 (13:43 +0100)]
Raise RepoAlreadyExists exception instead of generic HTTP exception

IMO '409 Conflict' isn't descriptive enough to handle at the application
level (contrary to things like '404 Not Found')

20 months agoRenamed remote.Remote to remote.API to prevent stutter.
Sybren A. Stüvel [Fri, 3 Nov 2017 12:43:09 +0000 (13:43 +0100)]
Renamed remote.Remote to remote.API to prevent stutter.

20 months agoFixed issue with auth
Sybren A. Stüvel [Fri, 3 Nov 2017 12:41:00 +0000 (13:41 +0100)]
Fixed issue with auth

Apparently setting session.auth doesn't work as I expected it to work.

20 months agoInitial checkin of some base functionality
Sybren A. Stüvel [Fri, 3 Nov 2017 11:16:13 +0000 (12:16 +0100)]
Initial checkin of some base functionality