New API to detect fid change on rebase

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
46/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python

調査の方向性

The issue describes exposing feature ID remapping from the rebase API and points to geodiff logs showing the mapping, but names no files or tests. First read the rebase API implementation and locate where the mapping is produced. Decide how the API should return those remapped IDs, then add coverage showing a rebase reports the mapping; the issue gives no test path.

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

説明

enhancement

Problem:
If an application is holding a reference to Feature and a geodiff rebase happens on the background, currently there is no mechanism to detect if the ID of the feature has been changed. This stale data can lead to deletion/modification of wrong feature. https://github.com/MerginMaps/mobile/issues/4693

Workaround:
It's possible to create changeset before and after rebase. Comparing these changesets should yield the remapping, however we need to make some assumptions when doing it this way (e.g. geodiff creates the changeset in the same order of features).

Solution:
Either create a new API, which would do a dry-run rebase and return the list of remapped ID's or add another parameter to rebase API, which would be populated with the remapped ID's. Geodiff should already have this information available (see logs below), so it's just the matter of exposing it to consumers.

"2026-10-31T09:58:39.875Z GEODIFF debug: rebase info (base2their / old)
 TABLE survey
  inserted 12,
  deleted  --none --
  updated  --none --"
"2026-10-31T09:58:39.876Z GEODIFF debug: mapping
  survey
  12->13,"
"2026-10-31T09:58:39.877Z GEODIFF debug: No conflicts present"
主要言語
Python
スター
185
フォーク
22
平均マージ
1時間 31分
マージ済み PR(30日)
2

環境構築

はじめの一歩

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

MerginMaps/geodiff のほかの issue

MerginMaps/geodiff の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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