Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • A amiv-admintool
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

  • amiv
  • amiv-admintool
  • Issues
  • #73
Closed
Open
Created Oct 20, 2018 by Sandro Lutz@lutzsaOwner

Change regex for resource search

We should change the regex used to find resources as follows. Instead of just filling in the search term into the regex, we should check every word (separated by space) with its own regex.

Example for /users:

where={"$and":[
  {"$or":[
    {"firstname":{"$regex":"^(?i).*(keyword1).*"}},
    {"lastname":{"$regex":"^(?i).*(keyword1).*"}},
    {"nethz":{"$regex":"^(?i).*(keyword1).*"}},
  ]},
  {"$or":[
    {"firstname":{"$regex":"^(?i).*(keyword2).*"}},
    {"lastname":{"$regex":"^(?i).*(keyword2).*"}},
    {"nethz":{"$regex":"^(?i).*(keyword2).*"}},
  ]},
]}

This allows to search for multiple keywords such as firstname and lastname (e.g. Hans Muster).

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking