Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Set version endpoint created and updated time on initialization (#…
…480) <!-- Thanks for sending a pull request! Here are some tips for you: 1. Run unit tests and ensure that they are passing 2. If your change introduces any API changes, make sure to update the e2e tests 3. Make sure documentation is updated for your PR! --> **What this PR does / why we need it**: <!-- Explain here the context and why you're making the change. What is the problem you're trying to solve. ---> After using jobArgs.Endpoint data as the [reference value](https://github.com/caraml-dev/merlin/blob/v0.34.0/api/queue/work/model_service_deployment.go#L61) for the deployment, the CreatedUpdated value is set to the time default value (`0001-01-01 00:00:00 +0000 UTC`) which could lead to DB update to use this value. This PR fixes it by getting the created_at and updated_at from version_endpoints DB so that it can be updated correctly. **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> Fixes wrong created_at value on version_endpoints **Does this PR introduce a user-facing change?**: <!-- If no, just write "NONE" in the release-note block below. If yes, a release note is required. Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required". For more information about release notes, see kubernetes' guide here: http://git.k8s.io/community/contributors/guide/release-notes.md --> ```release-note ``` **Checklist** - [ ] Added unit test, integration, and/or e2e tests - [x] Tested locally - [ ] Updated documentation - [ ] Update Swagger spec if the PR introduce API changes - [ ] Regenerated Golang and Python client if the PR introduce API changes
- Loading branch information