Skip to content

Enable caching for records which primary key is not `id`

Peter Leitzen requested to merge pl-reactive-caching-primary_key into master

What does this MR do?

In https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24240 we enable reactive caching for a model which primary key is not id. This MR tackles this problem by using record's primary_key instead of hardcoding it to id.

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Edited by Kamil Trzciński

Merge request reports