Commit Graph

119 Commits

Author SHA1 Message Date
Philipp Bayer
9981266b75 More hound 2018-10-07 21:31:29 +08:00
Philipp Bayer
d85589e528 Satisfy hound 2018-10-07 21:26:02 +08:00
Philipp Bayer
d3dde6166d Replace factory_girl by factory_bot everywhere 2018-10-07 21:21:06 +08:00
Bastian Greshake Tzovaras
44184dda33 remove all of fitbit (#482)
* remove all of fitbit

* try fixing migration

* add new structure sql

* 🐶

* add first test for das

* 🐶

* fix structure.sql
2018-01-19 11:29:07 -08:00
Helge Rausch
22cf00be1c Fix Fixnum deprecation warning (#461)
* Fix Fixnum warning

* Fix Fixnum deprecation warning in PhenotypesController

* Who's a good boy? 🐶

* Fix fix

* Add test
2017-12-28 10:10:45 -08:00
Bastian Greshake Tzovaras
615b8a61ef removed chmod for good, fixed footer (#452) 2017-12-11 08:14:31 -08:00
Philipp Bayer
3b361c63f2 Cleans up download button - should also fix issue #436 (#451)
* Nicer words in data dump link

* Correct information in footer, tiny guy disappeared long ago, fare well!

* Fixes issue #436 on my end

* Fix test

* Satisfy hound
2017-12-11 23:00:57 +08:00
Bastian Greshake Tzovaras
2dd67a7657 include pictures in zip again (#449)
* include pictures in zip again

* 🐶
2017-12-11 15:23:45 +08:00
Bastian Greshake Tzovaras
b0998031d4 "fixed" tests 2017-12-08 16:46:03 -08:00
Bastian Greshake Tzovaras
7d0382b93c Integrate Open Humans, remove Fitbit (closes #392)
* adds Open Humans connection (incl. at least some tests)
* removes the capability to add fitbit data (was broken in any case)
* display current fitbit data is still included, will be removed after grace period (needs to be announced to users)
2017-11-21 09:32:45 -08:00
Bastian Greshake
64f35c9632 last updates 2017-06-12 16:50:30 +02:00
Bastian Greshake
dcc2aa1a4c remove fixed ids 2017-06-12 16:49:28 +02:00
Bastian Greshake
7ef36edcea 🐶 2017-06-12 16:41:42 +02:00
Bastian Greshake
3542265faa added further SNP tests 2017-06-12 16:34:01 +02:00
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
Bastian Greshake
d2146542e6 [MRG] new tests: delete foreign messages + search (#397)
* new tests: delete foreign messages + search

* failed again at making the hound happy

* test for logged in user trying log in

* remove accidental edit

* test for uploading genotype form

* 🐶
2017-06-09 15:38:08 +02:00
Bastian Greshake
f29752b550 [MRG] fixed message deleting + added tests, closes #391 (#394)
* fixed message deleting + added tests

* hound, codeclimate, travis…
2017-06-08 10:19:30 +02:00
Bastian Greshake
98c1943c1a [MRG] Adding more tests (#390)
* added more tests for snp page

* 🐶  happiness

* tests for changing password

* 🐶  happiness

* helge happiness ;)
2017-06-06 16:16:04 +02:00
Bastian Greshake
9499dfc93e [MRG] Email layouts. Closes #301 (#373)
* started implementing layouts for emails

* first version of email layout

* formatted the emails

* adapting test to new footer

* fixing tests

* the copy and paste strikes back

* the copy and paste strikes back2

* the copy and paste strikes back3

* the copy and paste strikes back3

* Update user_mailer.html.erb

forgot a line break

* included helge's 👍 tip

* Update user_mailer.rb

make the hound happy

* making codeclimate happy (or so i hope)
2017-06-06 12:37:04 +02:00
Bastian Greshake
ef83c4b5c0 Added tests (#388)
* work on tests

* snp API test

* making hound happier

* Give the scenarios some space
2017-06-06 11:49:52 +02:00
Philipp Bayer
04677e283e Merge pull request #370 from openSNP/dump_filenames
added filenames to phenotypes.csv, closes #357
2017-06-01 20:53:42 +08: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
Bastian Greshake
1d73188866 made hound happy 2017-06-01 14:28:30 +02:00
Bastian Greshake
9fa5ba223d fixed test to adhere to changes in files 2017-06-01 14:15:33 +02:00
Philipp Bayer
21f19c2e14 Merge pull request #330 from philippbayer/snp_update_feed
Snp update feed
2017-02-06 11:42:54 +08:00
Philipp Bayer
dc2eceb773 Replace Mendeley with correct SNPedia 2017-02-04 21:56:29 +08: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
Philipp Bayer
d1780c44e2 Hound 2016-08-12 22:54:18 +08:00
Philipp Bayer
78a38bd953 Puts more in test 2016-08-12 22:50:22 +08:00
Philipp Bayer
9db2e8d164 rudimentary user page integration spec 2016-08-12 22:29:46 +08:00
Philipp Bayer
c3877382dd Hound commits 2016-08-12 22:09:37 +08:00
Philipp Bayer
ec7e25ec3d Put proper path in test 2016-08-12 21:42:31 +08:00
Philipp Bayer
2b525c8d45 Adds non-working test
Date:      Fri Aug 12 21:18:49 2016 +0800
 Committer: Philipp Bayer <philippbay@gmail.com>
2016-08-12 21:22:51 +08:00
Helge Rausch
ae6e6a6221 Fix VCR config 2016-08-08 14:12:19 +02:00
Helge Rausch
7707a97b0a Fix rubocop issue 2016-08-08 14:08:43 +02:00
Helge Rausch
948f836b0e More tests 2016-08-08 14:08:43 +02:00
Helge Rausch
ca667b0998 Prefer single quoted strings 2016-08-08 14:08:43 +02:00
Helge Rausch
99bcebe5e7 Fix a few rubocop issues 2016-08-08 14:08:43 +02:00
Helge Rausch
cbdb713b73 Fix/move two tests 2016-08-08 14:08:43 +02:00
Helge Rausch
c9400bacd1 Refactor PhenotypesController#create 2016-08-08 14:08:43 +02:00
Helge Rausch
5f32a1803d Clear mail deliveries for each test 2016-08-08 14:07:35 +02:00
Helge Rausch
af14119095 fixup! Add test for entering new phenotypes 2016-08-08 14:07:35 +02:00
Helge Rausch
38df04a6de Add notification email to phenotype entering test 2016-08-08 14:07:35 +02:00
Helge Rausch
cd32d07ca5 Fix label for input field
Rails automatically sets the right `for` attribute on `label` fields,
which references the `id` attribute of the corresponsing `input`. By
changing the `id`, we broke the label for screen readers and Capybara.
2016-08-08 14:07:35 +02:00
Helge Rausch
b52b898ced Add test for phenotype/variation recommendation 2016-08-08 14:07:35 +02:00
Helge Rausch
9553df7a17 Add test for entering new phenotypes 2016-08-08 14:07:35 +02:00
Helge Rausch
5425422c3e Add test for not-yet-entered variations 2016-08-08 14:07:35 +02:00
Helge Rausch
0be0b76a3c Set-up codeclimate test reporter 2016-08-08 00:10:27 +02:00
Helge Rausch
75cc203a93 Remove counter columns (#327)
* Remove counter columns

The equivalent operations take less then a millisecond, no need for
trying to keep counters up-to-date.

* Add `with_number_of_users` to Phenotype

* Use `number_of_users` instead of `user_phenotypes.length`

* Improve test
2016-08-07 19:07:10 +02:00
Austin Richardson
92ac55e70c adds specs for phenotypes json API (#323) 2016-07-18 09:01:49 +02:00