aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-05-22Add support for editing sample data via an HTML tablezsloan
This doesn't yet support adding sample data for samples that don't already have values
2023-05-22Enable running application under pdb.Frederick Muriuki Muriithi
Add an option to help with running the application under pdb, and add some documentation to help other developers figure it out.
2023-05-19auth: Integrate metadata editting with new authFrederick Muriuki Muriithi
2023-05-19auth: Use auth privileges to control UI displayFrederick Muriuki Muriithi
Use the privileges from the authorisation endpoint to control which elements of the UI are displayed to the user. * wqflask/base/trait.py: Remove unused import * wqflask/wqflask/show_trait/show_trait.py: Unhook from GN-PROXY * wqflask/wqflask/templates/show_trait.html: Display or hide UI elements depending on the privileges the user has. * wqflask/wqflask/templates/show_trait_details.html: Display or hide UI elements depending on the privileges the user has. * wqflask/wqflask/views.py: Pass privileges, user, and resource details on to the UI template to be used for controlling UI element display.
2023-05-18auth: Change collection nameFrederick Muriuki Muriithi
Enable the changing of the collection names. * wqflask/wqflask/collect.py: Send data to GN3 API * wqflask/wqflask/templates/collections/view.html: Use an actual form and submit it.
2023-05-18auth: Display flash messages.Frederick Muriuki Muriithi
2023-05-18auth: Add and remove traits from collectionsFrederick Muriuki Muriithi
* wqflask/wqflask/collect.py: Add and remove traits to and from collections. * wqflask/wqflask/oauth2/client.py: Add functions for POST and GET that do the right thing depending on whether or not the user is logged in. * wqflask/wqflask/oauth2/request_utils.py: Add some common utility function to create the data extraction functions for `pymonads.either.Either` objects.
2023-05-17auth: Integrate deleting selected collections with authFrederick Muriuki Muriithi
Enable the deletion of selected collections via the GN3 api.
2023-05-17auth: Integrate collections badge with authFrederick Muriuki Muriithi
Show the total number of collections available in the active session in the collections badge at the top of the page. Also do some minor UI tweaks to differentiate the user and anonymous collections.
2023-05-17auth: Import/Delete Anonymous CollectionsFrederick Muriuki Muriithi
Integrate import/delete of anonymous collection when user is authenticated.
2023-05-16auth: View collection details from GN3 endpointFrederick Muriuki Muriithi
Retrieve a specific collection's details from the GN3 endpoint rather than from the session, as was done previously.
2023-05-15Create new collection via GN3 APIFrederick Muriuki Muriithi
* wqflask/wqflask/collect.py: Send data to the GN3 API to create the new collections. * wqflask/wqflask/oauth2/client.py: Ensure request is sent as a json request. * wqflask/wqflask/static/new/javascript/search_results.js: use "POST" rather than "GET" and send the traits also, in addition to the hash
2023-05-12auth: Fetch anonymous collections from separate endpoint.Frederick Muriuki Muriithi
2023-05-12auth: Integrate sessions with authFrederick Muriuki Muriithi
Rework the sessions to do what was handled by the soon-to-be-obsolete `wqflask.user_sessions` module. This is necessary in order to retain the expected functionality of the user collections, especially: * anonymous user collections * authenticated user collections * import of anonymous collections when user authenticates
2023-05-10auth: Fetch user collections from GN3Frederick Muriuki Muriithi
Fetch the user collections from GN3 for users that have authenticated.
2023-05-10auth: bug-fix: Call `logged_in` functionFrederick Muriuki Muriithi
The `logged_in` symbol was changed from a plain variable into a function, so we need to call it to get its actual value.
2023-05-09Integrate OAuth2 auth with GN2 UIhook-up-auth-to-traits-pageFrederick Muriuki Muriithi
Update the templates to make use of the OAuth2 authentication rather than the older authentication that used Redis.
2023-05-09auth: Handle authentication using the "Authorization Code Flow"Frederick Muriuki Muriithi
2023-05-08oauth2: UI - Remove `Edit` elementFrederick Muriuki Muriithi
The `Edit` button was unnecessary, since the `View` button gives the user access to a UI that allows them to edit the role.
2023-05-08oauth2: Fix UI failure on authorisation errorsFrederick Muriuki Muriithi
Surround the UI elements with the check for any authorisation errors to avoid trying to access non-existent data (this leads to an exception).
2023-05-08oauth2: Add auth-checking wrapper to `/show_trait?...` pageFrederick Muriuki Muriithi
As a proof-of-concept, add some sort of wrapper to check whether the user has access to the given trait/dataset. This will probably need some improvement to check for edit access, curation access, etc.
2023-05-04Fix bug where global search had wrong checkbox valueszsloan
2023-05-03Add table for editing sample values/SE/Nzsloan
2023-05-01Left-align histogram titlezsloan
For some reason xanchor=right does this
2023-04-28Enable passing dataid for correlation resultszsloan
This allows the scatterplots to use edited sample data
2023-04-28Use cached sample data in scatter plots (when applicable)zsloan
2023-04-28Cache trait sample data for mappingzsloan
This is so edited sample values can be used in the additive effect scatterplots
2023-04-25auth: disable UI elements for non-editable rolesFrederick Muriuki Muriithi
If a role is not user-editable, disable the UI elements that allow editting of the role to prevent that as an option in the first place.
2023-04-21oauth2: BugFixes: Fix redirect. Add Dataset Name.Frederick Muriuki Muriithi
2023-04-21oauth2: Update to enable linking of phenotypes.Frederick Muriuki Muriithi
2023-04-21oauth: Update UI for phenotype resources.Frederick Muriuki Muriithi
2023-04-20Fix bugs: Add missing module. Make args mandatoryFrederick Muriuki Muriithi
Add missing `wqflask.oauth2.ui` module Make arguments to the menu-generation macro mandatory going forward.
2023-04-20oauth2: Render UI uniformly across all templates.Frederick Muriuki Muriithi
2023-04-19oauth2: Provide missing species_nameFrederick Muriuki Muriithi
2023-04-19oauth2: fix bug with error handling.Frederick Muriuki Muriithi
2023-04-19oauth2: Link the dataFrederick Muriuki Muriithi
2023-04-19oauth2: update UI on successful search.Frederick Muriuki Muriithi
2023-04-19oauth2: phenotypes: Enable search from user input.Frederick Muriuki Muriithi
2023-04-19Remove dead text in GeneRIF pageMunyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2023-04-19oauth2: UI: Enable selecting and deselecting items for linkingFrederick Muriuki Muriithi
This commit generalises the code for selecting and deselecting items making it usable even for the phenotype traits. Now we can switch items from the search table to the linking table and vice versa.
2023-04-18Merge pull request #774 from genenetwork/chores/minor-fixesAlexander Kabui
Chores/minor fixes
2023-04-18import code cleanupAlexander_Kabui
2023-04-18metadata caching code integrationAlexander_Kabui
2023-04-18Merge branch 'testing' of https://github.com/genenetwork/genenetwork2 into ↵Alexander_Kabui
chores/minor-fixes
2023-04-18Add a web url to genewiki entries for GNMunyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2023-04-18oauth2: update UI and js to display initial search results.Frederick Muriuki Muriithi
2023-04-17Add a link to the GN2 GeneWiki pageMunyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2023-04-17Add genewiki pageMunyoki Kilyungi
* wqflask/wqflask/templates/generif.html: New template. * wqflask/wqflask/views.py (display_diffs_users): New route. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2023-04-17oauth2: Build code to do searchFrederick Muriuki Muriithi
At this point, the code fails with a 404, despite the appropriate endpoint existing. Will need further debugging.
2023-04-15Revert "Fix the way database_connection() is called"Frederick Muriuki Muriithi
This reverts commit b8b62aea1c7924e2ee7455c6fe8b34eee7cb8e74. We do need to decouple the entire `gn3.db_utils` from the `flask.current_app` object, and as such, the use of `SQL_URI` from the `utility.tools` module in GN2 was on purpose. This is also to help towards fixing issue https://issues.genenetwork.org/issues/bugfix_coupling_current_app_and_db_utils