Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

RSConnect: speed up pin_search by allowing using guid behind the scenes

オープン
#79 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
api, backend

調査の方向性

まず pin_search と RSConnect のユーザーおよびコンテンツの GUID ルックアップパスを追跡し、次にファイルがどのようにキャッシュされるかを調べます。提案されている rsc+guid URI 形式と、一覧にある API リクエストを動作の指針として使用してください。キャッシュされたファイルで GUID を使用でき、通常の pin_* 呼び出しがユーザー提供の GUID なしでも引き続き動作し、内部の fast path がカバーされれば完了です。

索引モデルが issue の本文から書いたものです。

説明

.compatibility .epic .ux be:rsc core:filesystem

Currently, python pins with RSConnect needs to look up the user and content guid for actions like

fs.info("michael.chow/mtcars")

however, looking up the user guid requires iterating through all users. This is an expensive operation that R pins does as little as possible by using the guids whenver possible (through a local cache file).

Let's support something like

# similar protocol format to sqlalchemy uris
# may need to use "rsc://guid+<user_guid>
fs.info("rsc+guid://<user_guid>")                  # GET v1/users/{guid}
fs.info("rsc+guid://<user_guid>/<content_name>")   # GET v1/content?name=<content_name>?user_guid=<user_guid>

fs.info("rsc+guid://content/<content_guid>")       # GET v1/content/<content_guid>

Note that we must meet these criteria...

  • Files are cached correctly (e.g. could use the guids for everything in the cache)
  • Users do not need to specify guid in pin_* methods
  • We could allow users to specify guid in pin_* methods if it's not a lot of work. Otherwise, could start by having pins use it as an internal fast path.
主要言語
Python
スター
59
フォーク
11
平均マージ
1時間 9分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rstudio/pins-python のほかの issue

rstudio/pins-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。