You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit modifies how the templates-related tables ('templates', 'phases', 'sections', 'questions', 'annotations', and 'question_options') are queried within our customisation of the translation gem. All of those related tables are removed from config.db_fields. However, the tables (along with their previously specified columns) are now all included in the newly added Template ActiveRecord query (line 24). Rather than returning all of the db entries, this query only returns those that relate to the app's default_org.
`'CallableQueries' => [templates_data_for_default_org_proc]` has been added to config.db_fields.`def templates_data_for_default_org_proc` returns a proc. This proc will be called within the translation gem, where it will execute the aforementioned Template ActiveRecord query. Finally, the returned entries will be uploaded to translation.io.
0 commit comments