Skip to content

2.x factories#2194

Merged
acobster merged 232 commits into2.xfrom
2.x-factories
Oct 16, 2020
Merged

2.x factories#2194
acobster merged 232 commits into2.xfrom
2.x-factories

Conversation

@szepeviktor
Copy link
Copy Markdown
Contributor

Let's have a PR for Factories.

Coby Tamayo and others added 17 commits January 7, 2020 19:03
"Guest Authors" as returned from get_coauthors() are just stdclass objects,
which are not supported in UserFactory. This adds support at the
integration level to instantiate these as CoAuthorsPlusUser instances
directly.
Doing this mainly for simplicity's sake, since the status of this integration is up in the air.
Further discussion to be had on PR #2157.
This reverts commit f143bcd.

This adds support for the Co-Authors Plus back in as it was when support
was dropped. This is in case we decide to continue supporting it.
This matches up with WP Core and constitutes a non-breaking change.

As a follow-up, we should still test passing different args for terms
shared between taxonomies, and define exactly what those semantics are.
@szepeviktor
Copy link
Copy Markdown
Contributor Author

There was 1 error:

1) TestTimberUser::testIDDataType

Error: Call to protected Timber\User::__construct() from context 'TestTimberUser'

tests/test-timber-user.php:12

@jarednova
Copy link
Copy Markdown
Member

I think we're good here @acobster @gchtr ? Unless there's something I'm missing I think we could pull this in and proceed with THE PURGE #2323.

The only other PR to consider (at least that I saw) was #2293. Let me know if that needs to be resolved/merged first before we merge with #1617 or if it can come in after direct to 2.x

jarednova
jarednova previously approved these changes Oct 15, 2020
@acobster acobster requested a review from gchtr October 15, 2020 18:05
@acobster
Copy link
Copy Markdown
Collaborator

There are a few other things noted in the checklist in #2073 (#2292, #1863, #2333) but these are all improvements on top of what I think is a pretty strong foundation here. We should also do a final pass over all the tests that are currently skipped at some point. And just for completeness's sake, #2073 still needs to be merge in, but I think that should come after those improvements.

@szepeviktor where did you see that test failure? Travis seems happy...

Barring any objections from @gchtr, I say let's go for it.

@szepeviktor
Copy link
Copy Markdown
Contributor Author

szepeviktor commented Oct 15, 2020

@szepeviktor where did you see that test failure? Travis seems happy...

That was 8 months ago 🐈

@acobster
Copy link
Copy Markdown
Collaborator

That was 8 months ago 🐈

lol, is it Friday yet?

gchtr
gchtr previously approved these changes Oct 16, 2020
@gchtr
Copy link
Copy Markdown
Member

gchtr commented Oct 16, 2020

@jarednova @acobster I’d say, let’s merge this in and then work on remaining tasks against the 2.x branch. If any pull request is still against 2.x-factories, it will be automatically updated to be pulled against 2.x.

From what I can tell, #2073 still gives a very up-to-date view over the remaining tasks. I think apart from THE PURGE (#2323), these are mostly the only remaining blocking tasks that we need to work on before we could release an alpha or a beta version, right?

While we can test the first version and resolve issues that might still surface there, we can also work on the other remaining tasks, like documentation, type declarations, etc.

I can check for merge conflicts with #2073 once this pull request is merged into 2.x.

@acobster I’ll leave it to you to do the merge.

@acobster
Copy link
Copy Markdown
Collaborator

Alright! Merging momentarily.

these are mostly the only remaining blocking tasks that we need to work on before we could release an alpha or a beta version, right?

Yeah, I've done my best to keep #2073 up to date with everything we need to tackle before 2.0.

And actually, IMO there's no reason we couldn't create an alpha release now. There will be one or two breaking changes thereafter (e.g. type declarations, PHP req), but that's what alpha releases are for 🙂

@acobster acobster dismissed stale reviews from gchtr and jarednova via bb89856 October 16, 2020 16:59
@acobster acobster merged commit f036e42 into 2.x Oct 16, 2020
@acobster acobster deleted the 2.x-factories branch October 16, 2020 17:04
@szepeviktor
Copy link
Copy Markdown
Contributor Author

🎉

@jarednova
Copy link
Copy Markdown
Member

Now that's a merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants