Skip to content

feat(project): add methods for plugins to retrieve data about project

mateusz-winiarczyk requested to merge MIN-220-project-data into development

Get Project ID: To get project ID, plugins can use the getProjectId method defined in window.minerva.project.data object.

Example usage of getProjectId method:
window.minerva.project.data.getProjectId();

Get Project Name: To get project name, plugins can use the getName method defined in window.minerva.project.data object.

Example usage of getName method:
window.minerva.project.data.getName();

Get Project Version: To get project version, plugins can use the getVersion method defined in window.minerva.project.data object.

Example usage of getVersion method:
window.minerva.project.data.getVersion();

Get Disease: To get disease identifier associated with the project, plugins can use the getDisease method defined in window.minerva.project.data object.

Example usage of getDisease method:
window.minerva.project.data.getDisease();

Get Organism: To get organism identifier associated with the project, plugins can use the getOrganism method defined in window.minerva.project.data object.

Example usage of getOrganism method:
window.minerva.project.data.getOrganism();

image

Closes MIN-220

Merge request reports