Django: sync_couchdb overwrites library's views
まだ誰も着手していません。
評価
調査の方向性
まず、ライブラリモデルとアプリケーションモデルを使って ./manage.py sync_couchdb で報告された動作を再現し、_design フォルダーと sync_couchdb エントリーポイントを調べます。django_couchdb_utils.auth と mygpo.users に対して出力されるデザインドキュメント名を比較します。ライブラリとアプリケーションのビューが、一方が他方を上書きすることなくアップロードされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I have separated some part of my Django application into a library (https://github.com/stefankoegl/django-couchdb-utils). The library provides a class User (subclass of Document) which I subclass in my application with a class of the same name.
Both apps (from the library and from the actual application) have views in the _design subfolder. When I try to upload my views to Couch, I get the following output
./manage.py sync_couchdb
sync `django_couchdb_utils.auth` in CouchDB
sync `mygpo.users` in CouchDB
sync `mygpo.users` in CouchDB
# others omitted
The first line is the design-doc for the library, and the next two lines are of my application. It seems that the design-doc is uploaded twice; first using the correct name, and second overwriting the design-doc of the library.
If I do not derive my class from my library's class everything works fine. The fact that I use the same name for the super and subclass does not seem to matter.
Can I fix my projects somehow, or will it be necessary to change something in couchdbkit?
- 主要言語
- Python
- スター
- 261
- フォーク
- 90
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
benoitc/couchdbkit のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
benoitc/couchdbkit#181 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
benoitc/couchdbkit#196 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
benoitc/couchdbkit#194 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
benoitc/couchdbkit#193 · コメント 2 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
benoitc/couchdbkit#192 ·
benoitc/couchdbkit の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
openvinotoolkit/openvino_notebooks#3858 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
hummingbot/hummingbot-api#256 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
-
area:other help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
WingedGuardian/GENesis-AGI#4734 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
peach-mitao/peach#693 ·
メンテナーはふだん 1 日以内に返信