gitorious:mainline.git
5 years agoRepo clone search controller site enforcement feature/use-case
Christian Johansen [Mon, 15 Apr 2013 13:33:08 +0000 (15:33 +0200)]
Repo clone search controller site enforcement

5 years agoRepository clone search use case
Christian Johansen [Mon, 15 Apr 2013 12:42:10 +0000 (14:42 +0200)]
Repository clone search use case

5 years agoUpdate use case to a 1.8.7 friendly version
Christian Johansen [Tue, 9 Apr 2013 13:17:22 +0000 (15:17 +0200)]
Update use case to a 1.8.7 friendly version

5 years agoInitialize repo and hooks for wikis
Christian Johansen [Tue, 9 Apr 2013 09:22:26 +0000 (11:22 +0200)]
Initialize repo and hooks for wikis

Cloning a repo for wikis makes no sense, they have no parent

5 years agoAdd project finder
Christian Johansen [Tue, 9 Apr 2013 09:18:52 +0000 (11:18 +0200)]
Add project finder

5 years agoAdd methods to group finder
Christian Johansen [Tue, 9 Apr 2013 08:19:12 +0000 (10:19 +0200)]
Add methods to group finder

5 years agoAvoid user finder throwing on non-existent record
Christian Johansen [Tue, 9 Apr 2013 08:19:05 +0000 (10:19 +0200)]
Avoid user finder throwing on non-existent record

5 years agoRequire necessary files
Christian Johansen [Tue, 9 Apr 2013 08:18:50 +0000 (10:18 +0200)]
Require necessary files

5 years agoCreate memberships from user id and role name
Christian Johansen [Tue, 9 Apr 2013 08:18:35 +0000 (10:18 +0200)]
Create memberships from user id and role name

5 years agoUpdate use case
Christian Johansen [Tue, 9 Apr 2013 08:13:10 +0000 (10:13 +0200)]
Update use case

5 years agoAdd CreateMembership use case
Christian Johansen [Mon, 8 Apr 2013 13:40:15 +0000 (15:40 +0200)]
Add CreateMembership use case

5 years agoAdd missing queue mapping for resque adapter
Christian Johansen [Mon, 8 Apr 2013 12:05:19 +0000 (14:05 +0200)]
Add missing queue mapping for resque adapter

5 years agoRefactor ProjectAdminRequired to AdminRequired
Christian Johansen [Mon, 8 Apr 2013 12:00:19 +0000 (14:00 +0200)]
Refactor ProjectAdminRequired to AdminRequired

5 years agoComplete repository cloner processor
Christian Johansen [Mon, 8 Apr 2013 09:37:45 +0000 (11:37 +0200)]
Complete repository cloner processor

- Add test case
- Mark repository as ready
- Include hooks

5 years agoMake sure use cases loads commands/input class
Christian Johansen [Mon, 8 Apr 2013 09:37:23 +0000 (11:37 +0200)]
Make sure use cases loads commands/input class

5 years agoSubscribe messaging backends to all queues
Christian Johansen [Mon, 8 Apr 2013 08:56:29 +0000 (10:56 +0200)]
Subscribe messaging backends to all queues

5 years agoValidate repository clones as well
Christian Johansen [Mon, 8 Apr 2013 08:55:49 +0000 (10:55 +0200)]
Validate repository clones as well

5 years agoProvide Gitorious::App for use case ease-of-use
Christian Johansen [Mon, 8 Apr 2013 08:36:32 +0000 (10:36 +0200)]
Provide Gitorious::App for use case ease-of-use

5 years agoExtract RepositoryClonesController and tests
Christian Johansen [Mon, 8 Apr 2013 08:20:30 +0000 (10:20 +0200)]
Extract RepositoryClonesController and tests

5 years agoReplace Mutations with UseCase
Christian Johansen [Sun, 7 Apr 2013 22:48:45 +0000 (00:48 +0200)]
Replace Mutations with UseCase

  - Introduce Repository use cases

