-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Direct links - exact match #448
Comments
Solution in #448 |
please check why this direct link does not work |
Should be fixed |
It works correctly. |
#448 - direct links - exact match
Not sure this works. This ought to show something, but it doesn't: Without /exact, it brings up everything as expected: (But no longer has duplicates! So #499 is fixed, awesome.) |
This is because the exact name is actually x0104A:AAR-POS-d2a4d1df-2. So should we detect and strip the first id before ":"? Or should we treat this name as a two IDs and both these urls: https://fragalysis.apps.xchem.diamond.ac.uk/viewer/react/preview/direct/target/Mpro/mols/AAR-POS-d2a4d1df-2/exact/L and https://fragalysis.apps.xchem.diamond.ac.uk/viewer/react/preview/direct/target/Mpro/mols/x0104A/exact/L will produce same result? |
Oh... okay, so the real problem is that the IDs and search had to be hacked earlier this year - thanks, I understand. Let's close this ticket, but worth revisiting when we get reworking the identifiers. (I forget the ticket number.) |
Currently direct links works in a way that toggles are applied when molecule name provided in the URL is substring of the molecule name (protein_code) in the data. This behavior is fine but we need also option for exact match. In this case the name of the molecule in the URL must exactly (sort of... on that later) match the name of the molecule (protein_code) in the data and the toggles are applied only on these exact matches. Protein_code has structure targetName-moleculeName and exact match must only match the moleculeName part of the protein_code.
Currently the example URL is http://localhost:8080/viewer/react/preview/direct/target/Mpro/mols/X0426_0/L/P/S/X2608/L/P - this is current behavior which shall remain unchanged.
If we want only exact matches we should use URL in this format: http://localhost:8080/viewer/react/preview/direct/target/Mpro/mols/X0426_0/exact/L/P/S/X2608/exact/L/P - in this case we are searching exactly for molecules X0426_0 and X2608.
If we want to search exactly for X2608 and all molecules which contains X0426_0 as a substring then the URL should look like thise: http://localhost:8080/viewer/react/preview/direct/target/Mpro/mols/X0426_0/L/P/S/X2608/exact/L/P
NOTE: This task is expansion of #431 (with bug fix in #447 ) - both deployed in production therefore merged in the master
The text was updated successfully, but these errors were encountered: