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 RSS feeds #1166

Merged
merged 7 commits into from
Apr 1, 2015
Merged

Add RSS feeds #1166

merged 7 commits into from
Apr 1, 2015

Conversation

j0k3r
Copy link
Member

@j0k3r j0k3r commented Mar 28, 2015

By default, items in each feeds are limited to 50. User can change this value in the config page. This will fix #1000.

I've re-added the token system (I put it in a Tools/Utils class), which can also be regenerated (todo: make an ajax call).
Url are like that: http://wallabag.io/j0k3r/0jlmUxAVZqmc26P/unread.xml

I've added a ParamConverter to check if the username and the token in the url are good.

I've also added an @Assert\Range on itemPerPage & rssLimit to be sure it's a number. So the validation works on the form too. I've put a kind of random number as max value: 100.000.

Regarding the InstallCommand tests, they are god damn too long to execute because it launch external commands (mostly related to doctrine).

So I've added a PHPUnit @group (command-doctrine) so that we can avoid launching them on a regular basis, like that:

phpunit --exclude-group command-doctrine

And I've update travis to run PHPUnit like that for the moment. Launching phpunit will still work, but it's longer. The downside is that the InstallCommand is less tested using --exclude-group

@j0k3r j0k3r added this to the 2.0 milestone Mar 28, 2015
{% trans %}estimated reading time :{% endtrans %} < 1 min
{%- endif %}

{{ entry.content -}}
Copy link
Member

Choose a reason for hiding this comment

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

entry.content|raw maybe?

Copy link
Member Author

Choose a reason for hiding this comment

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

To keep html content? Well I've encaplusated the content inside a CDATA to avoid problem.
But yes, I need to test with raw.

Copy link
Member

Choose a reason for hiding this comment

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

I tryied, and I think it doesn't work.

Since it's the primary key
and fix few mistakes
They are god damn too long to execute because it launch external command (mostly related to doctrine).

So I've added a PHPUnit @group (`command-doctrine`) so that we can avoid launching them on a regular basis, like that:

`phpunit --exclude-group command-doctrine`
Mailjet seems to be laggy, hope that LeMonde will be more reliable in the future.

@see https://travis-ci.org/wallabag/wallabag/jobs/56246231
We don't want Symfony to escape html content
nicosomb added a commit that referenced this pull request Apr 1, 2015
@nicosomb nicosomb merged commit 1a93ee4 into v2 Apr 1, 2015
@nicosomb nicosomb deleted the v2-rss branch April 1, 2015 19:09
@nicosomb nicosomb modified the milestones: 2.0, 2.0.0-alpha Aug 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants