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

[4] fix for cypress 1.1.0 hack #43726

Closed
wants to merge 3 commits into from
Closed

[4] fix for cypress 1.1.0 hack #43726

wants to merge 3 commits into from

Conversation

alikon
Copy link
Contributor

@alikon alikon commented Jul 1, 2024

related to #43722

@alikon alikon mentioned this pull request Jul 1, 2024
4 tasks
@alikon alikon marked this pull request as ready for review July 1, 2024 08:51
@@ -88,8 +88,9 @@ protected function prepareDocument()
$category = $this->category->getParent();

while (
(!isset($menu->query['option']) || $menu->query['option'] !== 'com_newsfeeds' || $menu->query['view'] === 'newsfeed'
|| $id != $category->id) && $category->id > 1
isset($category->id) && $category->id > 1
Copy link
Contributor

@wilsonge wilsonge Jul 1, 2024

Choose a reason for hiding this comment

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

What scenario are we fixing here? We've validated the menu item against the category supplied above. We can check the category coming back isn't null as a sanity check I guess (although I don't understand why this wouldn't need the same fix in 5.0 - but supposedly this isn't an issue there) - but I don't see why we need to check the id is greater than 1. Like I say how do we end up in this scenario?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

backporting joomla-cypress 1.1.0 to 4.x avoiding hacks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Fair enough :) I didn't realise all the fixes were backports from the 5.x branch. I guess it will do then. I don't like it - but we shouldn't merge more back into the 5.x branch

@wilsonge
Copy link
Contributor

wilsonge commented Jul 1, 2024

Can you explain the logic behind the HtmlView check? I completely understand the datetime one in the tests folder - but not the other one (yes I've seen the test failures but that doesn't explain to me the fix being made here)

@alikon alikon marked this pull request as draft July 1, 2024 19:17
@alikon
Copy link
Contributor Author

alikon commented Jul 1, 2024

didn't digged in too much, just an attempt to equalize, what it is running on 5.x

@alikon
Copy link
Contributor Author

alikon commented Jul 2, 2024

moved to muhme#6

@alikon alikon closed this Jul 2, 2024
@alikon alikon deleted the patch-21 branch July 2, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants