Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request is a draft. We saw that there's a demand for the ability to, as admins, set default feeds for users. It seems to be valuable for the news app.
The goal is to present our vision and our ideas on how to implement it, in hopes of hearing your opinion, before we start to code.
🚀 The feature
This feature will allow admins to set default feeds for all users.
For now, as an admin, it's possible to add a feed for a user with a command line by using
./occ news:feed:add <user_id> <feed>.
However, the command line allows to add a feed for only one user. Also, it's more user friendly to have a interface to do this. Furthermore, this is a prety highly request demand, as seen on this discussion.The idea is to add a parameter that allows an administrator to define default feeds. These feeds will be added by default for all existing and new users on the server. This parameter will be modifiable on the settings page (
settings/admin/news
).👨💻 Implementation
This new parameter will be added to the application configuration. On the front-end, there will be a list where admins will view default feeds and be able to add new ones, by adding their RSS URLs, or delete them. Each user on the server having the news app will have them by default.
The array of RSS URLs will be stored in the
oc_appconfig
in a string in the JSON format.We have analyzed the code and here's a solution we would like to propose.
1️⃣ Adding the new parameter
oc_appconfig
)2️⃣ Adding and fetching defaults parameters for users
Hope this will catch your interest!
Team Forward,