5 years agoUpdating unit tests after Repository cmd refactors
Christian Johansen [Sun, 7 Apr 2013 18:49:59 +0000 (20:49 +0200)]
Updating unit tests after Repository cmd refactors

5 years agoClone repository command
Christian Johansen [Sun, 7 Apr 2013 18:48:14 +0000 (20:48 +0200)]
Clone repository command

5 years agoFix merge request model test
Christian Johansen [Sun, 7 Apr 2013 17:58:24 +0000 (19:58 +0200)]
Fix merge request model test

5 years agoMicro tests for repository creator
Christian Johansen [Sun, 7 Apr 2013 17:44:21 +0000 (19:44 +0200)]
Micro tests for repository creator

5 years agoUse new commands in MR processor
Christian Johansen [Sun, 7 Apr 2013 17:43:59 +0000 (19:43 +0200)]
Use new commands in MR processor

5 years agoUpdate use case, use new pre-condition flow control
Christian Johansen [Sun, 7 Apr 2013 17:43:21 +0000 (19:43 +0200)]
Update use case, use new pre-condition flow control

5 years agoRefactor repository commands
Christian Johansen [Sun, 7 Apr 2013 17:40:47 +0000 (19:40 +0200)]
Refactor repository commands

5 years agoUpdate use case gem
Christian Johansen [Fri, 5 Apr 2013 11:54:00 +0000 (13:54 +0200)]
Update use case gem

5 years agoRename use case
Christian Johansen [Thu, 4 Apr 2013 23:01:11 +0000 (01:01 +0200)]
Rename use case

5 years agoCreate repository use case (incomplete)
Christian Johansen [Thu, 4 Apr 2013 22:56:48 +0000 (00:56 +0200)]
Create repository use case (incomplete)

5 years agoAdd repository validator
Christian Johansen [Thu, 4 Apr 2013 22:54:11 +0000 (00:54 +0200)]
Add repository validator

5 years agoCreateProject use case uses WikiRepository command
Christian Johansen [Thu, 4 Apr 2013 22:50:19 +0000 (00:50 +0200)]
CreateProject use case uses WikiRepository command

5 years agoAdd new processors
Christian Johansen [Thu, 4 Apr 2013 22:11:42 +0000 (00:11 +0200)]
Add new processors

5 years agoUpgrade use_case
Christian Johansen [Thu, 4 Apr 2013 21:52:52 +0000 (23:52 +0200)]
Upgrade use_case

5 years agoAdd general purpose message hub
Christian Johansen [Thu, 4 Apr 2013 21:52:15 +0000 (23:52 +0200)]
Add general purpose message hub

5 years agoAdd repository creating commands
Christian Johansen [Thu, 4 Apr 2013 21:36:11 +0000 (23:36 +0200)]
Add repository creating commands

5 years agoChange private_project => private
Christian Johansen [Wed, 3 Apr 2013 13:35:55 +0000 (15:35 +0200)]
Change private_project => private

The parameter is already in the project hash, context is given

5 years agoUse create project use case in controller
Christian Johansen [Wed, 3 Apr 2013 13:13:18 +0000 (15:13 +0200)]
Use create project use case in controller

5 years agoUpdate use_case gem
Christian Johansen [Wed, 3 Apr 2013 13:12:34 +0000 (15:12 +0200)]
Update use_case gem

5 years agoAdd CreateProject use case
Christian Johansen [Wed, 3 Apr 2013 11:12:12 +0000 (13:12 +0200)]
Add CreateProject use case

5 years agoAdd assertion to wiki repository test
Christian Johansen [Wed, 3 Apr 2013 11:11:19 +0000 (13:11 +0200)]
Add assertion to wiki repository test

5 years agoAdd rate limiting use case pre-conditions
Christian Johansen [Wed, 3 Apr 2013 11:11:07 +0000 (13:11 +0200)]
Add rate limiting use case pre-conditions

5 years agoRefactor RecordThrottling to expose allowed?
Christian Johansen [Wed, 3 Apr 2013 11:10:47 +0000 (13:10 +0200)]
Refactor RecordThrottling to expose allowed?

