Django: sync_couchdb overwrites library's views

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
databases

調査の方向性

まず、ライブラリモデルとアプリケーションモデルを使って ./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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

benoitc/couchdbkit のほかの issue

benoitc/couchdbkit の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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