Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API authentication and security changes (#635)
* style: Reorder functions in the module * refactor: Moved non-view functions to viewer.utils * fix: Removed unused save_pdb_zip and minor refactoring * feat: Removed circular import * feat: Fix get_open_targets (also get_open_proposals now not _private_) * feat: Fix get_open_proposals reference * refactor: ISpyB -> ISPyB * docs: Updated for use of mixins * feat: More API security migrations * feat: More security migrations * feat: Security migrations for hotspots and hypothesis * feat: More security fixes * feat: More security changes * feat: More security changes (and get_params -> get_img_from_smiles with default w/h) * fix: Attempt to fix calls to /xcdb/fragspect/ 500 errors * feat: Another attempot to fix ISPyB * feat: Use of new user_is_member_of_target() * feat: Experiment with validator * feat: Better serializer log * feat: Even more work on the serializer * feat: Minor error message tweak * feat: Add support for TEST_RESTRICTED_TAS_LIST (#614) Co-authored-by: Alan Christie <alan.christie@matildapeak.com> * target permission validation mixin pattern implemented for Pose * feat: Fix restricted logic * most endpoints secured with VaildateTargetMixin * fix: Removed unused endpoint * fix: secure SessionActions serializer * fix: Removed pset_download * fix: Design set upload now unsupported (404) * fix: Snapshots now open again * fix: CompoundIdentifierTypeView & TagCategoryView now read-only views * fix: Discourse POST now requires login * feat: User now needs to be a member of CSET target to download it * fix: secured TaskStatus endpoint * feat: Removal of unsed xcdb app * feat: Add log to use of dicttocsv * feat: More secure DictToCsv * feat: More consistent use of _ISPYB_SAFE_QUERY_SET * feat: Stricter UploadCSet class inheritance * feat: Fix isort issues * feat: Fix ListAPIView * feat: Remove references to xcdb * fix: secure UploadTaskView and ValidateTaskView TODO: secure UpdateTaskView (if used) * Align 1247 with latest staging code (#616) * fix: updated crystalform site tag generation scheme * fix: update tag generation scheme --------- Co-authored-by: Kalev Takkis <ktakkis@informaticsmatters.com> * Align 1247 from staging (#619) * fix: updated crystalform site tag generation scheme * fix: update tag generation scheme * fix: fix querysets in target_loader.py Came up with pose generation - SiteObservation querysets were called over the entire table not by the target they should have been associated with. --------- Co-authored-by: Kalev Takkis <ktakkis@informaticsmatters.com> * Align 1247 with latest staging (#620) * fix: updated crystalform site tag generation scheme * fix: update tag generation scheme * fix: remove version field from ComputedMolecule Field was added in error, explicit version tracking is not necessary * fix: forgot to stage migration file.. * fix: fix querysets in target_loader.py Came up with pose generation - SiteObservation querysets were called over the entire table not by the target they should have been associated with. * fix: add warning to logs about overwriting ComputedMolecule metadata --------- Co-authored-by: Kalev Takkis <ktakkis@informaticsmatters.com> * feat: Rstore CSetUpload post() * feat: Revert UploadCSet inheritance * fix: Another attempt to fix UploadCSet * fix: Another attmept to fix the view * fix: Anotehr attempt to get UploadCSet * feat: Fix UploadCSet view * feat: Fix JobRequest GET (restrict to members of the project) * feat: Enhanced logging for membership check failures * docs: Improve docs relating to security * docs: Minor typo * fix: Remove TEST_RESTRICTED_TAS_LIST feature * Align 1247 with staging (#621) * fix: updated crystalform site tag generation scheme * fix: update tag generation scheme * fix: remove version field from ComputedMolecule Field was added in error, explicit version tracking is not necessary * fix: forgot to stage migration file.. * fix: fix querysets in target_loader.py Came up with pose generation - SiteObservation querysets were called over the entire table not by the target they should have been associated with. * fix: add warning to logs about overwriting ComputedMolecule metadata --------- Co-authored-by: Kalev Takkis <ktakkis@informaticsmatters.com> * Align 1247 with latest staging (#623) * fix: updated crystalform site tag generation scheme * fix: update tag generation scheme * fix: remove version field from ComputedMolecule Field was added in error, explicit version tracking is not necessary * fix: forgot to stage migration file.. * fix: fix querysets in target_loader.py Came up with pose generation - SiteObservation querysets were called over the entire table not by the target they should have been associated with. * fix: add warning to logs about overwriting ComputedMolecule metadata * fix: add additional ccp4 files to download (issue 1448) --------- Co-authored-by: Kalev Takkis <ktakkis@informaticsmatters.com> * fix: Attempt to fix PoseView (now Pose) * fix: Attempt to debug Pose failure * fix: Another patch to Pose * fix: Fix log typo * fix: Attempt to fix permission on create * fix: Fix for ValidateTargetMixin? * fix: Better Mixin (renamed and copes with shortest filter string) * fix: Fix some project mixin views (includes some renaming) * refactor: View name consistency * fix: Fix for targetdownload mixin (and extra log) * fix: Better file handling * fix: Now serches ExpUpload for first matching record * fix: Better experiment download (use of only ExpUpload record) * fix: ExpDownload now inspects Project * fix: More naming consistency changes * fix: Attempt to fix 'ManyRelatedManager' is not iterable * fix: Use of correct download path * Align 1247 with staging (#624) * fix: updated crystalform site tag generation scheme * fix: update tag generation scheme * fix: remove version field from ComputedMolecule Field was added in error, explicit version tracking is not necessary * fix: forgot to stage migration file.. * fix: fix querysets in target_loader.py Came up with pose generation - SiteObservation querysets were called over the entire table not by the target they should have been associated with. * fix: add warning to logs about overwriting ComputedMolecule metadata * fix: add additional ccp4 files to download (issue 1448) --------- Co-authored-by: Kalev Takkis <ktakkis@informaticsmatters.com> * Align 1247 with staging (#627) * fix: updated crystalform site tag generation scheme * fix: update tag generation scheme * fix: remove version field from ComputedMolecule Field was added in error, explicit version tracking is not necessary * fix: forgot to stage migration file.. * fix: fix querysets in target_loader.py Came up with pose generation - SiteObservation querysets were called over the entire table not by the target they should have been associated with. * fix: add warning to logs about overwriting ComputedMolecule metadata * fix: add additional ccp4 files to download (issue 1448) --------- Co-authored-by: Kalev Takkis <ktakkis@informaticsmatters.com> * docs: Tweak messages * fix: Better file handling * docs: Doc tweak * Merge compound fix to 1247 (#628) * fix: updated crystalform site tag generation scheme * fix: update tag generation scheme * fix: remove version field from ComputedMolecule Field was added in error, explicit version tracking is not necessary * fix: forgot to stage migration file.. * fix: fix querysets in target_loader.py Came up with pose generation - SiteObservation querysets were called over the entire table not by the target they should have been associated with. * fix: add warning to logs about overwriting ComputedMolecule metadata * fix: add additional ccp4 files to download (issue 1448) * fix: Branch for project reference fix * fix: Projects copied from Target (during RHS cset-upload) --------- Co-authored-by: Kalev Takkis <ktakkis@informaticsmatters.com> Co-authored-by: Alan Christie <alan.christie@matildapeak.com> * refactor: restrict_to_membership now restrict_pubic_to_membership * fix: ValidateProjectMixin does not insist on public proposal membership for GET * fix: Apply conflict from staging * Align 1247 with staging (#631) * fix: updated crystalform site tag generation scheme * fix: update tag generation scheme * fix: remove version field from ComputedMolecule Field was added in error, explicit version tracking is not necessary * fix: forgot to stage migration file.. * fix: fix querysets in target_loader.py Came up with pose generation - SiteObservation querysets were called over the entire table not by the target they should have been associated with. * fix: add warning to logs about overwriting ComputedMolecule metadata * fix: add additional ccp4 files to download (issue 1448) * fix: updates to tag generation Changed how some of the tags are generated as per the comment here: m2ms/fragalysis-frontend#1482 (comment) * feat: added centroid_res field to CanonSite model Also, removed fetching centroid_res from CANON_SITES_FILE. Seems that now it's being added to meta_aligner.yaml, so reading an additional file is not necessary. I hope... * feat: added new fields to metadata.csv Experiment code and centroid res * feat: added tag aliases to metadata.csv * Copies Target proposals to new (RHS) Compounds (#629) * fix: Branch for project reference fix * fix: Projects copied from Target (during RHS cset-upload) * fix: Add save before copying projects * fix: Remove unnecessary save() * ci: Attempt to fix docker-compose problem * ci: Fix staging and production builds (docker compose) --------- Co-authored-by: Alan Christie <alan.christie@matildapeak.com> --------- Co-authored-by: Kalev Takkis <ktakkis@informaticsmatters.com> Co-authored-by: Alan Christie <alan.christie@matildapeak.com> * fix: Fix project_id type (aligns with staging) * Align 1247 with staging (#633) * fix: updated crystalform site tag generation scheme * fix: update tag generation scheme * fix: remove version field from ComputedMolecule Field was added in error, explicit version tracking is not necessary * fix: forgot to stage migration file.. * fix: fix querysets in target_loader.py Came up with pose generation - SiteObservation querysets were called over the entire table not by the target they should have been associated with. * fix: add warning to logs about overwriting ComputedMolecule metadata * fix: add additional ccp4 files to download (issue 1448) * fix: updates to tag generation Changed how some of the tags are generated as per the comment here: m2ms/fragalysis-frontend#1482 (comment) * feat: added centroid_res field to CanonSite model Also, removed fetching centroid_res from CANON_SITES_FILE. Seems that now it's being added to meta_aligner.yaml, so reading an additional file is not necessary. I hope... * feat: added new fields to metadata.csv Experiment code and centroid res * feat: added tag aliases to metadata.csv * Copies Target proposals to new (RHS) Compounds (#629) * fix: Branch for project reference fix * fix: Projects copied from Target (during RHS cset-upload) * fix: Add save before copying projects * fix: Remove unnecessary save() * ci: Attempt to fix docker-compose problem * ci: Fix staging and production builds (docker compose) --------- Co-authored-by: Alan Christie <alan.christie@matildapeak.com> * fix: Fix typo accessing Target projects (#632) --------- Co-authored-by: Kalev Takkis <ktakkis@informaticsmatters.com> Co-authored-by: Alan Christie <alan.christie@matildapeak.com> --------- Co-authored-by: Alan Christie <alan.christie@matildapeak.com> Co-authored-by: Kalev Takkis <ktakkis@informaticsmatters.com>
- Loading branch information