aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/elasticsearch_tools.py
AgeCommit message (Expand)Author
2021-04-30autopep8: Run autopep8 100 times with target rules...Rules used are: E20,E211,E22,E224,E224,E225,E226,E227,E228,E231,E241,E242, E251,E252,E26,E265,E266,E27,E301,E302,E303,E304,E305,E306, E401,E501,E70,E701,W291,W292,W293,W391,W504,E101,E11,E121, E122,E123,E124,E125,E126,E127,E128,E129,E131,E133 BonfaceKilz
2021-04-30autopep8: Fix E121,E122,E123,EI24,E125,E126,E127,E128,E129,E131,E133BonfaceKilz
2021-04-30autopep8: Fix E501BonfaceKilz
2021-04-30autopep8: Fix E301,E302,E303,E304,E305,E306BonfaceKilz
2021-04-30autopep8: Fix E20-E27...Run: python -m autopep8 --in-place --recrusive ./ --select\ E20,E211,E22,E224,E224,E225,E226,E227,E228,E231,E241,\ E242,E251,E252,E26,E265,E266,E27 -p 3 BonfaceKilz
2020-08-19Remove extra whitespace(or add it) from comma separated items...See: <https://docs.python.org/2/library/2to3.html#2to3fixer-urllib> BonfaceKilz
2018-07-02Added option to transform/normalize trait sample values (log2 and qnorm) on t......Got figures mostly working with transformed values, except for changing the y-axis range of one Fixed issue with the home page "Make Default" button position (as well as the drop-downs in general) Added timeout to Elasticsearch connection to fix related error zsloan
2018-05-17Added script to quantile normalize a data set and enter its normalized sample......Added option to replace trait page sample/strain values with normalized ones Began editing Lei's scatterplot code Changed elasticsearch_tools' get_elasticsearch_connection so that it can also be used for purposes other than user authentication (by adding a "for_user" parameter) zsloan
2018-04-16Remove statements that might be causing issues...* I can't swear on this, but it seems the presence of these statements was causing elasticsearch to act weird. Muriithi Frederick Muriuki
2018-04-16Merge remote-tracking branch 'pjotrp/testing' into testingMuriithi Frederick Muriuki
2018-04-16Update mappings for Elasticsearch 6.2. Update logger...* Update the indexes mappings to be compatible with the newer Elasticsearch 6.2.* series. Close the index before updating it, and reopen it after to help with the re-indexing of the data. * Update the error logger to include the exception that was thrown. Muriithi Frederick Muriuki
2018-04-16Docs on elasticsearch usePjotr Prins
2018-04-15Deactivate analysis of email_address field...* Prevent elasticsearch from analysing and tokenising the email_address field so as to avoid issue with getting back all email addresses with the same domain as the one being searched for. Muriithi Frederick Muriuki
2018-04-05Merge branch 'testing' of https://github.com/genenetwork/genenetwork2 into te...Muriithi Frederick Muriuki
2018-04-04ES: docPjotr Prins
2018-03-31Merge branch 'testing' of https://github.com/genenetwork/genenetwork2 into te......* Fix conflicts Muriithi Frederick Muriuki
2018-03-26Refactor startup config for gunicorn and werkzeugPjotr Prins
2018-03-26Fixing authentication stuff so it uses parameters properly. Also no PYTHONPAT......it is now in the Guix build. Pjotr Prins
2018-03-26Update module to make it more testable...* Update functions to make them more testable. * Update code using updated functions. Muriithi Frederick Muriuki
2018-03-26Check elasticsearch at point of use...* Instead of checking for the state of elasticsearch at startup, check the state at the moment the user requests a feature that depends on elasticsearch. This reduces the chances that the user is dropped onto an exception page when elasticsearch server goes down. Muriithi Frederick Muriuki
2018-03-26Add check for elasticsearch...* Add some extra checks to ensure that elasticsearch is running before presenting the UI to the user. Muriithi Frederick Muriuki
2018-03-26Refactor common items to more generic methods....* Refactor code that can be used in more than one place to a more generic method/function that's called by other methods Muriithi Frederick Muriuki
2018-03-26Fail safely if elasticsearch is down or unconfigured...* If elasticsearch server is down, or the configuration variables are not provided at startup or in a configuration file, then do not allow the system to simply crash, but instead, inform the user that they cannot use the services that depend on elasticsearch to be running. Muriithi Frederick Muriuki
2018-03-26Delay after save for indexing...* Elasticsearch need a short delay after adding document for it to index the document for subsequent access. Muriithi Frederick Muriuki
2018-03-26Add save_user() function...* On successful login via OAuth2, save the details of the user in elasticsearch store, to avoid hitting the external provider for the basic details. Muriithi Frederick Muriuki
2018-03-26Add elasticsearch_tools module...* Collect variables and functions for using the elasticsearch system in a separate module. Muriithi Frederick Muriuki
2018-02-15Fixing authentication stuff so it uses parameters properly. Also no PYTHONPAT......it is now in the Guix build. Pjotr Prins
2018-02-13Update module to make it more testable...* Update functions to make them more testable. * Update code using updated functions. Muriithi Frederick Muriuki
2018-02-09Check elasticsearch at point of use...* Instead of checking for the state of elasticsearch at startup, check the state at the moment the user requests a feature that depends on elasticsearch. This reduces the chances that the user is dropped onto an exception page when elasticsearch server goes down. Muriithi Frederick Muriuki
2018-02-09Add check for elasticsearch...* Add some extra checks to ensure that elasticsearch is running before presenting the UI to the user. Muriithi Frederick Muriuki
2018-02-05Refactor common items to more generic methods....* Refactor code that can be used in more than one place to a more generic method/function that's called by other methods Muriithi Frederick Muriuki
2018-01-30Fail safely if elasticsearch is down or unconfigured...* If elasticsearch server is down, or the configuration variables are not provided at startup or in a configuration file, then do not allow the system to simply crash, but instead, inform the user that they cannot use the services that depend on elasticsearch to be running. Muriithi Frederick Muriuki
2018-01-19Delay after save for indexing...* Elasticsearch need a short delay after adding document for it to index the document for subsequent access. Muriithi Frederick Muriuki
2018-01-19Add save_user() function...* On successful login via OAuth2, save the details of the user in elasticsearch store, to avoid hitting the external provider for the basic details. Muriithi Frederick Muriuki
2018-01-12Add elasticsearch_tools module...* Collect variables and functions for using the elasticsearch system in a separate module. Muriithi Frederick Muriuki