Skip to content

Prioritize tag search matches in the beginning of the result#1690

Merged
dbenham merged 1 commit intohubzero:devfrom
ishunko:tagssearch
Jan 17, 2024
Merged

Prioritize tag search matches in the beginning of the result#1690
dbenham merged 1 commit intohubzero:devfrom
ishunko:tagssearch

Conversation

@ishunko
Copy link
Contributor

@ishunko ishunko commented Nov 11, 2023

https://nanohub.org/support/ticket/437145
https://nanohub.org/support/ticket/437145

Updated code to get all tag search matches and prioritize the matches in the beginning of the string result. To achieve this, the code gets all matches from the DB and then parses them to find the matches in the beginning of the string to push these matches to the top of the returned JSON. This approach allows to keep using ORM in the cloud model and not modify the SQL as was suggested earlier in the ticket.

@dbenham dbenham merged commit 4f877b0 into hubzero:dev Jan 17, 2024
mdlama added a commit to qubeshub/hubzero-cms that referenced this pull request May 31, 2025
commit 3c1acbc9d6264a9d542a08a903571cf4ece2bee2
Author: M. Drew LaMar <mdlama@wm.edu>
Date:   Fri May 30 11:08:28 2025 -0400

    another set off null to '' fixes

    (cherry picked from commit c80af1d)

commit f0491dd08d4bd631c53229599e2f5e3d41541a01
Author: M. Drew LaMar <mdlama@wm.edu>
Date:   Fri May 30 11:07:53 2025 -0400

    Fix XSS issue

    (cherry picked from commit 14fd235)

commit d688c6741d4037d5688699703e974058fa7df5e2
Author: M. Drew LaMar <mdlama@wm.edu>
Date:   Fri May 30 11:07:14 2025 -0400

    check if variable is an array before trying to count it

    (cherry picked from commit 6135142)

commit 22c5b5e338a01794d3efa1d82af051748dbfd79a
Author: M. Drew LaMar <mdlama@wm.edu>
Date:   Fri May 30 11:06:32 2025 -0400

    pass null arguments as '' where needed

    (cherry picked from commit 804415e)

commit 99a5d37cef8238163ab00bc49a1e95d69e2c6f59
Author: M. Drew LaMar <mdlama@wm.edu>
Date:   Fri May 30 11:05:42 2025 -0400

    Make exact matchsearch case insensitive. Fix the if statement.

    (cherry picked from commit 7a5349a)

commit 07087d13bffd7ac9bdb928da9430ce59dce99dd5
Author: M. Drew LaMar <mdlama@wm.edu>
Date:   Fri May 30 11:05:19 2025 -0400

    Improve tag search prioritization

    (cherry picked from commit c57b0f1)

commit b3443f73d19669dc7a3724eeb23ac3a64f1c56b6
Author: M. Drew LaMar <mdlama@wm.edu>
Date:   Fri May 30 11:04:46 2025 -0400

    Some fixes for MySQL STRICT TRANS mode

    (cherry picked from commit 4d8762e)

commit 3aabeac8146c4cd62b401e9703b25a3c4d42e471
Author: M. Drew LaMar <mdlama@wm.edu>
Date:   Fri May 30 11:04:08 2025 -0400

    [PHP70] Object is now a reserved name

    (cherry picked from commit 9ad1fa3)

commit b3a7c100c2a219fe0c60db99c5496103764cf36f
Author: M. Drew LaMar <mdlama@wm.edu>
Date:   Fri May 30 11:03:16 2025 -0400

    Prioritize tag search matches in the beginning of the result (hubzero#1690)

    (cherry picked from commit 4f877b0)

commit 123c99f5a1041c1e4a7b718512b93083c4ae4891
Author: M. Drew LaMar <mdlama@wm.edu>
Date:   Fri May 30 11:02:42 2025 -0400

    Retrieve the resource from the tag plugin to contain the type info.
    Display resource type firs and bolded.
    Display the result's section (if exists)  on the tags listing page.
    Fix commet typo.

    (cherry picked from commit a4f462d)

commit 0ff66f7d34caf61922761ff4c0289fbb8807321d
Author: M. Drew LaMar <mdlama@wm.edu>
Date:   Fri May 30 10:51:04 2025 -0400

    [PHP80] remove last vestiges of magic_quotes in core/components

    (cherry picked from commit 6e2159e)

commit 3cd3dce5d41b49a692b6ab36642498f809068a6e
Author: M. Drew LaMar <mdlama@wm.edu>
Date:   Fri May 30 10:50:34 2025 -0400

    PURR-87/PURR ticket 2442 - admin tags showing up for non admin users

    (cherry picked from commit b886f95)

commit 03e33b44f2789e4efff190c2d3bf191ef753bd94
Author: M. Drew LaMar <mdlama@wm.edu>
Date:   Fri May 30 10:49:20 2025 -0400

    Sizing changes across components. Add types to tag plugins

    (cherry picked from commit e375ba9)

commit daa53749c026321faba6cbb47388a2473207b4e3
Author: M. Drew LaMar <mdlama@wm.edu>
Date:   Fri May 30 10:48:09 2025 -0400

    fix: Add ARIA labels to nav landmarks

    Refs: https://dequeuniversity.com/rules/axe/4.4/landmark-unique
    (cherry picked from commit dce78f8)

commit 06a50e554956878797e794e674ba3ea9d99e5cd6
Author: M. Drew LaMar <mdlama@wm.edu>
Date:   Fri May 30 10:47:31 2025 -0400

    fix: Add labels to inputs

    Refs: https://dequeuniversity.com/rules/axe/4.4/label
    (cherry picked from commit d5cd7c4)

commit ecda1017949a3922ea982cfcd42dd63852f6e17e
Author: M. Drew LaMar <mdlama@wm.edu>
Date:   Fri May 30 10:46:45 2025 -0400

    Distingush between root side links and children in case if one of each have the same alias

    (cherry picked from commit 16fb974)

commit 2c8ebbcc89e267c2c09b9ee8a8edd7c738cd7d59
Author: M. Drew LaMar <mdlama@wm.edu>
Date:   Fri May 30 10:45:42 2025 -0400

    change api docblocks to match parameters used

    (cherry picked from commit 17029b9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments