Populate AI Catalog Version Created By

What does this MR do and why?

Starts populating the new created by field when new catalog item versions are created.

This will allow us to track contributions to the catalog.

References

https://gitlab.com/gitlab-org/gitlab/-/work_items/567154

Screenshots or screen recordings

Before After

How to set up and validate locally

  1. Create a new agent or flow
  2. Check Ai::Catalog::ItemVersion.last has the correct created_by_id
  3. Impersonate a random user
  4. Modify an existing agent or flow
  5. Check Ai::Catalog::ItemVersion.last has the correct created_by_id

MR acceptance checklist

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

Edited by Lee Tickett

Merge request reports

Loading