yoast-acf-analysis icon indicating copy to clipboard operation
yoast-acf-analysis copied to clipboard

Ensure no errors on CPTs without Yoast SEO metabox

Open kraftner opened this issue 8 years ago • 11 comments

fixes #88

kraftner avatar Oct 19 '17 12:10 kraftner

CR Done 👍

andizer avatar Oct 23 '17 05:10 andizer

I'm having an issue with the testing code being inside the plugin, but I understand that the total approach needs to be revised in order to change this.

As we don't want to ship the tests or any non-build files in the actual plugin, we would be referencing code that does not exist.

moorscode avatar Oct 30 '17 13:10 moorscode

I absolutely agree with that. This was kind of ok while it was just one simple thing. But as this grows we'll need to get this out at some point.

kraftner avatar Oct 30 '17 13:10 kraftner

See https://github.com/Yoast/yoast-acf-analysis/issues/111

moorscode avatar Oct 30 '17 13:10 moorscode

I think the question here and now is if we get this out and clean up later or put this on hold until we have #111 sorted out.

kraftner avatar Oct 30 '17 16:10 kraftner

Let's add this functionality first and remove the testing from the plugin afterwards. Could you resolve the conflicts?

moorscode avatar Dec 19 '17 08:12 moorscode

I think it would be better the other way around. Because I'd need to fix the conflicts here, merge this, which then in turn will cause conflicts in #117 plus the need to rework everything in this PR anyway. Sounds like a lot of wasted effort.

Is there any reason you see with #117 why it can't be merged before?

kraftner avatar Dec 19 '17 09:12 kraftner

@kraftner the only thing that was blocking #117 was a the bit of code that mocked the WordPress global & add_action functionality.

I have done a CR on that PR and provided a better way to resolve that problem.

moorscode avatar Dec 20 '17 19:12 moorscode

Updated PR based on changed test data loading going into develop via #117

kraftner avatar Dec 21 '17 11:12 kraftner

As #117 has been merged, this can be implemented. Could you resolve the merge conflict? Would be nice to also add some comment at each entry what data it is adding and why.

moorscode avatar Jan 03 '18 14:01 moorscode

Could you also merge develop into this branch, to make sure all tests and travis are passing on it as well?

moorscode avatar Jan 03 '18 14:01 moorscode