Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Create objectType

Offen
#169 7 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
api

Rechercherichtung

Beginne mit der Durchsicht der verlinkten Get objectType API-Dokumentation und der vorhandenen objectType-REST-Operationen im Repository. Definiere die Erstellungsoperation und ihre Request-Payload anhand des Beispiels im Issue und überprüfe anschließend, dass fehlende Objekttypen für den beschriebenen Workflow zur Ontologie-Befüllung erstellt werden können.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

I can get a new object type via the REST API... but I can't create one.

Which means if I have a collection of object types to create at the start of an engagement, I'm going to have to manually add them. Obviously via REST I wouldn't expect to have the full flexibility of the manual wizard, but I would expect to be able to CRUD the basics at least

I would expect the potential request payload to be similar to the Get objectType with the exception of the RID's of all the elements.

Expected Payload

{
  "apiName": "employee",
  "description": "A full-time or part-time employee of our firm",
  "displayName": "Employee",
  "status": "ACTIVE",
  "primaryKey": "employeeId",
  "properties": {
    "employeeId": {
      "dataType": {
        "type": "integer"
      },
    },
    "fullName": {
      "dataType": {
        "type": "string"
      },
    },
    "office": {
      "description": "The unique ID of the employee's primary assigned office",
      "dataType": {
        "type": "string"
      },
    },
    "startDate": {
      "description": "The date the employee was hired (most recently, if they were re-hired)",
      "dataType": {
        "type": "date"
      },
    }
  },
}

As an example use case, this would allow me to populate an Ontology with a 1:1 mapping of a pre-existing model: by listing the current ontology objects and then creating the missing ones.

Vorherrschende Sprache
Python
Sterne
208
Forks
49
Ø Merge
15 Std. 8 Min.
Gemergte PRs (30 T.)
2

Entwicklungsumgebung

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus palantir/foundry-platform-python

Alle Issues in palantir/foundry-platform-python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.