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

Nobody has claimed this yet.

Assessment

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

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.

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

Dominant language
JavaScript
Stars
3
Forks
4
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MetaCell/interlex

All issues in MetaCell/interlex

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.