RecordThrottling.allowed?(scope, actor, options) allows for the logic to
used without the exception being thrown when the limit is reached. Makes
it possible to reuse RecordThrottling for the RateLimit use case
pre-condition.

Eventually RecordThrottling will move entirely into RateLimit

5 years agoExtract WikiRepository helper class
Christian Johansen [Wed, 3 Apr 2013 09:27:54 +0000 (11:27 +0200)]
Extract WikiRepository helper class

It is not a sub-class of Repository, it just pulls out some of the
wiki-specific logic from it. Will eventually encapsulate more wiki
repository logic.

5 years agoDestroy SSH key use case
Christian Johansen [Tue, 2 Apr 2013 09:20:24 +0000 (11:20 +0200)]
Destroy SSH key use case

5 years agoEnable `bin/micro-test file1 file2 ...`
Christian Johansen [Tue, 2 Apr 2013 08:58:57 +0000 (10:58 +0200)]
Enable `bin/micro-test file1 file2 ...`

5 years agoRemove SshKey#to_key{file_format}
Christian Johansen [Tue, 2 Apr 2013 08:58:19 +0000 (10:58 +0200)]
Remove SshKey#to_key{file_format}

The keyfile format is a property of the SshKeyFile, not the SshKey
itself. Implementation was moved to the correct class, and is now used
like:

    file = SshKeyFile.new("~/.ssh/authorized_keys")
    file.add(SshKeyFile.format(SshKey.first))

