npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@openimis/fe-opensearch_reports

v1.2.0

Published

openIMIS Frontend OpenSearch reports module

Downloads

107

Readme

openIMIS Frontend OpenSearch reports module

This repository holds the files of the openIMIS Frontend OpenSearch Reports module. It is dedicated to be bootstrap development of openimis-fe_js modules, providing an empty (yet deployable) module.

Please refer to openimis-fe_js to see how to build and and deploy (in developement or server mode).

The module is built with rollup. In development mode, you can use npm link and npm start to continuously scan for changes and automatically update your development server.

License: AGPL v3 Total alerts

OpenSearch Dashboards setup

How to run on dockerized instance (db, backend, frontend of openIMIS):

  • Add the following value to the environment file in openimis-dist_dkr OPENSEARCH_BASIC_TOKEN (based on admin and password credentials to OpenSearch).
  • Use the following environment variables in the .env file in openimis-fe_js:
    • ENV OPENSEARCH_PROXY_ROOT="opensearch"
  • Run the backend and frontend services with opensearch and opensearch-dashboards services.

How to Log in as an Admin to OpenSearch?

  • Enter the <host-url>/opensearch path in your web browser's URL bar, where host-url corresponds to the host where your server is deployed.
  • Provide your admin credentials.
  • You can now make modifications to dashboards and visualizations.

Main Menu Contributions

Open Search Reports (openSearchReports.openSearch key)

  • Open Search Reports (openSearchReports.openSearch key)

Other Contributions

core.Router: registering openSearchReports, route in openIMIS client-side router

Available Contribution Points

Dispatched Redux Actions

Other Modules Listened Redux Actions

state.core.user, to access user info (rights,...)

Other Modules Redux State Bindings

Configurations Options

Updating Dashboard Path in OpenSearch

Steps:

  1. Navigate to Dashboards -> Configure Dashboards.

  2. In the displayed table, find the list of available dashboards.

  3. Click on the 'Edit' option for the specific dashboard you wish to modify.

  4. Edit Path:

    • Go to the OpenSearch dashboard you want to link, e.g., Example Dashboard Link.
    • Click on the 'Share' button at the top-right menu and select the 'short' link option.
    • In the small modal, choose the 'short' link option and click 'Copy Link'.
    • Paste the link obtained from the 'Share' button into a text editor or directly into the 'Edit Link' modal.
  5. From the link obtained in the previous step, e.g. 'https://coremis.s1.openimis.org/opensearch/goto/6084fcd3b4d8c75cabd17a03a62d6bcb?security_tenant=private', extract the path from 'goto', for example, 'goto/6084fcd3b4d8c75cabd17a03a62d6bcb?security_tenant=private'.

  6. Edit the path in the modal form and click 'Save'.

  7. The table is now updated. Navigate to, for example, Beneficiary Reports, to view the new dashboard in the respective report page.