Backend: update workspace reconciliation with agent config version
MR: Add column workspaces_agent_config_version and ... (!165912 - merged)
Description
We would need to do a few things in this MR
- save workspaces_agent_config_version on workspace creation
- validate workspaces_agent_config_version must present and valid (no larger then current latest version)
- add a new helper on model, to get correct versioned workspaces_agent_config
- for above updates, handle most edge cases to make code working
- update on existing association from workspace to always returning latest workspaces_agent_config
- update on any reference to
workspaces_agent_configwhen needed
Acceptance Criteria
-
save workspaces_agent_config_version on workspace creation -
validate workspaces_agent_config_version must present and valid (no larger then current latest version) -
update on existing association from workspace to always returning latest workspaces_agent_config -
update on any reference to workspaces_agent_configwhen needed -
update unit testings as needed
Edited by zli