The format is kept external to SshKeyFile#add so as to not needlessly
couple SshKeyFile with SshKey - you can still add keys from any
origin (because #add still takes a string).

5 years agoAdd DestroySshKey use case
Christian Johansen [Mon, 1 Apr 2013 23:00:47 +0000 (01:00 +0200)]
Add DestroySshKey use case

5 years agoRefactor SshKey management using UseCase
Christian Johansen [Mon, 1 Apr 2013 22:44:34 +0000 (00:44 +0200)]
Refactor SshKey management using UseCase

5 years agoMerge commit 'refs/merge-requests/2258' of git://gitorious.org/gitorious/mainline...
Christian Johansen [Mon, 8 Apr 2013 20:22:31 +0000 (22:22 +0200)]
Merge commit 'refs/merge-requests/2258' of git://gitorious.org/gitorious/mainline into next

5 years agoMerge commit 'refs/merge-requests/2256' of git://gitorious.org/gitorious/mainline...
Christian Johansen [Mon, 8 Apr 2013 20:20:52 +0000 (22:20 +0200)]
Merge commit 'refs/merge-requests/2256' of git://gitorious.org/gitorious/mainline into next

5 years agoAdded some configuration files to .gitignore 2255
Tuomas Jormola [Fri, 5 Apr 2013 23:18:15 +0000 (02:18 +0300)]
Added some configuration files to .gitignore

5 years agoFix path to /javascripts/all.js 2258
Tuomas Jormola [Fri, 5 Apr 2013 21:22:07 +0000 (00:22 +0300)]
Fix path to /javascripts/all.js

5 years agoFix crash in case there's no group with the same name as gitorious user 2256
Tuomas Jormola [Fri, 5 Apr 2013 16:57:09 +0000 (19:57 +0300)]
Fix crash in case there's no group with the same name as gitorious user

Etc.getgrnam throws an exception if group object resolving for the given
group name fails. Therefore we should handle the case when there's no
group with the same name as gitorious user name available and use
the primary gid of the gitorious user instead.

5 years agobin/migrate: fix bug, add cleanup
Thomas Kjeldahl Nilsson [Thu, 4 Apr 2013 08:32:28 +0000 (10:32 +0200)]
bin/migrate: fix bug, add cleanup

5 years agoAdd bin/migrate script
Thomas Kjeldahl Nilsson [Thu, 4 Apr 2013 06:38:40 +0000 (08:38 +0200)]
Add bin/migrate script

Simplified migration between Gitorius sites, using rsync and ssh.
Roughly equivalent to creating a snapshot on src host, then restoring
that snapshot on target host.

5 years agoBugfixes, improvements and SKIP_REPO option for backup cmds
Thomas Kjeldahl Nilsson [Fri, 1 Feb 2013 14:48:13 +0000 (15:48 +0100)]
Bugfixes, improvements and SKIP_REPO option for backup cmds

- Backup/restore Handle avatars
- Add SKIP_REPO option to snapshot/restore commands
- Bugfixes

5 years agoRefactor ProjectCreator to use model filter
Christian Johansen [Wed, 20 Mar 2013 22:10:15 +0000 (23:10 +0100)]
Refactor ProjectCreator to use model filter

5 years agoAdd RepositoryCreator mutation
Christian Johansen [Wed, 20 Mar 2013 22:10:00 +0000 (23:10 +0100)]
Add RepositoryCreator mutation

5 years ago"Remember" user input when new project is invalid
Christian Johansen [Wed, 20 Mar 2013 10:39:24 +0000 (11:39 +0100)]
"Remember" user input when new project is invalid

Refactor ProjectCreator mutation so we can build the invalid Project
instance with the provided params in the controller. This way, when we
re-render the `new` form, we prefill the values the user entered.

5 years agoRemove unnecessary symlink
Christian Johansen [Tue, 19 Mar 2013 12:58:56 +0000 (13:58 +0100)]
Remove unnecessary symlink

5 years agoHandle errors in SSH key creator
Christian Johansen [Tue, 19 Mar 2013 12:58:44 +0000 (13:58 +0100)]
Handle errors in SSH key creator

5 years agoAdd ProjectCreator mutation
Christian Johansen [Tue, 19 Mar 2013 12:57:21 +0000 (13:57 +0100)]
Add ProjectCreator mutation

5 years agoSensible https default port in sample config
Christian Johansen [Sun, 17 Mar 2013 11:57:42 +0000 (12:57 +0100)]
Sensible https default port in sample config

5 years agoFix (sometimes) failing OpenID test
Marius Mathiesen [Wed, 13 Mar 2013 09:45:08 +0000 (10:45 +0100)]
Fix (sometimes) failing OpenID test

5 years agoFix routing to allow dots in refnames
Christian Johansen [Tue, 12 Mar 2013 09:41:47 +0000 (10:41 +0100)]
Fix routing to allow dots in refnames

5 years agoChange GitShell#graph_log to allow refs with dots
Christian Johansen [Tue, 12 Mar 2013 09:41:29 +0000 (10:41 +0100)]
Change GitShell#graph_log to allow refs with dots

  - Explicitly accept ref as a last parameter
  - Don't sanitize safe arguments (i.e. hardcoded arguments)
  - Use Shellwords to sanitize user input/ref

5 years agoAdd user finder
Christian Johansen [Tue, 5 Mar 2013 12:44:31 +0000 (13:44 +0100)]
Add user finder

5 years agoIntroduce mutations: SshKeyCreator
Christian Johansen [Tue, 5 Mar 2013 12:41:37 +0000 (13:41 +0100)]
Introduce mutations: SshKeyCreator

5 years agoFix test setup
Christian Johansen [Tue, 5 Mar 2013 06:46:20 +0000 (07:46 +0100)]
Fix test setup

5 years agoMove finders to dedicated app/finders
Christian Johansen [Tue, 5 Mar 2013 06:46:11 +0000 (07:46 +0100)]
Move finders to dedicated app/finders

5 years agoDescribe configurable custom hooks in sample hooks
Christian Johansen [Fri, 1 Mar 2013 10:10:05 +0000 (11:10 +0100)]
Describe configurable custom hooks in sample hooks

5 years agobin/gitorious cleanup
Christian Johansen [Thu, 28 Feb 2013 20:32:30 +0000 (21:32 +0100)]
bin/gitorious cleanup

  - Use Pathname to clean up load path management
  - Export GITORIOUS_GIT_CLONE_URL and GITORIOUS_SSH_CLONE_URL

5 years agoFix example in documentation
Christian Johansen [Thu, 28 Feb 2013 14:09:02 +0000 (15:09 +0100)]
Fix example in documentation

5 years agoMake sure sync messaging adapter accepts pushes
Christian Johansen [Thu, 28 Feb 2013 14:08:50 +0000 (15:08 +0100)]
Make sure sync messaging adapter accepts pushes

5 years agoAdd custom hook test
Christian Johansen [Thu, 28 Feb 2013 14:08:35 +0000 (15:08 +0100)]
Add custom hook test

5 years agoConfigurable custom hooks
Christian Johansen [Thu, 28 Feb 2013 14:08:20 +0000 (15:08 +0100)]
Configurable custom hooks

  - Read custom hook script names from the configuration file
  - Refactor custom hooks to reduce duplication

5 years agoUpdate Centos init scripts for Sphinx
Marius Mathiesen [Thu, 28 Feb 2013 13:31:38 +0000 (14:31 +0100)]
Update Centos init scripts for Sphinx

Ultrasphinx is history, say hello to Thinking Sphinx.

5 years agoFix layout on system message
Marius Mathiesen [Thu, 28 Feb 2013 10:32:56 +0000 (11:32 +0100)]
Fix layout on system message

Move it to the top of the page, make it span the entire window horizontally

Conflicts:
app/views/layouts/application.html.erb

5 years agoAllow mass assignment of merge request statuses
Christian Johansen [Wed, 27 Feb 2013 09:09:06 +0000 (10:09 +0100)]
Allow mass assignment of merge request statuses

  - Fixes regression where new merge request statuses could no longer be
    created from the UI

5 years agoProject XML output includes repositories again
Christian Johansen [Wed, 27 Feb 2013 08:51:25 +0000 (09:51 +0100)]
Project XML output includes repositories again

  - Repositories was removed from the default XML output from projects
    when private repositories where implemented. An XML serializer for
    projects brings them back again.

5 years agoExpose User#avatar for mass-assignment
Marius Mathiesen [Tue, 26 Feb 2013 12:47:24 +0000 (13:47 +0100)]
Expose User#avatar for mass-assignment

This resolves a bug where a user's avatar wasn't updated after we
introduced white-listing of model attributes a few weeks back.

5 years agoUser#public_email should be assignable
Christian Johansen [Mon, 25 Feb 2013 09:08:10 +0000 (10:08 +0100)]
User#public_email should be assignable

  - Fixes bug where "public email" option in UI didn't do anything

5 years agoFix the issue with duplicate merge request versions
Marius Mathiesen [Wed, 20 Feb 2013 12:35:46 +0000 (13:35 +0100)]
Fix the issue with duplicate merge request versions

When creating a new merge request, a separate processor will ensure
the tracking repository exists and create a new version for the merge
request. This causes another push to occur (since doing git push will
trigger those), and the push processor would intercept this push and
create a version.

With this change, the push processor will only process merge request
updates, not deletions (it didn't before this change) and creations.

Bugs like these are hard to find...

Conflicts:
test/unit/processors/push_processor_test.rb

5 years agoGet Bane over HTTP
Christian Johansen [Wed, 20 Feb 2013 08:48:00 +0000 (09:48 +0100)]
Get Bane over HTTP

5 years agoCall renamed method
Christian Johansen [Tue, 19 Feb 2013 13:37:21 +0000 (14:37 +0100)]
Call renamed method

5 years agoCompletely remove OpenID from UI if disabled
Christian Johansen [Fri, 15 Feb 2013 14:43:27 +0000 (15:43 +0100)]
Completely remove OpenID from UI if disabled

5 years agoAdd configuration option: enable_registrations
Christian Johansen [Fri, 15 Feb 2013 14:24:24 +0000 (15:24 +0100)]
Add configuration option: enable_registrations

  - Based on original work by "deltachaos":
    https://gitorious.org/gitorious/mainline/merge_requests/2246

5 years agoSend exception mails from the sender email address
Christian Johansen [Fri, 15 Feb 2013 14:08:24 +0000 (15:08 +0100)]
Send exception mails from the sender email address

5 years agoTrigger hooks if there only are global hooks too
Christian Johansen [Fri, 15 Feb 2013 14:04:45 +0000 (15:04 +0100)]
Trigger hooks if there only are global hooks too

5 years agoUse ps -efww rather than ps -ef
Peter Kjellerstedt [Fri, 1 Feb 2013 09:56:52 +0000 (10:56 +0100)]
Use ps -efww rather than ps -ef

Without this atleast_one_process_name_matching() may fail to identify a
running process since ps will only output the first 80 characters of
information per line, and the string being searched for may be outside
of them.

This caused one unit test to fail for me:

test: Self-diagnostics should detect if any current ps entry contains
given string. (DiagnosticsTest)

Conflicts:
lib/gitorious/diagnostics.rb

5 years agoAdd config setting for default Open ID provider
Christian Johansen [Fri, 15 Feb 2013 13:54:48 +0000 (14:54 +0100)]
Add config setting for default Open ID provider

  - Based on https://gitorious.org/gitorious/mainline/merge_requests/221

5 years agoFixes the url of a comment event. The colon following the url is recognized by e...
Thomas Schamm [Sat, 18 Aug 2012 09:26:50 +0000 (11:26 +0200)]
Fixes the url of a comment event. The colon following the url is recognized by e.g. Apple Mail and others as part of the url.

5 years agoChanged edit url to _path rather than _url
Keloran [Fri, 15 Feb 2013 11:09:26 +0000 (11:09 +0000)]
Changed edit url to _path rather than _url
on nginx this can cause the url to be http://<upstream>/edit
rather than http://<site_address>/edit

Conflicts:
app/views/site/_owner_actions.html.erb

5 years agoMerge branch 'next' of gitorious.org:gitorious/mainline into next
Marius Mathiesen [Fri, 15 Feb 2013 13:20:04 +0000 (14:20 +0100)]
Merge branch 'next' of gitorious.org:gitorious/mainline into next

5 years agoMake bin/bundle work
Marius Mathiesen [Fri, 15 Feb 2013 11:36:11 +0000 (12:36 +0100)]
Make bin/bundle work

Previously, all commands in bin/ would require all gems in the Gemfile
to be installed. This doesn't make a lot of sense for bin/bundle.

The updated bin/bundle can be used to install gems:
- it's callable from anywhere on the file system
- it will change gid/uid to the right user
- it will set up the correct Rails.env

/path/to/gitorious/bin/bundle install now works.

Conflicts:
bin/bundle
bin/setup.rb

5 years agoAllow non-standard SSH ports
Christian Johansen [Fri, 15 Feb 2013 13:16:40 +0000 (14:16 +0100)]
Allow non-standard SSH ports

  - Originally implemented by Michael Hauspie in
    https://gitorious.org/gitorious/mainline/merge_requests/198

5 years agoUse git group if available
Marius Mathiesen [Fri, 15 Feb 2013 11:27:55 +0000 (12:27 +0100)]
Use git group if available

If the git user's primary group isn't "git", but the "git" group is
available, look up the gid for that group for scripts in bin/.

5 years agoMerge branch 'next' of gitorious.org:gitorious/mainline into next
Marius Mathiesen [Fri, 15 Feb 2013 13:09:38 +0000 (14:09 +0100)]
Merge branch 'next' of gitorious.org:gitorious/mainline into next

5 years agoOptionally restrict team creation to site admins
Marius Mathiesen [Mon, 11 Feb 2013 13:45:10 +0000 (14:45 +0100)]
Optionally restrict team creation to site admins

By specifying in config/gitorious.yml:

  only_site_admins_can_create_teams: true

only site admin users will be allowed to create teams.  This will hide
the "new team" links from the UI and enforce this restriction in
controllers.

Conflicts:
config/gitorious.sample.yml