-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Revision history is not showing the timestamp of the revision #1142
Conversation
08c48aa
to
85dc5ec
Compare
I'm not sure this is the "right" fix. the "intent" of using a Timestamped object was that updateTs isn't needed/should be replaced. Adding a getter/setter for the field I think is the wrong path. See: front50/front50-sql/src/main/kotlin/com/netflix/spinnaker/front50/model/sql/TableDefinitions.kt Line 106 in 4751d87
So really I think instead of this PR, need to remove updateTs field entirely and REPLACE with the lastUpdated stuff and a wrapper on get for the lastUpdated data. The s3 storage though is one to evaluate and see how it handles this to confirm. |
@jasonmcintosh , I don't see any problem in the code you mentioned because of secondary getter in this DTO is
the same for setter
I would like to avoid Desk modification because of the bug priority P1. |
Also, I would like to note that timestamp data for existing pipeline history records was lost, and it seems like we will not be able to recover it. |
Moreover, I guess they didn't remove |
@jasonmcintosh, ah, I see your point. They no longer store timestamp inside |
Update:
|
Hi @cfieber, @jonsie, @mattgogerly Please take a look at this pull request and merge it if you don't have any objections. Thank you in advance! |
Are you sure this is necessary? We have a user reporting the same issue, and they say applying #1133 fixed it for them. |
@mattgogerly, yes, these changes fix the bug for MySQL data source. |
@Mergifyio update |
✅ Branch has been successfully updated |
@Mergifyio backport release-1.27.x release-1.28.x |
…1142) * fix: Revision history is not showing the timestamp of the revision * fix: recovery timestamp data * fix: replace updateTs with lastModified * fix: unit tests Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 5c15d0c) # Conflicts: # front50-api/src/main/java/com/netflix/spinnaker/front50/api/model/pipeline/Pipeline.java
…1142) * fix: Revision history is not showing the timestamp of the revision * fix: recovery timestamp data * fix: replace updateTs with lastModified * fix: unit tests Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 5c15d0c) # Conflicts: # front50-api/src/main/java/com/netflix/spinnaker/front50/api/model/pipeline/Pipeline.java
✅ Backports have been created
|
Hi @armory-abedonik ,
Here's the log when I debug the issue. I think this bug should be related to
Here's the cache metrics after I applying my code change. Could you check whether it is a correct change and any other parts need to be updated as well? I don't have a dev environment for Spinnaker , not sure whether my change would breaking other thing. Hope we can get this issue fixed and backported in 1.29 ASAP. Thanks |
Observed Behavior
Expected Behavior
Issue reason
Desk uses this request to update pipeline.
POST http://{host}:8084/pipelines?staleCheck=true
As you can see, it has
updateTs
field inside the payload, so we need to have setter function to deserialize this DTO correctly.