Commit Graph

252 Commits

Author SHA1 Message Date
Philipp Bayer
d3dde6166d Replace factory_girl by factory_bot everywhere 2018-10-07 21:21:06 +08:00
Helge Rausch
4b8e8c6008 Explicitly set file permissions to 0644 (#498) 2018-04-10 17:37:00 +02:00
Helge Rausch
df6241c0fe Keep Paperclip from messing with the permissions (#497) 2018-04-09 20:55:38 +02:00
Helge Rausch
de5ba4abcd Remove SSL cert renewal script (#486)
Moved to https://github.com/opensnp/opensnp.org-docker
2018-02-03 21:42:29 +01: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
3c2eab1aa3 Notify Sentry of new releases (#471) 2018-01-01 10:41:17 -08:00
Helge Rausch
b328e63d41 Revert "Track releases in Sentry (#468)" (#469)
This reverts commit ecbb2f6807.
2017-12-31 13:23:53 -08:00
Helge Rausch
ecbb2f6807 Track releases in Sentry (#468) 2017-12-31 10:14:18 -08:00
Helge Rausch
3ff2a59ac4 Setup sentry.io for exception tracking (#465)
* Setup sentry.io for exception tracking

* Hound happiness 🐶

* Set user context

* Hound happiness 🐶
2017-12-30 12:38:50 -08:00
Philipp Bayer
c255e75b6d Removes airbrake (for now) (#459)
* Removes airbrake (for now)

* Forgot lock file
2017-12-12 18:31:29 -08:00
Bastian Greshake Tzovaras
78776a491b should fix #416 for real... (#455) 2017-12-11 20:23:35 -08:00
Bastian Greshake Tzovaras
bcdf6ea357 should fix #416 (#454) 2017-12-11 18:56:49 -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
Philipp Bayer
31840c9d05 Fixes bug in autoupdater. Reschedules update to 60 days. (#424)
* Fixes bug in autoupdater. Reschedules update to 60 days.

* Implements Helges suggestion of a specific release so future updates to dehydrated do not break stuff
2017-08-07 13:55:25 +02:00
Philipp Bayer
a08ec4e2e4 Adds ssl autoupdate scheduler (#423)
* Adds ssl autoupdate scheduler

* Single quotes for the hound
2017-08-05 12:16:10 +02:00
Philipp Bayer
1cb5be927b Please hound 2017-06-03 12:48:34 +08:00
Philipp Bayer
386c931fa3 Fixes glyphicons in production. Removes superfluous unminified bootstrap. 2017-06-03 12:47:00 +08:00
Bastian Greshake
801d123e28 schedule statistics dump 2017-06-01 15:29:37 +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
Philipp Bayer
1c001a6430 Possible fix for CSS missing in Sidekiq web form (#362)
* Possible fix for CSS missing in Sidekiq web form

* making hound happy
2017-05-31 09:00:46 +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
948f836b0e More tests 2016-08-08 14:08:43 +02:00
Austin Richardson
59b5051513 Remove username and password from DB example config (#322)
These are usually blank by default. Adds an extra step when getting setup for development.
2016-07-17 10:26:50 +02:00
Helge Rausch
1ac7d6729d Refactor and schedule recommender worker (#317) 2016-07-08 10:15:04 -04:00
Helge Rausch
33daf4178a Limit frequency queue to 1 (#316)
Since the weights don't seem to work properly and the frequency jobs still block the parsing jobs, let's reduce the number of simultaneous frequency jobs to 1.
2016-06-29 08:39:29 +02:00
Helge Rausch
38c9da1e46 Schedule updating papers once a month 2016-06-19 11:36:55 +02:00
Philipp Bayer
57e32c49ed Adds mailers queue to sidekiq 2016-06-02 15:53:54 +08:00
Vivek Rai
ff71f19fdf Remove stale queues from config, update serverscript
Signed-off-by: Vivek Rai <vivekrai.iitkgp@gmail.com>
2016-05-09 06:11:09 -07:00
Bastian Greshake
9d458edcd4 started implementing statistics page 2016-02-16 16:52:58 +01:00
Helge Rausch
8ad3a7244e Update gems
* The recaptcha gem reads the environment variables itself now, so the
  initializer isn't needed anymore
* Airbrake 5 introduces breaking changes, so I pinned it to '~> 4.0' for
  now
2015-12-31 13:22:17 +01:00
Bastian Greshake
e27f803bd7 fix image link 2015-12-21 16:13:46 +01:00
Bastian Greshake
48666802d1 fixed htmlemails 2015-12-18 10:26:30 +01:00
Helge Rausch
50b4239f1d Add defaults for mailer; Errbit via HTTPS 2015-11-19 08:41:58 +01:00
Helge Rausch
1de07c1cbb Enable zipping jobs 2015-11-15 13:45:21 +01:00
Helge Rausch
9e1f64c9fe Disable zipping for now until we have a propper storage solution 2015-11-12 08:36:00 +01:00
Helge Rausch
2e1489cae0 Make Sidekiq log to stdout 2015-11-08 13:23:16 +01:00
Helge Rausch
b78883ce49 Re-enable all the Sidekiq queues 2015-11-08 13:06:31 +01:00
Helge Rausch
54d92173c6 Fix Sidekiq Web UI 2015-11-08 12:57:16 +01:00
Helge Rausch
f53593fe71 Log to stdout by default in production 2015-10-31 12:08:35 +01:00
Helge Rausch
0858308210 Use sass-rails for CSS compression 2015-10-31 12:08:35 +01:00
Helge Rausch
8aec988fbf Move configuration into environment 2015-10-31 12:08:31 +01:00
Helge Rausch
43a6bd2c56 Move user_snps importing SQL into database 2015-10-20 22:30:33 +02:00
Philipp Bayer
e8974cc03b Forgot mailers 2015-09-09 16:14:09 +08:00
Philipp Bayer
2db7831e1e Comments out parsing/preparsing/user_snps queues until reparsing is finished 2015-09-09 16:04:38 +08:00
Bastian Greshake
a42a4ae06f 1st implementation ga4gh beacon 2015-06-11 12:34:12 +02:00
Helge Rausch
223502e983 Put workers accessing user_snps on same queue 2015-05-14 09:56:30 +02:00
Helge Rausch
caec3b4e03 Add default queue to Sidekiq config
Contrary to what the Sidekiq documentation[1] says, mail is not put into the
`mailers` queue, but into the `default` queue.

[1] - https://github.com/mperham/sidekiq/wiki/Active-Job
2015-05-10 14:35:53 +02:00
Helge Rausch
d5ad8c0115 Move Recommendify Redis config to initializer 2015-05-07 08:10:12 +02:00
Philipp Bayer
d4d1072c83 Refactors Zipfulldata to Helge's recs. Deletes unneeded cleaning tasks. 2015-04-20 15:18:00 +02:00
Philipp Bayer
c56e6d366d Forgot line 2015-04-20 00:14:58 +02:00