summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-08-15Merge branch 'test/gitlab-ci' into 'develop' azul
[ci] get gitlab to run tests See merge request !2
2016-08-15[ci] use default db prefix on gitlab and travisAzul
This makes writing the tests for database names easier as they should be the same strings on gitlab, travis and locally.
2016-08-12[db] def database on users instead of use_databaseAzul
use_database affects all uses of prepare_database - so also the one in tmp_database. In order to avoid that we do not use_database but just overwrite the database method itself.
2016-08-12[ci] checkout submodule on gitlabAzul
2016-08-12[db] remove DatabaseMethod import from TemporaryUserAzul
It was causing 404s on initializing the database with db:migrate. DatabaseMethods rewrite of #database does not call prepare_database and thus does not create the database when needed. DatabaseMethod is also quite a bit too much for a model that has two databases that can be memoized easily. There's no way to have a separate database instance per record.
2016-08-12move temporary_user into lib - fix load issueAzul
We already did the same for other concerns. The way we load models for couchrest migrations does not work well with concerns in the model directory as they will be loaded twice.
2016-08-08[ci] setup couch for gitlabAzul
Couch docker image will be available on the host called couchdb. So we use curl to check for it and display the version string. And then we move a couchdb.yml config file into place so the right host will be used.
2016-08-01Add .gitlab-ci.ymlazul
2016-07-14[feature] restrict is_admin in the user api, to only allow queryingNavaL
for him/herself So that it we do not expose the is_admin property to anyone else including other admins.
2016-07-14Merge branch 'develop' of https://github.com/leapcode/leap_web into ↵NavaL
feature/expose_admin_in_api
2016-07-14Merge remote-tracking branch 'pr/229' into developAzul
2016-07-12Merge branch 'develop' of https://github.com/leapcode/leap_web into bugfix_226thea
2016-07-12Merge remote-tracking branch 'pr/230' into developAzul
2016-07-12bugfix: require local email in user modelAzul
2016-07-12bugfix #226:patch instead of putthea
2016-07-07Merge remote-tracking branch 'pr/228' into developAzul
Thanks a lot! First small text fix from the Rails Girls Summer of Code team Load to Code from Berlin
2016-07-07Added missing wordluca-marie
2016-07-05Merge remote-tracking branch 'pr/225' into developAzul
Fix install issue and update the documentation During the rails 4 update db:migrate stopped working because the way couchrest loads all models broke. This includes a fix and also updates the install instructions. I tried to separate advanced topics in development from the others by marking the sections (advanced) in doc/DEVELOP.md
2016-07-05fix email unit test - need to require nowAzul
2016-07-05[doc] make sure to mention develop branch in dev docsAzul
2016-07-05[doc] update install documentationAzul
2016-07-05Fix db:migrate and similar tasksAzul
We saw errors from duplicate loading of LocalEmail and LoginFormatValidation. The latter resulted in a crash. In an attempt to ensure all subclasses of Couchrest::Model::Base are loaded Couchrest::Model::Utils::Migrate requires all files in app/models. We have an extension that does the same for the engines. During this process LoginFormatValidation and LocalEmail were autoloaded when 'identity' was required. Afterwards they were required again. It looks like rails' autoload mechanism does not play nicely with require. So to make sure they are not autoloaded first move the concerns and helper classes into the lib directory and require them explicitly.
2016-07-05Merge remote-tracking branch 'pr/224' into merge-branchAzul
2016-07-05Merge remote-tracking branch 'pr/222' into merge-branchAzul
2016-07-04install: remove thin and thus eventmachine as a dependencyAzul
They led to some install issues. No need to pick a server for dev env.
2016-06-22[feature] expose is_admin in the user apiNavaL
So that whoever consumes the API can use this attribute to determine if admin functionalities should be made available to the current user.
2016-05-23fix config check in submit_signupAzul
with_config is not mean to test the current config. It will set the config. So instead we need to look into APP_CONFIG.
2016-05-23rename destroy_identity to release_handlesAzul
This expresses the intent rather than the implementation. Also replace temp with query refactoring.
2016-05-23move signup from users to account_controllerAzul
There was a lot of special case handling going on in the users_controller for this. Lot simpler this way.
2016-05-23cleanup: remove service level code from users_controllerAzul
There's no route to this right now and it also seems to be tested nowhere. Since i am about to split up the users_controller let's get rid of this and put it in the place we want it once we actually finish the implementation
2016-05-23restrict user_params in user_controllerAzul
Actually this should live in a service_level_controller. For now fix the security issue.
2016-05-23Merge remote-tracking branch 'pr/220' into developAzul
2016-05-22make ticket tests pass without network connectionAzul
MX validations relied on network connection. Only using them in production environment now. I want to be able to develop and test when disconnected.
2016-05-21tests: reset I18n.locale after locale_path_testAzul
Otherwise this will mess up other tests.
2016-05-20include engine tests in default testAzul
2016-05-20api: set defaults for version in routesAzul
This way we do not need to specify it all the times. In the functional tests defaults do not get added automatically. Introduced api_{get,put,post,delete} to add format and version default. One to two functional tests failing, everything else passes.
2016-05-18features for API version 2 - keep old onesAzul
Now we test both api versions. We want this for backwards compatibility.
2016-05-18api: allow version bumping - bump to 2Azul
2016-05-14ensure invalid user ids still render the ticket formAzul
We still have strange urls requested like /pt/users/AnonymousUser.../tickets/new Not sure where they are coming from - but this should make sure we respond with sth. meaningful instead of erroring out. Conflicts: app/views/layouts/_content.html.haml
2016-05-12minor: no need to vendor couchrest_session_storeAzul
2016-05-09test: make identity test locale independentAzul
It somehow managed to fail for a certain test order. Seems rather rare though - have not been able to reproduce it in 5 runs. Failed with --seed 60219.
2016-05-09minor: cleanup debug message in testAzul
2016-05-03use APP_CONFIG[config_file_paths] for provider.jsonAzul
This avoids overwriting the PROVIDER_JSON constant in the StaticConfigController and thus fixes test warnings. Also moved away from using instance variables in the ControllerExtension::JsonFile - instead querying the corresponding functions now - less sideeffects and easier stubbing.
2016-05-03fix failing unit and functional testsAzul
2016-05-03fix type mismatch TokenAuthTestAzul
rails 4 mixes model, controller and integration tests. So lets give this one a better name
2016-05-02upgrade: couchrest_session_store 0.4.2Azul
Uses the latest couchrest and couchrest_model. Also fixes issues with ruby 2.1
2016-05-02bugfix: test user properly in auto_new_ticket_pathAzul
2016-05-02use icon helper from navigation helperAzul
and use content_tag inside the icon helper... html_safe is evil.
2016-05-02upgrade: horizontal forms now need column stylesAzul
2016-05-02upgrade: bootstrap control-group -> form-groupAzul