aboutsummaryrefslogtreecommitdiff
path: root/wqflask
AgeCommit message (Collapse)Author
2022-06-23Pass table data to collections/view template and create_table.jszsloan
2022-06-16Change table_functions.js variables to camelCasezsloan
2022-06-16Replace DataTables code in collection view page with call to new create_table.jszsloan
2022-06-16Initial commit for create_datatable.jszsloan
This file will contain the generic function for initializing datatables, that will take the table ID, table data, column definitions, and custom settings as input (custom settings being additional DataTables settings or settings differing from the defaults)
2022-06-16Include json version of collection trait list, so it can be passed directly ↵zsloan
to DataTables
2022-06-15templates: base: Update GN2 footerBonfaceKilz
* wqflask/wqflask/templates/base: Remove links to non-functioning mailing list. Remove link to "#genenetwork" channel that isn't currently owned/moderated. Co-authored-by: Ethan Willis <elwillis1@gmail.com>
2022-06-13Check chromosome for 'Un' in search results and print N/A in such caseszsloan
2022-06-13Check for chromosome of 'Un' and print location as 'Not available' in such caseszsloan
2022-06-13Increase width threshold for using scroller, to prevent issue with blue ↵zsloan
lines at bottom of table
2022-06-13Limit search result descriptions to 500 characterszsloan
2022-06-13Add |safe to ensure HTML entites are correctly escaped for trait descriptionszsloan
2022-06-10Skip failing integration testBonfaceKilz
ATM, it's hard to by-pass the authentication decorators, and as such, skip this test for. This may be deleted later.
2022-06-10Reverse polarity for gemma additive effects in testsBonfaceKilz
Fixes broken test. See: #89a7868.
2022-06-07Define gn_server_url before running the drop-down menu JS codezsloan
2022-06-07Make indentation and spacing more consistent forzsloan
dataset_select_menu_orig.js
2022-06-07Fix issue that caused Submit Trait page drop-down menus to not workzsloan
Also removes a bunch of unnecessary console logging
2022-06-01Fix the way R/qtl is called in the GN2 REST APIzsloan
2022-06-01Remove IDs called 'submit' to prevent forms from breakingzsloan
Apparently if a button has an ID called 'submit', trying to submit a form via JS won't work
2022-05-31Check if entered pubmed_id is already associated with a publication, andzsloan
set PublishXRef.PublicationId equal to that Id if it exists
2022-05-31Reverse polarity for gemma additive effectszsloan
This is basically just a quick pseudo-fix to at least get the polarity right
2022-05-31Fix minor bugFrederick Muriuki Muriithi
2022-05-31Fix error renderingFrederick Muriuki Muriithi
Render the command_id if present in the error report to help with troubleshooting failures.
2022-05-27Apply python-black on fileBonfaceKilz
2022-05-27Don't make a POST if there's a blank form-elementBonfaceKilz
2022-05-27Move SQL queries to GN3BonfaceKilz
2022-05-27Strip data before storing itBonfaceKilz
2022-05-27Make sure the user is logged in when approving dataBonfaceKilz
2022-05-27Pass secend arg to cursor.execute as a tupleBonfaceKilz
2022-05-27Add sensible styling to "reject"/"approve" buttonsBonfaceKilz
2022-05-27Align "Add New" button with the actions columnBonfaceKilz
2022-05-27Add js logic to POST to "approval" endpointBonfaceKilz
2022-05-27Assign the correct value to keyBonfaceKilz
2022-05-27Display description diff-data if it existsBonfaceKilz
2022-05-27Ony show the title if there are any changes to be approved/rejectedBonfaceKilz
2022-05-27Cosmetic changes in Jinja templateBonfaceKilz
2022-05-27Add new endpoint for "approving" case-attributes modificationsBonfaceKilz
* wqflask/wqflask/metadata_edits.py (approve_case_attribute_data): New end-point.
2022-05-27Remove dead commentBonfaceKilz
2022-05-27Append to "modifications" if "description"/"name" existBonfaceKilz
2022-05-27Make sure is in editor's group to view the case-attributesBonfaceKilz
* wqflask/wqflask/metadata_edits.py (show_case_attribute_columns): Add "case_attributes_edit_access" and "login_required" decorators.
2022-05-27Make sure user is part of "editors" group to make (case attrs) editsBonfaceKilz
* wqflask/wqflask/decorators.py: Import "gn3.authentication.get_groups_by_user_uid". (case_attributes_edit_access): New decorator. Checks which users are in the "editors" group in Redis. * wqflask/wqflask/metadata_edits.py: Import "wqflask.decorators.case_attributes_edit_access" (update_case_attributes): Use "@update_case_attributes" decorator. (reject_case_attribute_data): Ditto.
2022-05-27Replace "_get_author" with "gn3.authentication.get_user_info_by_key"BonfaceKilz
* wqflask/wqflask/metadata_edits.py (_get_author): Delete function. (show_case_attribute_columns): Use "get_user_info_by_key".
2022-05-27Implement "reject"---for case-attr---endpointBonfaceKilz
* wqflask/wqflask/metadata_edits.py (show_case_attribute_columns): Fetch id---this is already passed in the template---when getting case attributes. (reject_case_attribute_data): New endpoint for rejecting data. * wqflask/wqflask/templates/case_attributes.html: Add JS logic for rejecting data.
2022-05-27Move the case-attribute id to the button where the event occursBonfaceKilz
2022-05-27Make approve/reject buttons normal links instead of embedded linksBonfaceKilz
2022-05-27Remove unnecessary white spaceBonfaceKilz
2022-05-27Parse author id into a human readable nameBonfaceKilz
* wqflask/wqflask/metadata_edits.py (_get_author): New function. (show_case_attribute_columns): Pass the author name and id---case-attribute---field into the template. * wqflask/wqflask/templates/case_attributes.html: Add an "author" column when displaying the modified/deleted/inserted data. Also, add the case-attribute's id as a data-id element.
2022-05-27Narrow the case-attribute columnBonfaceKilz
2022-05-27Add extra sections for displaying delete/insert dataBonfaceKilz
2022-05-27Fetch diff data from SQLBonfaceKilz
* wqflask/wqflask/metadata_edits.py (show_case_attribute_columns): Replace the redis fetch with SQL for retrieving diff data.
2022-05-27POST deletionsBonfaceKilz