geneontology / wc-gocam-viz

Web component to visualize GO-CAMs
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Purge code of references to barista and non-standard endpoints; standardize on api.geneontology.org #25

Closed kltm closed 8 months ago

kltm commented 9 months ago

Currently, there are references to internal interfaces to the code. I.e.: ./src/components/gocam-viz/gocam-viz.tsx

    apiUrl = "https://api.geneontology.xyz/gocam/";
    devBaristaUrl = 'http://barista-dev.berkeleybop.org/search/stored?id=';
    localDevBaristaUrl = 'http://localhost:3400/search/stored?id=';
    productionBaristaUrl = 'http://barista.berkeleybop.org/search/stored?id=';

    noctuaGraphURL = {
        prod: "http://noctua.geneontology.org/editor/graph/",
        dev: "http://noctua-dev.berkeleybop.org/editor/graph/",
        release: "http://noctua.geneontology.org/editor/graph/",
    };

    /**
     * Used to connect to a barista instance. By default, always access production (prod) server
     * prod = http://barista.berkeleybop.org
     * dev  = http://barista-dev.berkeleybop.org
     */

The only (default) public endpoint should be api.geneontology.org. Other non-standard endpoints should be available as a runtime argument to override the default (and allowing internal use).

kltm commented 9 months ago

@pkalita-lbl @tmushayahama I don't actually know if this matters or not with the other things being cleaned up for https://github.com/orgs/geneontology/projects/140/views/1 (e.g. #21 and #19), but I wanted to mark it out if it is not otherwise covered. Feel free to close if this is redundant.