Feature to Enable/Disable, Add, Edit and Delete RSS Filters
まだ誰も着手していません。
- #134 @buildwithmalik による — マージされずにクローズ
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
調査の方向性
まず api.rssPluginUrl を使って RSSFilter モデルと API のエントリーポイントを特定し、次に提案されている setRSSFilter 関数とその form-encoded リクエストを確認します。アプリケーションで既存のすべての RSS フィルターを保持したまま、RSS フィルターの有効化、無効化、追加、編集、削除ができれば完了です。完全に動作する機能については issue で PR #134 が参照されています。
索引モデルが issue の本文から書いたものです。
説明
Current State
In the current state of the application, when the RSS Filter is either enabled or disabled, a message prompting the user to use the ruTorrent web interface to make the changes pops up as shown below.

Furthermore, the option of adding, deleting or editing (existing) RSS Filters is not present.
Proposed Changes
- I would like to implement the feature of enabling and disabling the RSS Filters from the application itself.
- I would also like to implement an RSS Filter Edit Screen whose purpose will be to take user-input related to the RSS Filter (name, pattern, labels etc. )
Implementation
Enabling and Disabling RSS Filters
I will be using the RSS Plugin of the ruTorrent Web Interface to implement this feature. Implementing this feature would require changing the enabled integer in the RSS Filter object and making a POST request to the RSS plugin with the JSON form of the RSS Filter object (more on this below).
Add, Edit, Delete RSS Filters
Again the RSS Plugin will be used. A small catch here is, anytime any change is made to any of the filters, ALL (existing) filters have to be sent via the POST network call to the Plugin. If we attempt to send only the filter that has been changed, all other filters are deleted.
Now the issue with this approach is, a JSON object cannot contain two same keys for obvious reasons and the plugin was not accepting different JSON objects for different filters.
So we will use Content-Type: application/x-www-form-urlencoded to send the data after encoding all the existing RSS Filters in the application.
The one function that will implement both network implementations is given below.
/// Sets details of RSS Filters
static setRSSFilter(Api api, List<RSSFilter> filters) async {
// Set Headers
Map<String, String> headers = {
"Content-Type": "application/x-www-form-urlencoded"
};
headers.addAll(api.getAuthHeader());
// Set mode of Query
String queryString = "mode=setfilters&";
// Encode and add all Filters to the query
for (RSSFilter filter in filters ?? []) {
queryString += Uri(queryParameters: filter.toJson()).query + "&";
}
// Execute the Network Call
await api.ioClient
.post(Uri.parse(api.rssPluginUrl), headers: headers, body: queryString);
}
The video of the complete working of the proposed feature will be added in the feature PR.
PR #134
- 主要言語
- Dart
- スター
- 131
- フォーク
- 113
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CCExtractor/rutorrent-flutter のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
CCExtractor/rutorrent-flutter#195 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
CCExtractor/rutorrent-flutter#189 ·
-
Issues found when analyzed the project's dart code対応中かも @ObaidAbdullah16 が 232 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
CCExtractor/rutorrent-flutter#185 · コメント 7 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
CCExtractor/rutorrent-flutter#184 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
CCExtractor/rutorrent-flutter#179 · コメント 1 件 ·
CCExtractor/rutorrent-flutter の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 60/100
hiddify/hiddify-app#2668 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
toyota-connected/emb_cli#358 ·
メンテナーはふだん 1 日以内に返信
-
area: import beta cluster: callers box improvements severity: minor status: confirmed type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ibanner56/CallersCompendium#2366 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ccch1mneyyy/dsh-Go#1777 ·
メンテナーはふだん 1 日以内に返信
-
area: mobile documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
CommandLineCoding/Elephant#383 ·
メンテナーはふだん 1 日以内に返信