Edit this page | Blame

Edit RIF Metadata in GN2

Tags

  • assigned: bonfacem, jnduli
  • priority: high
  • status: closed

Tasks

Viewing

  • [X] API: Get WIKI/RIF by symbol from rdf.
GET /wiki/<symbol>
[{
    "symbol": "XXXX",
    "reason": "XXXX",
    "species": "XXXX",
    "pubmed_ids": ["XXXX", "XXXX"], // empty array when non-existent
    "web_url": "XXXX" // Optional
    "comment": "XXXX",
    "email": "XXXX",
    "categories": ["XXXX", "XXXX"], // Enumeration
    "version": "XXXX",
    "initial": "XXXX", // Optional user or project code or your initials.
}]
  • [X] UI: Modify traits page to have "GN2 (GeneWiki)"
  • [X] UI: Integrate with API

Editing

  • [X] API: Edit comment by id in mysql/rdf: modifies GeneRIF and GeneRIFXRef tables.
  • [X] API: Modify edit comments by id to include RDF changes.
POST /wiki/<comment-id>/edit
{
    "symbol": "XXXX",
    "reason": "XXXX",
    "species": "XXXX",
    "pubmed_ids": ["XXXX", "XXXX"], // Optional
    "web_url": "XXXX" // Optional
    "comment": "XXXX",
    "email": "XXXX",
    "categories": ["XXXX", "XXXX"], // Enumeration
    "initial": "XXXX", // Optional user or project code or your initials.
}
  • [X] UI: Add buttons that edit various relevant sections.
  • [X] UI: Edit page needs to fetch categories from GeneCategory table. When comment write fails, alert with error. When comment write success, update the comment on the page, and alert with success.
  • [X] API: Modify edit comments by id to include RDF changes.
  • [X] GN auth integration

History

  • [X] API: End-point to fetch all the historical data
  • [X] UI: Page that contains history for how comments changes.
GET /wiki/<comment-id>/history
[{
    "symbol": "XXXX",
    "reason": "XXXX",
    "species": "XXXX",
    "pubmed_ids": ["XXXX", "XXXX"], // Optional
    "web_url": "XXXX" // Optional
    "comment": "XXXX",
    "email": "XXXX",
    "categories": ["XXXX", "XXXX"], // Enumeration
    "version": "XXXX",
    "initial": "XXXX", // Optional user or project code or your initials.
}]

Misc ToDos:

  • [X] Review performance of query used in 72d9a24e8e65 [Genenetwork3]

Ops

  • [X] RDF synchronization with SQL (gn-machines).
  • [X] Update RDF in tux02.
  • [X] UI: Add "edit" button after testing.

Resolution

(made with skribilo)