-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Refactor CalendarEdit component #23072
Refactor CalendarEdit component #23072
Conversation
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.
This looks good to merge. It just needs a rebase to get tests working.
@ZebulanStanphill Done, thanks. |
Comically, it looks like the Static Analysis check is not working in |
I can't see how the failing test could possibly be related, so I'm going to assume it's just another intermittent failure that another rebase would fix, and I'm going to go ahead and merge this anyway. Here's the failing test, for reference:
|
@ZebulanStanphill would be good to create an issue for the intermittent failure and ideally we should invesitage these as we notice them otherwise it just falls on one person when things get very bad 😬 |
I was incorrect to say the test failure was "intermittent". It was happening every time, even after restarting the tests on the PR twice. But since it was not happening on other more recent PRs, and because I'm pretty sure it wasn't even the same failing test as the first time tests were failing, I assume the failure has already been fixed in I'm currently watching the tests on (I would have just rebased this branch myself, but since it's from a fork, I didn't think I could do that.) |
Thanks for the clarification @ZebulanStanphill that sounds logic. I think you can rebase almost all fork PRs unless the author unchecked a dedicated checkbox to forbid commits to his PR. |
Well, that test failure didn't happen on
However, I noticed that this test was already failing on #24330 before I merged this PR, so that confirms that this latest test failure is not related to either PR. |
yes, template part is definitely an intermittent failure :( |
Description
Related to #22890
How has this been tested?
Tested this by inserting Calendar block in Post and Page post type. Compared the result with the previous component on the editor and frontend. Also, I compare the passed props on
ServerSideRender
and it looks fine.Types of changes
Removed the
getServerSideAttributes
function, I don't think it is needed.It has memoization but it is not working, I think it is because we pass an objectEdit: The memoization actually works with non-primitive data types, I was just testing it wrong.attributes
param and thememize
library does not make a shallow comparison.Checklist: