Skip to content

Rename Comparator::diffTable() params - from/to instead of 1/2#4337

Merged
greg0ire merged 1 commit intodoctrine:2.11.xfrom
mvorisek:from_to_instead_1_2
Oct 15, 2020
Merged

Rename Comparator::diffTable() params - from/to instead of 1/2#4337
greg0ire merged 1 commit intodoctrine:2.11.xfrom
mvorisek:from_to_instead_1_2

Conversation

@mvorisek
Copy link
Copy Markdown
Contributor

@mvorisek mvorisek commented Oct 12, 2020

Q A
Type improvement
BC Break no
Fixed issues no issue, pure refactor

Summary

swapping input of Comparator::diffTable will produce completely different result - the first gven table is expected to be the "from" table and the 2nd table is expected to be the "to" table

the names are also consistent with Comparator::compare (which uses $fromSchema, $toSchema names)

no more changes in Comparator class needed - Comparator::diffSequence uses $sequence1 and $sequence2 names, but the inputs can be swapped, so these names should stay

@mvorisek mvorisek changed the title Rename vars - from/to instead of 1/2 Rename Comparator::diffTable() params - from/to instead of 1/2 Oct 12, 2020
@greg0ire
Copy link
Copy Markdown
Member

Please kindly squash your commits together. If you don't, we'll try to remember to do it for you but it's best if you save us this trouble.

@mvorisek mvorisek force-pushed the from_to_instead_1_2 branch from cdfa6f3 to 92337f0 Compare October 13, 2020 08:15
@mvorisek
Copy link
Copy Markdown
Contributor Author

@greg0ire squashed

greg0ire
greg0ire previously approved these changes Oct 13, 2020
Copy link
Copy Markdown
Member

@greg0ire greg0ire left a comment

Choose a reason for hiding this comment

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

Let's do this before it becomes a BC-break 👍

@greg0ire greg0ire requested a review from morozov October 14, 2020 17:36
morozov
morozov previously approved these changes Oct 14, 2020
@greg0ire greg0ire dismissed stale reviews from morozov and themself via 032b602 October 15, 2020 17:38
@greg0ire greg0ire force-pushed the from_to_instead_1_2 branch from 92337f0 to 032b602 Compare October 15, 2020 17:38
@greg0ire
Copy link
Copy Markdown
Member

Rebasing because of new pipeline

@greg0ire
Copy link
Copy Markdown
Member

Thanks @mvorisek !

@morozov Codecov is behaving a bit weird, it seems to need time to process the ~50 reports we send, then it show the right percentage diff in Github's UI, but in its own UI, it's correct in some places, outdated and alarming in some others, for example the Coverage change tab is wrong and so is the Overview graph cc @thomasrockhu

@greg0ire greg0ire merged commit 29bf315 into doctrine:2.11.x Oct 15, 2020
@thomasrockhu
Copy link
Copy Markdown

@greg0ire, this is indeed strange. Would you be able to open a ticket in our community boards? I'll take a look.

@greg0ire
Copy link
Copy Markdown
Member

Looks like it's fixed now, it just seems to take a lot of time. Should I still open the ticket? It will be hard for you to investigate anything I'm afraid.

@thomasrockhu
Copy link
Copy Markdown

@greg0ire, ah got it. I'll keep an eye out, but if you see it happening, please feel free to open.

@mvorisek mvorisek deleted the from_to_instead_1_2 branch October 15, 2020 19:11
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants