Skip to content

Correct regex expression for auto complete quick actions

  • Please check this box if this contribution uses AI-generated content as outlined in the GitLab DCO & CLA

What does this MR do and why?

Previously when adding /add_contacts /remove_contacts the quick action would autocomplete and show /add_contacts [contact: /remove_contacts [contact:

At some point this stopped working and now when using either quick action it no longer adds [contact: and we have to manually type this.

This MR fixes this regression and the functionality is as before.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before

image image

After

image image

How to set up and validate locally

  1. You will need CRM enabled and one contact setup as outlined in documentation
  2. Type the quick action /add_contacts in the Master branch.
  3. This will show that the autocomplete does not work.
  4. In the feature branch type the quick action /add_contacts
  5. This will add the [contact:
  6. Confirm that typing /spend does not does not add autocomplete (timelog categories). You will need to make sure you have them enabled. As outlined in the original MR that this issue was introduced.
Edited by Lee Tickett

Merge request reports