Content-Length: 414899 | pFad | https://github.com/sulu/SuluArticleBundle/pull/450

47 Add missing response and requestFormat variable by Prokyonn · Pull Request #450 · sulu/SuluArticleBundle · GitHub
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

Add missing response and requestFormat variable #450

Merged

Conversation

Prokyonn
Copy link
Member

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes #issuenum
Related issues/PRs #issuenum
License MIT

What's in this PR?

Add missing variables for proper functionality.

@@ -61,7 +61,7 @@ protected function renderArticle(Request $request, ArticleInterface $object, $vi

try {
if ($partial) {
$this->createResponse($request);
$response = $this->createResponse($request);
Copy link
Contributor

Choose a reason for hiding this comment

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

we should really enable phpstan in this repository..

@alexander-schranz alexander-schranz added the bug Error or unexpected behavior of already existing functionality label Mar 31, 2020

/**
* This behavior has to be attached to documents which should have a sulu-route but managed by their parent.
*/
interface RoutablePageBehavior extends RoutableInterface, UuidBehavior, LocaleBehavior, StructureBehavior
interface RoutablePageBehavior extends RoutableInterface, UuidBehavior, LocaleBehavior, StructureBehavior, RoutableBehavior
Copy link
Member

Choose a reason for hiding this comment

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

@Prokyonn This needs a higher min requirement of sulu/sulu since when does RoutableBehavior exist ?

Copy link
Member

@alexander-schranz alexander-schranz Mar 31, 2020

Choose a reason for hiding this comment

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

@wachterjohannes @danrot this sounds like a bc break in sulu/sulu that it now errors and didn't error before.

Copy link
Member

Choose a reason for hiding this comment

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

Oh okay this is a page tree route interface which we had not yet implemented in 2.0 before.

Copy link
Member

Choose a reason for hiding this comment

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

Think #422 is the missing part here @luca-rath?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, this change will be introduced when #422 is merged. This should not be needed here i guess.


/**
* This behavior has to be attached to documents which should have a sulu-route but managed by their parent.
*/
interface RoutablePageBehavior extends RoutableInterface, UuidBehavior, LocaleBehavior, StructureBehavior
interface RoutablePageBehavior extends BaseRoutableBehavior
Copy link
Contributor

Choose a reason for hiding this comment

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

@Prokyonn why did you change this here? I don't think, that this is needed

Copy link
Member Author

@Prokyonn Prokyonn Mar 31, 2020

Choose a reason for hiding this comment

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

It is needed for some functional tests, but the rest of the PageTreeRoute will be fixed in your PR :) (#422)

Copy link
Member

Choose a reason for hiding this comment

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

If changes needed here this can be done in #422 but currently this is needed that the CI is running without an interface error.

@@ -24,7 +24,7 @@
"jms/serializer-bundle": "^3.3",
"ongr/elasticsearch-bundle": "^5.2",
"ongr/elasticsearch-dsl": "~5.0 || ~6.0",
"sulu/sulu": "^2.0.3",
"sulu/sulu": "^2.0.5",
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer requiring ^2.0.6, because 2.0.5 introduced a bug and 2.0.6 is just the fix for it. WDYT?

Copy link
Member

Choose a reason for hiding this comment

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

The bug has nothing todo with article bundle so I keep this and will merge this as it is to fix the current state.

@alexander-schranz
Copy link
Member

alexander-schranz commented Mar 31, 2020

Will merge this one, hope we get #422 merged soon so the CI is running again without errors.

@alexander-schranz alexander-schranz merged commit aaa227c into sulu:develop Mar 31, 2020
@Prokyonn Prokyonn deleted the bugfix/fix-website-article-controller branch April 3, 2020 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Error or unexpected behavior of already existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/sulu/SuluArticleBundle/pull/450

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy