Commit Graph

138 Commits

Author SHA1 Message Date
Helge Rausch
fcecb4f732 Use new Codeclimate test reporter (#400)
* Use new Codeclimate test reporter

It let's us combine the reports from both, rspec and test/unit.

* Check if coverage drop comes from config change

* Revert "Check if coverage drop comes from config change"

This reverts commit f8f91fe9664a22a8307b3a328aa6510c876b7dff.
2017-06-10 14:40:20 +02:00
Helge Rausch
2319919ccd Put back Rails specific config for SimpleCov (#389)
Without the `'rails'`, coverage drops to ~15% for the legacy tests, which probably means, it doesn't find all the tests.
2017-06-06 12:01:11 +02:00
Philipp Bayer
c2545e8794 Testwide code coverage fix (#387)
* Testwide code coverage fix

* Flip the gem around

* Flip the gem around, AGAIN
2017-06-05 11:18:59 +02:00
Philipp Bayer
cf25d77185 Mateus' PR (#365), closes #264 #333
* Renaming '.env.example' to '.env'

* Removing bootstrap gem

* Adding newest version of Bootstrap(3.3.6) and setting it up

* Renamed 'database.yml.example' to 'database.yml'

* Deleted common.css.scss

* Deleting active_admin/application requirement

* Adding style file that import all style partials and adding javascript file

* Updating application.html.erb and includes(footer and navbar)

* Removing from news all the updates(new users, new pheno...) and putting on updates page

* Updating user views

* Updating phenotype views

* Updating index page

* Updating FAQ and Stats pages

* Updating genotype views

* Updating messages views

* Updating snps views and signin page

* Updating fitbit and picture_phenotype views

* Updating warning

* Adding base style and variable of style

* Adding style of index, faq and stats page

* Adding style for user views

* Adding style for footer and navbar

* Adding modules of style

* Adding style for fitbit, genotype, phenotype and message views

* Adding style for snps and updates views

* Updating serverscript

* Adding new logo and RSS new image

* Adding style files for: comments, password reset, picture phenotypes, achievements and search results

* Removing !important and updating some styles

* Updating view from achievements

* Updating views from fitbit profiles

* Updating genotypes views

* Updating navbar view

* Updating password reset view

* Updating phenotype comments views

* Updating phenotypes views

* Updating views: search result, snps, user phenotypes and users

* Updating views: updates and picture phenotypes

* Adding updates page's routes

* Modify flash messages and change number of fitbit profiles and genotypes per page(20 -> 15)

* Replace will_paginate to a version that works with bootstraps

* Change serverscript to make Sidekiq work propely

* Updates user's views

* Updates script to run only when page is fully loaded

* Moves script tags to head and updates flash messages' views

* Updates and add style for: picture_phenotypes, snps, userpages, press, warnings

* Updates views for: genotypes, messages, fitbit_profiles, phenotype comments, phenotypes

* Updates views for: picture phenotype, picture phenotype comments, warnings and errors, snps, snps comments

* Updates views for: press, picture phenotype user, user session and snps user

* Updates views from: user, updates, press and stats

* Updates views from: snps, picture phenotypes, phenotypes, genotypes

* Updates views from: fitbit profiles, navbar, application, messages and news

* Updates script file

* Updates style files

* Changes modal views

* Renaming '.env.example' to '.env'

* Removing bootstrap gem

* Adding newest version of Bootstrap(3.3.6) and setting it up

* Renamed 'database.yml.example' to 'database.yml'

* Deleted common.css.scss

* Deleting active_admin/application requirement

* Adding style file that import all style partials and adding javascript file

* Updating application.html.erb and includes(footer and navbar)

* Removing from news all the updates(new users, new pheno...) and putting on updates page

* Updating user views

* Updating phenotype views

* Updating index page

* Updating FAQ and Stats pages

* Updating genotype views

* Updating messages views

* Updating snps views and signin page

* Updating fitbit and picture_phenotype views

* Updating warning

* Adding base style and variable of style

* Adding style of index, faq and stats page

* Adding style for user views

* Adding style for footer and navbar

* Adding modules of style

* Adding style for fitbit, genotype, phenotype and message views

* Adding style for snps and updates views

* Updating serverscript

* Adding new logo and RSS new image

* Adding style files for: comments, password reset, picture phenotypes, achievements and search results

* Removing !important and updating some styles

* Updating view from achievements

* Updating views from fitbit profiles

* Updating genotypes views

* Updating navbar view

* Updating password reset view

* Updating phenotype comments views

* Updating phenotypes views

* Updating views: search result, snps, user phenotypes and users

* Updating views: updates and picture phenotypes

* Adding updates page's routes

* Modify flash messages and change number of fitbit profiles and genotypes per page(20 -> 15)

* Replace will_paginate to a version that works with bootstraps

* Change serverscript to make Sidekiq work propely

* Updates user's views

* Updates script to run only when page is fully loaded

* Moves script tags to head and updates flash messages' views

* Updates and add style for: picture_phenotypes, snps, userpages, press, warnings

* Updates views for: genotypes, messages, fitbit_profiles, phenotype comments, phenotypes

* Updates views for: picture phenotype, picture phenotype comments, warnings and errors, snps, snps comments

* Updates views for: press, picture phenotype user, user session and snps user

* Updates views from: user, updates, press and stats

* Updates views from: snps, picture phenotypes, phenotypes, genotypes

* Updates views from: fitbit profiles, navbar, application, messages and news

* Updates script file

* Updates style files

* Changes modal views

* Updates script file

* Add style file for modal

* Updates views from: snp comments, user phenotypes, modal and picture phenotypes

* Removes empty style files

* Moves comments style to modules directory

* Creates a more general class for containers and titles

* Removing more specific classes for containers and titles

* Changes load order, now variables are loaded before base styles

* Replaces all containers and titles classes with the more general class for them

* Corrects styles order and organization

* Updates minimum height for content container

* Organizes and refactors script file

* Updates views for fitbit and user

* Removes 'test-' from all classes and updates some views

* Updates settings view

* Updates gitignore

* Changes config files

* Removes some file from .gitignore

* Readds the example files

* Changes all unnecessary double-quotes to single-quotes

* Corrects script file

* Updates hound file to ignore JS files

* Hopefully merged both

* fixes typos, gem installation

* Adds missing pagination gem

* Deletes Vagrantfile

* Automatically replaced all pre Ruby 1.9 hashes with new style to satisfy Hound

* More changes for Hound, triggered by me automatically changing the hash syntax

* More hound changes

* Fully satisfy the hound

* Fix some more style issues, delete some old Vagrant stuff

* Fix usermailer complaints

* Changed some stuff in fitbit notification worker - prob. needs bigger refactor, long lines, cannot change

* Two more borked tests

* Get rid of useless asset pipeline errors

* Skipping search test for now.

* added about us here

* disclaimer now also for genotypes

* working a bit on the hound

* fixed FAQ language
2017-06-01 14:47:00 +02:00
Helge Rausch
906eef5403 Update gems (#338)
* Passwords now need to be 8 characters long (new default in authlogic).
* To login to the Sidekiq web interface, log in to opensnp.org, if you
  have the `admin` flag set, you will find it at the usual place.
* I finally found out why Rubocop didn't complain about the frozen string literal pragma missing and added all of them.
* Rubocop complained about keyword arguments, which is only relevant for Rails 5, so I disabled the cop.
* I removed the `inherit_from: .rubocop_todo.yml` from `.rubocop.yml`, so Hound does complain about **all** the issues. I also added a few tasks for running Rubocop.
2017-01-04 15:30:22 +01:00
Helge Rausch
cbdb713b73 Fix/move two tests 2016-08-08 14:08:43 +02:00
Helge Rausch
3b45e1da07 Fix test 2016-08-08 14:07:35 +02:00
Helge Rausch
1ac7d6729d Refactor and schedule recommender worker (#317) 2016-07-08 10:15:04 -04:00
Philipp Bayer
b88242ad14 Cleanup cruft (#291)
* Removes broken html5.js from Google

* Replaces a few rocket-style links with modern Rails links. Replaces the dead Twitter feed on news page that used the dead Twitter APIv1 with a modern widget.

* Remove relic gem since it doesn't work at all ATM

* Forgot to run bundle install to remove from Gemfile.lock too

* Removes some overhang from Active Admin

* Bring back Snacks! No wait - bring back brackets!

* Removes one seventy seven URL since taken over by spam

* Update sign-in page with modern bootstrap, get rid of clearfix hacks

* Get rid of beautifier, no-one uses it. Remove some spans and labels from genotype upload form. form-stacked doesn't even exist anymore.

* Finally solves 2013 TODO about phenotype-arrays. Cleans up Phenotype-new form a bit.

* Minor cleanup of first-time user help header

* More terse form of helper method to satisfy hound

* Makes application help modal a bit more logical. FINALLY, after a thousand years, fixes that annoying 'missing tempplate' error message when closing help_one to help_three.

* Spruce up SNP comment form a little bit

* Get rid of empty or unused helpers

* Render nothing in a better concise way, cheers Helge
2016-06-22 17:48:14 +02:00
Helge Rausch
38c9da1e46 Schedule updating papers once a month 2016-06-19 11:36:55 +02:00
Bastian Greshake
0405bf76fe added support for genes for good 2016-06-03 00:27:49 +02:00
Vivek Rai
6d1faf8d14 Fix erroneous class name, Mendeley->MendeySearch
Signed-off-by: Vivek Rai <vivekrai.iitkgp@gmail.com>
2016-05-16 18:22:12 -07:00
Philipp Bayer
60a89e3751 Fixes test 2016-04-17 22:00:46 +08:00
Helge Rausch
7f3649797f Just destroy the genotype in DeleteGenotype worker 2016-04-12 08:52:49 +02:00
Helge Rausch
5ef97cf43c Leave seeded achievements alone when truncating 2016-02-12 08:57:28 +01:00
Helge Rausch
04a6a1011c Make workers log to STDOUT 2015-11-22 16:24:38 +01:00
Calvyn82
e6092e1b81 Removed redundant factories fixed tests 2015-10-04 12:20:53 -05:00
Helge Rausch
e6ac9c5210 Move list of SNPedia links to partial 2015-06-28 11:27:55 +02:00
Bastian Greshake
dba6b477d9 added some style changes hound recommended 2015-06-11 22:10:31 +02:00
Bastian Greshake
b3398299aa fixed? tests, again 2015-06-11 13:38:49 +02:00
Bastian Greshake
536d7c4ad0 fixed test, maybe 2015-06-11 13:29:40 +02:00
Bastian Greshake
f9fe91beed commented 2015-06-11 12:44:01 +02:00
Bastian Greshake
a42a4ae06f 1st implementation ga4gh beacon 2015-06-11 12:34:12 +02:00
Philipp Bayer
329c10e53d Merge pull request #144 from tsujigiri/rails4
Update to Rails 4.2
2015-03-18 14:41:00 +01:00
Helge Rausch
518d91ba43 Get rid of deprecation warnings 2015-03-18 08:48:03 +01:00
Helge Rausch
3b5261bb7e Update Rails to 4.2.* 2015-03-18 08:47:31 +01:00
Philipp Bayer
57c0550756 Reject genotypings that contain email addresses (or rather, @) 2015-03-16 18:59:59 +01:00
Helge Rausch
280975e18e Get rid of most of the deprecation warnings 2015-03-15 19:05:51 +01:00
Helge Rausch
535ac823bf Fix tests 2015-03-15 14:34:32 +01:00
Helge Rausch
17c0ff6165 Include all results in search feature test 2014-10-24 08:09:32 +02:00
Helge Rausch
b790cbf046 Remove last traces of Solr 2014-10-23 23:03:54 +02:00
Philipp Bayer
17d7a03b31 Reroutes SNPedia worker, new VCR cassette 2014-10-16 15:31:30 +02:00
Philipp Bayer
463b3a6af3 Tests now pass, 23andme exome vcf works. Adds logging for time out PLOS search. 2014-09-15 19:01:57 +10:00
Philipp Bayer
5d8431f4cb Adds test and testdata for new parsing for 23andme-exome-vcf 2014-09-15 16:48:34 +10:00
Helge Rausch
dbc04a7b6f Add IYG parsing 2014-08-30 15:12:06 +02:00
Helge Rausch
0e143e1fec Add ftdna parsing 2014-08-30 15:12:06 +02:00
Helge Rausch
ed55e1d900 Properly test genotype deletion 2014-08-30 15:12:06 +02:00
Helge Rausch
91a4259620 Parse Ancestry genotypes 2014-08-30 15:12:06 +02:00
Helge Rausch
c713f40f59 Include Snp creation in genotype parsing 2014-08-30 15:12:06 +02:00
Philipp Bayer
583ce874e8 Updates mediawiki gem. Fixes test by updating cassette. 2014-08-28 16:27:36 +10:00
Helge Rausch
7dc7a7c045 Move parsing and deleting test to RSpec 2014-08-17 14:23:51 +02:00
Helge Rausch
97d8b49dd7 Move test for UserSnpsController to RSpec 2014-08-16 15:07:46 +02:00
Helge Rausch
bfb8503631 Fix test 2014-08-10 12:40:22 +02:00
Helge Rausch
cb65d17464 Comment-out failing tests for deactivated worker 2014-06-05 18:12:01 +02:00
Helge Rausch
09b9631db4 Directly link to the generic dump URL 2014-06-05 08:58:27 +02:00
Helge Rausch
cc22e46539 Migrate Zipfulldata test to RSpec 2014-05-29 11:31:40 +02:00
Helge Rausch
a8ce3b2ec1 Use cached user_snps_count 2014-03-23 14:20:04 +01:00
Helge Rausch
5fe5af4837 Fix user_snp factory 2014-03-14 07:48:04 +01:00
Philipp Bayer
a40c1567fe Parsing test now also checks for proper deletion 2014-02-21 17:40:16 +10:00
Philipp Bayer
3a6c5d104f Parsing test now also checks for user_snps_count 2014-02-21 17:25:12 +10:00