mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 11:11:13 +08:00

- Add a safeguard until we implement pagination for the index, it ensures we won't try to load more than 500 automations ever. - Includes the fields of the automation so we don't have an N+1 and also filter them in ruby land instead of doing two additional queries - Ensures a field object in the field serializer is capable to find the loaded automation associated to it instead of trying to reload it - Includes pending_automations to avoid an N+1