All object collections should support .new() and .add() methods

Aperta
#10 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
postgresql, python
Ambito
databases

Direzione di ricerca

La issue non indica file né test. Inizia individuando la raccolta di oggetti e le classi degli oggetti figli, quindi segui il funzionamento attuale dell’assegnazione del parent e di .create(); il lavoro è completo quando ogni raccolta supporta il comportamento specificato di .new() e .add(), inclusa la convalida tra parent e gli aggiornamenti della documentazione.

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

Descrizione

core enhancement

User story

As a DBA, I want to be able to control the creation of the objects on the Postgresql server using Dynamic Objects and Collections so that my productivity increases.

Acceptance Criteria

  • .new() method should be added to object collections
    • .new() should create an ephemeral object with default settings, only requiring a name as a parameter.
    • The object will remain ephemeral until either .create() is called, or it's added to the parent collection using the .add() method.
    • Documentation should only refer to the child object class instead of listing all possible arguments.
  • .add() method should be added to object collections. It should:
    • check if that object already belongs to a different collection (and fail if the object belongs to a different parent)
    • add the said object to the collection
    • assign parent
    • call .create() of that object
  • These methods should either have an abstract implementation on the parent classes and be enforced on all child classes, or they should be generic enough to work on every child class as is. It is also possible to still ask for implementation on the child classes, but use super() for the common bits.
Lingua principale
Python
Stelle
1
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 dataplat/pgmob

Tutte le issue di dataplat/pgmob

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.