Switch to feed-io for parsing#282
Conversation
|
@SMillerDev any progress on this? I can't install this News app via the Nextcloud App Store because it is not listed there and a manual installation failes because during running the make command it can not find the picofeed stuff 😃 |
|
I thought I pushed the fixes for this. Ah well, it needs a review before it can go anywhere anyway. |
|
@janvonde download the latest archive from here https://apps.nextcloud.com/apps/news/releases?platform=13#13 |
95daeca to
3f2c5e9
Compare
6abc3d6 to
d10d8c3
Compare
d10d8c3 to
2aa0ede
Compare
8a155f4 to
f82fc1d
Compare
|
@nextcloud/news any opinions? |
danopz
left a comment
There was a problem hiding this comment.
Just did a code review.
In general it would be very nice if you could define variable/response types to enable IDEs to follow your code (thats on my list anyway for the whole app).
Also I would like to use a coding standard, personally I am using Psr-2/Psr-12, so far haven't read the NC coding style. What do you think?
| * | ||
| * @return boolean | ||
| */ | ||
| public function isSupportedMime($mime) |
There was a problem hiding this comment.
Maybe we could add some service for stuff like this? I don't like it to be on an entity which should just be a representation of data from the database
There was a problem hiding this comment.
That seems like something for a broader cleanup.
|
I'll add the php 7 types. As for coding standards, I did a run for that a while ago. The official one is zend if I recall correctly but I wouldn't have an issue with any PSR as long as we document it somewhere. |
|
The official one seems to be pear, are you okay with that @danopz ? Can you make a pull request adding the standard to the README in any case? https://docs.nextcloud.com/server/14/developer_manual/general/codingguidelines.html#php EDIT: @nextcloud/news could we enable https://styleci.io/ for that maybe? |
f82fc1d to
40a2caa
Compare
a3080ac to
3a6971e
Compare
3a6971e to
a3246a9
Compare
|
Nice, I will test it tomorrow and maybe take a brief look on the code. |
|
I will test it too and give a look at the code. |
|
I will try to get some spare time to do another review. |
|
Adding a new feed causes an error for me: |
|
|
Still broken but no errors in the nextcloud.log
Some observations: In browser console not sure if thats an issue (maybe caused by my setup localhost=webserver) Feeds are in DB but no items. |
|
@Grotax that turned out to be a pretty difficult one as it doesn't publish update times. I hope I fixed it now, can you try again? |
|
First test: EDIT: it seems like all the other feeds were imported correctly but the ui behavior is not cool but that's another issue |
|
Apart from the import error i couldn't find any issues 👍 |
|
I had the import issue too on something unrelated. Could you check if this also happens on stable? |
|
I tried the same Import on 13.03, works fine. The blog is actually already moved to another website but you can still get the feed. |
|
If I subscribe without a OPML that feed throws a CSRF exception. Could you check with the new location to see if it's in the blog or in the server config? |
|
The new official location works fine. I think in that case we are done. I don't see any reason not to merge maybe @nicola88 want's to take another look? |
|
All good for me, too. I tried to import/edit/delete a few feeds and then I imported an OPML file with all the 70+ feeds I usually follow and the only error I received was a request timeout for a feed which apparently no longer exists. |
|
@danopz @MorrisJobke @skjnldsv could this be merged then? |
Fine by me. I would give this over to you. @nicola88 or @Grotax could review this PR and then every contributor can merge this PR. This allows you to independently work on the news app. |
|
"At least 1 approving review is required by reviewers with write access." |
|
@Grotax I invited you :) |

This is a work in progress fixing #258
EDIT: All tests should be fine and my current imports work nicely on my server