Deprecate the `ext_*` column

Aperta
#665 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python

Direzione di ricerca

Inizia dalle definizioni dello schema YAML e Pydantic e cerca nel repository gli usi e le dipendenze esistenti di ext_*. Esamina il contesto collegato, in particolare le issue #634, #639 e #602, prima di decidere la data di deprecazione. Il lavoro è completato quando lo schema contrassegna ext_* come deprecated e la documentazione identifica il suo sostituto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Type

Task

Scope

Multi-theme or Platform

Skillset

engineering

Description

The ext_* field predates the current extensions design. Investigate any existing uses of this field. Mark it deprecated as part of the v2.0.0 release, document what replaces it, find any remaining dependencies. Set a date to drop it.

This lives in the YAML and Pydantic versions of the schema

>>> print("payload keys :", sorted(gj["properties"]))
payload keys : ['class', 'ext_bar', 'ext_foo', 'height', 'is_underground', 'level', 'num_floors', 'num_floors_underground', 'sources', 'subtype', 'theme', 'type', 'version']

Done when: deprecation is in the schema and the replacement is documented

GitHub issues of yore for context:
  • #634 - @RoelBollens-TomTom defines a blocker to removing ext_*
  • #639
  • #602 - @vcschapp had wanted to drop support for ext_* from OvertureFeature. It is not supported in the Markdown and PySpark validation codegen so this seems like a good time to drop it before GA (public PyPI publishing) of the schema packages. DEFERRED because the ext_* stuff is being used in the reference counterexamples and I don't want to mess with that right now.
  • https://github.com/OvertureMaps/tf-data-platform/issues/4118 -- ext_* had been used internally for OSM processing. Check with @atiannicelli about any other internal uses
  • https://github.com/OvertureMaps/schema-wg/issues/400
    - Seth: "The meta-issue is that I believe that all models that compose an OvertureFeature subclass should behave as if @no_extra_fields were applied, even if it's not explicit, due to the constraints that most format serializations introduce (fixed set of columns, explicit struct members). If you need a dict, use a dict. Apply patterns if you need to, but don't make it a hybrid."
    - Vic: "I agree with this. I think today that is quasi-handled by the ext_* enabling code which already puts on "additionalProperties": false but allows through the narrow exception of ext_*. The ext_* exception is problematic, but when we remove it we should be left with all OvertureFeatures behaving as if @no_extra_fields was applied."
  • https://github.com/OvertureMaps/schema-wg/issues/359 - The original intention of the ext_* property: third party wants to be able to enrich Overture data with their own specific data.
Lingua principale
Python
Stelle
219
Fork
20
Merge medio
1g 21h
PR unite (30g)
37

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OvertureMaps/schema

Tutte le issue di OvertureMaps/schema

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.