opensuse:yast-rest-service.git
8 years agoMake Scr a singleton
Klaus Kämpf [Wed, 6 May 2009 14:38:39 +0000 (16:38 +0200)]
Make Scr a singleton

Thereby moving the D-Bus access stuff to the initialization

8 years agoExample for a deeply nested controller
Klaus Kämpf [Wed, 6 May 2009 12:01:47 +0000 (14:01 +0200)]
Example for a deeply nested controller

8 years agomanually map the core permissions controller. May be we can ship the core controllers...
Duncan Mac-Vicar P [Tue, 5 May 2009 13:12:44 +0000 (15:12 +0200)]
manually map the core permissions controller. May be we can ship the core controllers in the core app config/resources later

8 years agoMerge with origin/master
Klaus Kämpf [Mon, 4 May 2009 13:20:53 +0000 (15:20 +0200)]
Merge with origin/master

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service into kkaempf
Duncan Mac-Vicar P [Mon, 4 May 2009 13:16:25 +0000 (15:16 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service into kkaempf

8 years agotest "/" and "/resources" without /yast prefix
Klaus Kämpf [Mon, 4 May 2009 12:36:38 +0000 (14:36 +0200)]
test "/" and "/resources" without /yast prefix

8 years agoremove /yast prefix
Klaus Kämpf [Mon, 4 May 2009 12:36:16 +0000 (14:36 +0200)]
remove /yast prefix

8 years agodrop /yast prefix
Klaus Kämpf [Mon, 4 May 2009 12:34:48 +0000 (14:34 +0200)]
drop /yast prefix

Drop /yast prefix from routing, make it a generic option of the http
server setup.

Add 'reset' method to allow testing without plugins

8 years agoResourceController -> ResourcesController (plural)
Klaus Kämpf [Mon, 4 May 2009 12:11:31 +0000 (14:11 +0200)]
ResourceController -> ResourcesController (plural)

8 years agothis space should not be there
Duncan Mac-Vicar P [Mon, 4 May 2009 11:49:32 +0000 (13:49 +0200)]
this space should not be there

8 years agoOnly test resources we want to test
Klaus Kämpf [Thu, 30 Apr 2009 12:36:22 +0000 (14:36 +0200)]
Only test resources we want to test

8 years agoFail on purpose, document it
Klaus Kämpf [Thu, 30 Apr 2009 12:35:38 +0000 (14:35 +0200)]
Fail on purpose, document it

8 years agoAdd reset function for a clear start during testing
Klaus Kämpf [Thu, 30 Apr 2009 12:34:57 +0000 (14:34 +0200)]
Add reset function for a clear start during testing

8 years agoRails controllers are ALWAYS plurals, even when they are singletons.
Duncan Mac-Vicar P [Wed, 29 Apr 2009 15:41:50 +0000 (17:41 +0200)]
Rails controllers are ALWAYS plurals, even when they are singletons.
Anyway, resources is not a singleton. fix name.

Route resources by default.

fix array type in resources template

8 years agoFix url and path
Klaus Kämpf [Wed, 29 Apr 2009 15:22:04 +0000 (17:22 +0200)]
Fix url and path

8 years agoAdapt plugins to new resource registration format
Klaus Kämpf [Wed, 29 Apr 2009 15:14:55 +0000 (17:14 +0200)]
Adapt plugins to new resource registration format

8 years agoAdapt resource controller and test to interface/controller resource registration...
Klaus Kämpf [Wed, 29 Apr 2009 15:04:47 +0000 (17:04 +0200)]
Adapt resource controller and test to interface/controller resource registration format

8 years agoAdapt routing tests to interface/controller/singular
Klaus Kämpf [Wed, 29 Apr 2009 14:37:38 +0000 (16:37 +0200)]
Adapt routing tests to interface/controller/singular

8 years agoAdapt resource description to interface/controller
Klaus Kämpf [Wed, 29 Apr 2009 14:27:08 +0000 (16:27 +0200)]
Adapt resource description to interface/controller

8 years agoeditor backup ?!
Klaus Kämpf [Wed, 29 Apr 2009 12:09:03 +0000 (14:09 +0200)]
editor backup ?!

8 years agoremove leftover
Klaus Kämpf [Wed, 29 Apr 2009 12:08:13 +0000 (14:08 +0200)]
remove leftover

8 years agotask to install policies
Duncan Mac-Vicar P [Sun, 26 Apr 2009 20:00:31 +0000 (22:00 +0200)]
task to install policies

8 years agomanually tweak permissions
Duncan Mac-Vicar P [Sun, 26 Apr 2009 20:00:08 +0000 (22:00 +0200)]
manually tweak permissions

8 years agofix typo
Duncan Mac-Vicar P [Sun, 26 Apr 2009 18:10:58 +0000 (20:10 +0200)]
fix typo

8 years ago- First, moved all *-plugin to plugins/*
Duncan Mac-Vicar P [Sun, 26 Apr 2009 14:26:28 +0000 (16:26 +0200)]
- First, moved all *-plugin to plugins/*
  plugins don't have src/ directory anymore, they start at the top-level
(app, controller...)
  and the spec and dist files are in the package/ directory.
  Reasoning:
  1.- all rails plugins are hosted that way. If some day we split a
plugin, the plugin has to start in the directory where lib, app, etc
are. That allows people to use script/plugin. It is a convention,
changing it breaks any existing rails tools.
  2.- originally, goal was to avoid symlinking and finding plugins
automatically in the source code. We have to make running from the
source tree easy if we want lazy people to help.
  3.- Originally, I wrote my own Rails::Plugin::Locator which was able
to find plugins with /src directory in the source tree. It worked pretty
well, but Rails::Plugin defines Rails::Plugin#name as
File.basename(@directory), which means, all plugins got the name :src.
So Rails assume the directory is the name of the plugin.

- Changed how service routes are loaded. We don't go over
  vendor/plugins/* anymore, but over loaded plugins directory(). That
allows for what is below.
- We automatically find plugins in the source tree
  RAILS_ROOT/../plugins, so no need to symlink. Later we could also find
plugins one level more up, so plugins checked out from a separate git
repo are also found, and make development a breeze.
- Therefore ResourceRegistration has now register_plugin() method, and
  that one is used.

- I disabled the use of namespace and domain for now. Just because the
  client stopped working, and the discussion with Klaus about it was
still in the middle. Note, everything is there, just the route_all
method does not take them into account.

8 years agoyaml files are named .yml ok?
Duncan Mac-Vicar P [Sat, 25 Apr 2009 11:24:19 +0000 (13:24 +0200)]
yaml files are named .yml ok?

8 years agologin works again
Duncan Mac-Vicar P [Fri, 24 Apr 2009 16:43:45 +0000 (18:43 +0200)]
login works again

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service
Duncan Mac-Vicar P [Thu, 23 Apr 2009 22:33:53 +0000 (00:33 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service

Conflicts:
webservice/config/routes.rb

8 years agofix login
Duncan Mac-Vicar P [Thu, 23 Apr 2009 22:29:49 +0000 (00:29 +0200)]
fix login

8 years agoRaise with message
Klaus Kämpf [Thu, 23 Apr 2009 19:22:30 +0000 (21:22 +0200)]
Raise with message

8 years agoAllow empty resource description
Klaus Kämpf [Thu, 23 Apr 2009 19:11:16 +0000 (21:11 +0200)]
Allow empty resource description

This just uses the parent dir as domain and the file name as resource
name.

8 years agoBe quiet
Klaus Kämpf [Thu, 23 Apr 2009 19:02:21 +0000 (21:02 +0200)]
Be quiet

8 years agoDo dynamic routing only during test, development or production
Klaus Kämpf [Thu, 23 Apr 2009 18:58:36 +0000 (20:58 +0200)]
Do dynamic routing only during test, development or production

But not while running e.g. "rake db:migrate" from cmdline.

FIXME: This needs a better test, checking ENV[] is not sufficient
because it breaks if you have an explicit "export RAILS_ENV=...'

8 years agochicken egg problem, migrate reads routes, but routes require the
Duncan Mac-Vicar P [Thu, 23 Apr 2009 16:57:39 +0000 (18:57 +0200)]
chicken egg problem, migrate reads routes, but routes require the
db. Make the workaround nicer.

8 years agoyaml already has lists
Duncan Mac-Vicar P [Thu, 23 Apr 2009 15:11:23 +0000 (17:11 +0200)]
yaml already has lists

8 years agoreadd
Duncan Mac-Vicar P [Thu, 23 Apr 2009 15:11:08 +0000 (17:11 +0200)]
readd

8 years agovarious fixes and unbreakage
Duncan Mac-Vicar P [Thu, 23 Apr 2009 15:01:00 +0000 (17:01 +0200)]
various fixes and unbreakage

8 years agoAdd params tests
Klaus Kämpf [Thu, 23 Apr 2009 13:29:46 +0000 (15:29 +0200)]
Add params tests

8 years agoAdd tests for xml and html output format
Klaus Kämpf [Thu, 23 Apr 2009 13:24:46 +0000 (15:24 +0200)]
Add tests for xml and html output format

8 years agoreduce log output
Klaus Kämpf [Thu, 23 Apr 2009 13:23:44 +0000 (15:23 +0200)]
reduce log output

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service
Klaus Kämpf [Thu, 23 Apr 2009 13:08:44 +0000 (15:08 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service

8 years agoInitial ResourceController test
Klaus Kämpf [Thu, 23 Apr 2009 13:06:25 +0000 (15:06 +0200)]
Initial ResourceController test

And remove "include ActionController::UrlWriter" as is interferes with
default_url_options from action_controller/base.rb. Grrrr.

8 years agotaking care if the tables does not exist
Stefan Schubert [Thu, 23 Apr 2009 12:42:05 +0000 (14:42 +0200)]
taking care if the tables does not exist

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service
Stefan Schubert [Thu, 23 Apr 2009 08:43:36 +0000 (10:43 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service

8 years agoadded new path
Stefan Schubert [Thu, 23 Apr 2009 08:43:27 +0000 (10:43 +0200)]
added new path

8 years agoAdd tests for correct pluralization
Klaus Kämpf [Thu, 23 Apr 2009 08:21:26 +0000 (10:21 +0200)]
Add tests for correct pluralization

Rails always using the plural name for the controller and this is
reflected in the current ways of RESTful routing.

This commit adds tests for proper pluralization since its essential
for proper routing.

8 years agoTest routes for all resources
Klaus Kämpf [Thu, 23 Apr 2009 08:03:15 +0000 (10:03 +0200)]
Test routes for all resources

Also rename 'interfaces.yml' to 'connections.yml' to test renaming the
resource name.
The old one (file 'interfaces.yml', name 'interface') triggered an
error since the name was singular. This will be moved to an extra test.

8 years agoDecrease log verbosity
Klaus Kämpf [Wed, 22 Apr 2009 15:19:22 +0000 (17:19 +0200)]
Decrease log verbosity

8 years agoRefactor resource discovery to an initializer
Klaus Kämpf [Wed, 22 Apr 2009 15:14:21 +0000 (17:14 +0200)]
Refactor resource discovery to an initializer

8 years agoDont versionize via URL prefix
Klaus Kämpf [Wed, 22 Apr 2009 15:04:05 +0000 (17:04 +0200)]
Dont versionize via URL prefix

Instead, move the /yast prefix to routing, which also gives URLs like
/yast.xml or /yast.html for resource inspection.

8 years agoClean up routing
Klaus Kämpf [Wed, 22 Apr 2009 15:03:37 +0000 (17:03 +0200)]
Clean up routing

8 years agogive ResourceRegistration definition a proper filename
Klaus Kämpf [Wed, 22 Apr 2009 15:02:30 +0000 (17:02 +0200)]
give ResourceRegistration definition a proper filename

8 years agomoved yast commandline to an own plugin
Stefan Schubert [Wed, 22 Apr 2009 12:31:43 +0000 (14:31 +0200)]
moved yast commandline to an own plugin

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service
Stefan Schubert [Wed, 22 Apr 2009 11:35:55 +0000 (13:35 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service

Conflicts:

webservice/config/routes.rb

8 years agoupdate .gitignore
Stefan Schubert [Wed, 22 Apr 2009 11:25:35 +0000 (13:25 +0200)]
update .gitignore

8 years agoDisable route setup outside rails, e.g in db:migrate
Klaus Kämpf [Wed, 22 Apr 2009 11:10:52 +0000 (13:10 +0200)]
Disable route setup outside rails, e.g in db:migrate

8 years agodrop prefix from route test
Klaus Kämpf [Wed, 22 Apr 2009 10:39:03 +0000 (12:39 +0200)]
drop prefix from route test

8 years agoadded framework for commandline interface
Stefan Schubert [Wed, 22 Apr 2009 10:39:00 +0000 (12:39 +0200)]
added framework for commandline interface

8 years agodrop yast/ prefix from routes, its global in Rails
Klaus Kämpf [Wed, 22 Apr 2009 10:38:12 +0000 (12:38 +0200)]
drop yast/ prefix from routes, its global in Rails

8 years agoEnable dynamic resources
Klaus Kämpf [Wed, 22 Apr 2009 10:37:38 +0000 (12:37 +0200)]
Enable dynamic resources

8 years agoremove version from URI prefix
Klaus Kämpf [Wed, 22 Apr 2009 10:36:43 +0000 (12:36 +0200)]
remove version from URI prefix

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service
Klaus Kämpf [Wed, 22 Apr 2009 09:30:18 +0000 (11:30 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service

8 years agoThe URI prefix does not define the versio
Klaus Kämpf [Wed, 22 Apr 2009 09:29:46 +0000 (11:29 +0200)]
The URI prefix does not define the versio

8 years agomoved patch handling to an own plugin
Stefan Schubert [Tue, 21 Apr 2009 16:03:29 +0000 (18:03 +0200)]
moved patch handling to an own plugin

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service
Stefan Schubert [Tue, 21 Apr 2009 15:34:28 +0000 (17:34 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service

8 years agoadded framework for patches
Stefan Schubert [Tue, 21 Apr 2009 15:34:13 +0000 (17:34 +0200)]
added framework for patches

8 years agoFix comment
Klaus Kämpf [Tue, 21 Apr 2009 15:14:32 +0000 (17:14 +0200)]
Fix comment

8 years agoFirst route test
Klaus Kämpf [Tue, 21 Apr 2009 15:14:03 +0000 (17:14 +0200)]
First route test

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service
Klaus Kämpf [Tue, 21 Apr 2009 14:42:57 +0000 (16:42 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service

8 years agoTest dynamic resource creation from yaml files
Klaus Kämpf [Tue, 21 Apr 2009 14:40:25 +0000 (16:40 +0200)]
Test dynamic resource creation from yaml files

Resources are described by yaml (either .yaml or .yml extension) files
which contain name, domain (aka namespace), and tags. All these values
can be used by clients to find the resources they need.

Specifying resource domain or name explicitly is optional. The yaml
file name give a default for the name, the parent directory the
default for the domain.

8 years agofixed permissions
Stefan Schubert [Tue, 21 Apr 2009 14:20:57 +0000 (16:20 +0200)]
fixed permissions

8 years agodo not need these helper classes
Stefan Schubert [Tue, 21 Apr 2009 13:44:27 +0000 (15:44 +0200)]
do not need these helper classes

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service
Stefan Schubert [Tue, 21 Apr 2009 13:42:08 +0000 (15:42 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service

8 years agomoved users module to a plugin
Stefan Schubert [Tue, 21 Apr 2009 13:41:51 +0000 (15:41 +0200)]
moved users module to a plugin

8 years agoInitial ResourceRegistration test
Klaus Kämpf [Tue, 21 Apr 2009 13:38:28 +0000 (15:38 +0200)]
Initial ResourceRegistration test

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service
Klaus Kämpf [Tue, 21 Apr 2009 13:29:38 +0000 (15:29 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service

8 years agoInitial tests for domain and resource model
Klaus Kämpf [Tue, 21 Apr 2009 13:29:28 +0000 (15:29 +0200)]
Initial tests for domain and resource model

8 years agoadded framwork for users plugin
Stefan Schubert [Tue, 21 Apr 2009 12:45:14 +0000 (14:45 +0200)]
added framwork for users plugin

8 years agoRemove obsolete migrations
Klaus Kämpf [Tue, 21 Apr 2009 12:38:01 +0000 (14:38 +0200)]
Remove obsolete migrations

These migrations were used to defined the resource models through a
database. This is not needed any more as resources are defined in
app/models.

8 years agoRemove all unit tests is preparation for pluggable resources
Klaus Kämpf [Tue, 21 Apr 2009 12:22:48 +0000 (14:22 +0200)]
Remove all unit tests is preparation for pluggable resources

8 years agoRemove all functional tests for now in preparation for pluggable resources
Klaus Kämpf [Tue, 21 Apr 2009 12:20:44 +0000 (14:20 +0200)]
Remove all functional tests for now in preparation for pluggable resources

8 years agoTables dropped in db/migrate
Klaus Kämpf [Tue, 21 Apr 2009 12:10:37 +0000 (14:10 +0200)]
Tables dropped in db/migrate

8 years agoDropped from migrations
Klaus Kämpf [Tue, 21 Apr 2009 10:24:55 +0000 (12:24 +0200)]
Dropped from migrations

see db/migrate/2009021{6,7,8,9}*

8 years agoMoved to systemtime-plugin
Klaus Kämpf [Tue, 21 Apr 2009 10:04:12 +0000 (12:04 +0200)]
Moved to systemtime-plugin

8 years agomoved to systemtime-plugin
Klaus Kämpf [Tue, 21 Apr 2009 09:01:05 +0000 (11:01 +0200)]
moved to systemtime-plugin

8 years agoDon't track log files in git
Klaus Kämpf [Tue, 21 Apr 2009 08:22:27 +0000 (10:22 +0200)]
Don't track log files in git

8 years agoRemove non-functional test, belongs to a plugin anyways
Klaus Kämpf [Tue, 21 Apr 2009 08:21:40 +0000 (10:21 +0200)]
Remove non-functional test, belongs to a plugin anyways

8 years agoTest::Unit::TestCase -> ActiveSupport::TestCase, for Rails 2.3
Klaus Kämpf [Tue, 21 Apr 2009 08:18:26 +0000 (10:18 +0200)]
Test::Unit::TestCase -> ActiveSupport::TestCase, for Rails 2.3

8 years agoOnly print routes in development environment
Klaus Kämpf [Tue, 21 Apr 2009 08:16:30 +0000 (10:16 +0200)]
Only print routes in development environment

8 years agomoved services to an own package
Stefan Schubert [Mon, 20 Apr 2009 17:10:38 +0000 (19:10 +0200)]
moved services to an own package

8 years agoframwork for services plugin
Stefan Schubert [Mon, 20 Apr 2009 16:41:36 +0000 (18:41 +0200)]
framwork for services plugin

8 years agoadded new files; removed double entries
Stefan Schubert [Mon, 20 Apr 2009 14:52:06 +0000 (16:52 +0200)]
added new files; removed double entries

8 years agosplit off language plugin
Stefan Schubert [Mon, 20 Apr 2009 12:38:27 +0000 (14:38 +0200)]
split off language plugin

8 years agoframework for language-plugin
Stefan Schubert [Mon, 20 Apr 2009 11:41:48 +0000 (13:41 +0200)]
framework for language-plugin

8 years agodo not grant SCR rights
Stefan Schubert [Mon, 20 Apr 2009 08:24:13 +0000 (10:24 +0200)]
do not grant SCR rights

8 years agomoved to own package
Stefan Schubert [Mon, 20 Apr 2009 07:56:39 +0000 (09:56 +0200)]
moved to own package

8 years agocleanup
Stefan Schubert [Fri, 17 Apr 2009 14:11:20 +0000 (16:11 +0200)]
cleanup

8 years agocleanup
Stefan Schubert [Fri, 17 Apr 2009 14:10:07 +0000 (16:10 +0200)]
cleanup

8 years agoMerge branch 'master' of git@git.opensuse.org:projects/yast/rest-service
Stefan Schubert [Fri, 17 Apr 2009 13:21:53 +0000 (15:21 +0200)]
Merge branch 'master' of git@git.opensuse.org:projects/yast/rest-service

8 years agoadded forgotten src dir
Stefan Schubert [Fri, 17 Apr 2009 13:21:38 +0000 (15:21 +0200)]
added forgotten src dir