-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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.2 RC1] Feed display module not working #38312
Conversation
AppVeyor failed because $this->version has correct values for Atom and RSS files. tests\Unit\Libraries\Cms\Feed\Parser\AtomParserTest.php file and tests\Unit\Libraries\Cms\Feed\Parser\RssParserTest.php seem to be wrong. |
@conseilgouz Then you should fix the tests, too. Let us know if you need some help or advise for that. |
P.S.: You can run the unit test locally on a git clone by running |
@conseilgouz The failing tests can be found here https://github.com/joomla/joomla-cms/blob/4.2-dev/tests/Unit/Libraries/Cms/Feed/Parser/AtomParserTest.php#L374-L387 and here https://github.com/joomla/joomla-cms/blob/4.2-dev/tests/Unit/Libraries/Cms/Feed/Parser/RssParserTest.php#L583-L601 . But from reading the code, the tests seem to be correct regarding the checked versions. Here the output from the test run in Appveyor:
So it seems your PR is not right or changes something at the wrong place. |
PR #38312 : update unit test
@richard67 : unit test files (RSS & ATOM) have been updated, so they match FeedFactory behaviour : go to root node and read it. |
@richard67 : integration/drone/pr has a phpmin-system-postgress error : I'm afraid I don't have enough knowledge to fix this one.... |
After merging branch, postgress error disappeared... |
@conseilgouz Sometimes we have unrelated errors in system tests e.g. due to timeouts. But besides this I am not convinced of your changes in the tests. The tests looked right to me before. I don’t have the time now for testing it myself, but if nobody else can reproduce the issue I have doubts on this PR. |
@richard67 : about the changes, when initialise function is called in RssParser.php and AtomParser, stream (xmlreader) has read the root node : it's done in FeedFactory.php, function getFeed(), lines 68 and above. |
That's a 4.2 RC1 issue. Let's hope somebody else will see this issue. |
2 ways to fix #38310
Current PR is following fix 2 idea. |
i can replicate the issue like has been described |
It seems that just the two of us are interested in this issue. |
I have tested this item ✅ successfully on 6157800 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38312. |
@alikon : one more human test to go..... |
I have tested this item ✅ successfully Tested with success (4.2.0 rc2 dev) |
@YGomiero A comment with a green check mark is not sufficient for the test to count. You have to mark your test result in the issue tracker here https://issues.joomla.org/tracker/joomla-cms/38312 , use the blue "Test this" button at the top left corner, select the test result and finally submit. Could you do so? Thanks in advance. |
I have tested this item ✅ successfully on 6157800 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38312. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38312. |
Pull Request for Issue #38310 .
Testing Instructions
Create a Feed display module.
Enter https://www.joomla.org/announcements.feed?type=rss in Feed URL parameter
Enter Sidebar-right as position (using cassiopeia template)
Actual result BEFORE applying this Pull Request
Feed display module shows "Feed not found" error in all cases.
Expected result AFTER applying this Pull Request
Display Feed infos.