Skip to content
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: improve CM modified date comparison #19898

Merged
merged 17 commits into from
May 9, 2024
Merged

Conversation

Marc-Roig
Copy link
Contributor

What does it do?

Remove the clunky date check for Modified status, now , when publishing on the document service, we assign the updated value of the published version to be exactly the same as the publish version.

Before they were not "exactly" the same, (off by milliseconds) and we had to add a threshold for the check

Reopened from #19787

@Marc-Roig Marc-Roig self-assigned this Mar 22, 2024
@Marc-Roig Marc-Roig changed the title fix: date comparison fix: improve CM modified date comparison Mar 22, 2024
@Marc-Roig Marc-Roig added this to the 5.0.0-beta.1 milestone Mar 22, 2024
@Marc-Roig Marc-Roig added source: core:content-manager Source is core/content-manager package pr: enhancement This PR adds or updates some part of the codebase or features labels Mar 22, 2024
Copy link

vercel bot commented Mar 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
contributor-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 9, 2024 2:04pm

@joshuaellis joshuaellis modified the milestones: 5.0.0-beta.1, 5.0.0-beta.2 Mar 27, 2024
@jhoward1994 jhoward1994 self-requested a review May 8, 2024 08:50
@jhoward1994
Copy link
Contributor

Thanks! Makes sense to me.

I've merged this into #20258 to check the CI on the tests I was having trouble with. I'll approve if everything works

@Marc-Roig
Copy link
Contributor Author

@jhoward1994 tests were not passing here at the time, so mayabe it's still not enough, but let me know if you want to work on it together!

@jhoward1994
Copy link
Contributor

Okay thanks.

I'm working on it a bit in #20258. Sorry it breaks our PR organisation a bit but I need to test it with the e2e tests in that branch. I can cherry pick it here so we can trace it all

Copy link
Contributor Author

@Marc-Roig Marc-Roig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! thank you for the work Jamie, lets push to fix all api tests and we can merge this. Let me know if we want me to jump in a call at any time!

@Marc-Roig Marc-Roig merged commit 521cd3f into v5/main May 9, 2024
78 of 91 checks passed
@Marc-Roig Marc-Roig deleted the v5/modified-date-comparison branch May 9, 2024 17:19
@echoes-hq echoes-hq bot added the echoes/type: bug Effort to correct undesirable or incorrect behavior label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes/type: bug Effort to correct undesirable or incorrect behavior pr: enhancement This PR adds or updates some part of the codebase or features source: core:content-manager Source is core/content-manager package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants