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
enhancement: add relation data to history versions response #20035
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple quick questions before I give it a deeper look and test it out
packages/core/content-manager/shared/contracts/history-versions.ts
Outdated
Show resolved
Hide resolved
This looks interesting, could you share a quick screenshot of what this looks like? |
@derrickmehaffy the frontend isn't ready but it will look like this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, I tested it kinda quickly but it looks like it's working. Left some comments but I think we are good to merge.
packages/core/content-manager/server/src/history/services/history.ts
Outdated
Show resolved
Hide resolved
packages/core/content-manager/server/src/history/services/history.ts
Outdated
Show resolved
Hide resolved
packages/core/content-manager/shared/contracts/history-versions.ts
Outdated
Show resolved
Hide resolved
Looks awesome thank you 😊 |
ℹ️ This PR replaces #19786, as the git history became too much of a mess on that one
What does it do?
Why is it needed?
We need to display relations in history. And showing that some relations were deleted requires special handling.
How to test it?
🚨 Because of the data structure change, your app may crash with pre-existing history versions 🚨
Create history versions with some relations. View history, you should see the data. Go delete the related content, you should see that too in the history frontend.