aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility
AgeCommit message (Collapse)Author
2018-04-16Update mappings for Elasticsearch 6.2. Update loggerMuriithi Frederick Muriuki
* 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.
2018-04-15Deactivate analysis of email_address fieldMuriithi Frederick Muriuki
* 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.
2018-04-11Merge remote-tracking branch 'pjotrp/testing' into testingMuriithi Frederick Muriuki
2018-04-06See #308.Pjotr Prins
Cytoscape and related is now loaded from Guix. Use the latest GN2_PROFILE.
2018-04-05Merge branch 'testing' of https://github.com/genenetwork/genenetwork2 into ↵Muriithi Frederick Muriuki
testing
2018-04-04ES: docPjotr Prins
2018-03-31Merge branch 'testing' of https://github.com/genenetwork/genenetwork2 into ↵Muriithi Frederick Muriuki
testing * Fix conflicts
2018-03-29Type checking in its own filePjotr Prins
2018-03-26Skip automatic use of EXPLAIN_TEMPLATE_LOADING.Pjotr Prins
2018-03-26Refactor startup config for gunicorn and werkzeugPjotr Prins
2018-03-26FixPjotr Prins
2018-03-26Authentication: some mods around defaultsPjotr Prins
2018-03-26- Disabled PYTHONPATH injection - fix Guix instead, see ↵Pjotr Prins
https://github.com/pjotrp/genenetwork2/commit/63a5c8a42ad02e9126bb207465ff5eca98f6515d - Renamed WQFLASK_SETTINGS to GN2_SETTINGS
2018-03-26Fixing authentication stuff so it uses parameters properly. Also no ↵Pjotr Prins
PYTHONPATH needed as it is now in the Guix build.
2018-03-26Update module to make it more testableMuriithi Frederick Muriuki
* Update functions to make them more testable. * Update code using updated functions.
2018-03-26Check elasticsearch at point of useMuriithi Frederick Muriuki
* 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.
2018-03-26Add check for elasticsearchMuriithi Frederick Muriuki
* Add some extra checks to ensure that elasticsearch is running before presenting the UI to the user.
2018-03-26Refactor common items to more generic methods.Muriithi Frederick Muriuki
* Refactor code that can be used in more than one place to a more generic method/function that's called by other methods
2018-03-26Add SMTP configuration variablesMuriithi Frederick Muriuki
* Add configuration variables to enable the system connect to the configured SMTP server to send out emails.
2018-03-26Fail safely if elasticsearch is down or unconfiguredMuriithi Frederick Muriuki
* 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.
2018-03-26Set to None if no value providedMuriithi Frederick Muriuki
* Add a method to set the configuration variables to None if the configuration values are not provided at startup or in the configuration files. The system already checks for these values, and if they are absent, it simply fails to display the OAuth service as available for use to login.
2018-03-26Update configurationsMuriithi Frederick Muriuki
* Have the authorisation URLs build up from the client id and client secret values.
2018-03-26Delay after save for indexingMuriithi Frederick Muriuki
* Elasticsearch need a short delay after adding document for it to index the document for subsequent access.
2018-03-26Add more configuration variables.Muriithi Frederick Muriuki
* Add configurations for elasticsearch and github.
2018-03-26Add save_user() functionMuriithi Frederick Muriuki
* On successful login via OAuth2, save the details of the user in elasticsearch store, to avoid hitting the external provider for the basic details.
2018-03-26Add elasticsearch_tools moduleMuriithi Frederick Muriuki
* Collect variables and functions for using the elasticsearch system in a separate module.
2018-03-26Add client_id and client_secret configurationsMuriithi Frederick Muriuki
* Provide the OAuth2 client_id and client_secret values in configuration variables.
2018-03-26Add configuration variables for external servicesMuriithi Frederick Muriuki
* Add configuration variables for GitHub and ORCID which will be used by the system to allow users to login.
2018-03-22Change raise statementMuriithi Frederick Muriuki
* Change the raise statement to use an Exception object rather than using a string for compatibility with Python3.
2018-02-15Fixing authentication stuff so it uses parameters properly. Also no ↵Pjotr Prins
PYTHONPATH needed as it is now in the Guix build.
2018-02-15Fix conflictPjotr Prins
2018-02-13Update module to make it more testableMuriithi Frederick Muriuki
* Update functions to make them more testable. * Update code using updated functions.
2018-02-10Fixed finding PATHs - one return statement!Pjotr Prins
2018-02-10Check for bimbam path and bail out if it is missingPjotr Prins
2018-02-09Check elasticsearch at point of useMuriithi Frederick Muriuki
* 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.
2018-02-09Add check for elasticsearchMuriithi Frederick Muriuki
* Add some extra checks to ensure that elasticsearch is running before presenting the UI to the user.
2018-02-05Refactor common items to more generic methods.Muriithi Frederick Muriuki
* Refactor code that can be used in more than one place to a more generic method/function that's called by other methods
2018-02-05Add SMTP configuration variablesMuriithi Frederick Muriuki
* Add configuration variables to enable the system connect to the configured SMTP server to send out emails.
2018-01-30Fail safely if elasticsearch is down or unconfiguredMuriithi Frederick Muriuki
* 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.
2018-01-30Set to None if no value providedMuriithi Frederick Muriuki
* Add a method to set the configuration variables to None if the configuration values are not provided at startup or in the configuration files. The system already checks for these values, and if they are absent, it simply fails to display the OAuth service as available for use to login.
2018-01-19Update configurationsMuriithi Frederick Muriuki
* Have the authorisation URLs build up from the client id and client secret values.
2018-01-19Delay after save for indexingMuriithi Frederick Muriuki
* Elasticsearch need a short delay after adding document for it to index the document for subsequent access.
2018-01-19Add more configuration variables.Muriithi Frederick Muriuki
* Add configurations for elasticsearch and github.
2018-01-19Add save_user() functionMuriithi Frederick Muriuki
* On successful login via OAuth2, save the details of the user in elasticsearch store, to avoid hitting the external provider for the basic details.
2018-01-12Add elasticsearch_tools moduleMuriithi Frederick Muriuki
* Collect variables and functions for using the elasticsearch system in a separate module.
2018-01-12Add client_id and client_secret configurationsMuriithi Frederick Muriuki
* Provide the OAuth2 client_id and client_secret values in configuration variables.
2018-01-10Add configuration variables for external servicesMuriithi Frederick Muriuki
* Add configuration variables for GitHub and ORCID which will be used by the system to allow users to login.
2017-12-20tools: find path for JS and gemma_wrapperPjotr Prins
2017-12-20Bring in some earlier work - mostly documentation and startup handlingPjotr Prins
2017-09-04gemma-wrapper: find binary in profilePjotr Prins