MetaCell / MetaCell/interlex

add ontology needs to add a required field which is the iri of the new ontology

Open Beginner friendly
#137 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3
Forks
4
PR merge metrics
No merged PRs in 30d

Description

https://github.com/MetaCell/interlex/blob/54e35e4a728fb869f91a8efe85e62598805ea8d4/src/components/SingleOrganization/AddNewOntologyDialog.jsx#L35-L36

the first field in this form should be `Ontology uri` and it should display the `http://uri.interlex.org/{group}/ontologies/uris/` prefix as immutable context and the user typing adds after that.

currently posts to title + random suffix https://github.com/MetaCell/interlex/blob/54e35e4a728fb869f91a8efe85e62598805ea8d4/src/components/SingleOrganization/AddNewOntologyDialog.jsx#L75 so the new field would populate that value directly instead of need a mangle

for reference the api call is https://github.com/MetaCell/interlex/blob/54e35e4a728fb869f91a8efe85e62598805ea8d4/src/api/endpoints/apiService.ts#L154

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with src/components/SingleOrganization/AddNewOntologyDialog.jsx at the referenced form fields and submission logic, then inspect src/api/endpoints/apiService.ts around line 154. Confirm how the ontology IRI is sent, and make the form use the immutable group prefix plus the user-entered suffix as the submitted value instead of generating it from the title.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
api, frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.