diff --git a/.env b/.env index 975b9435..c53ff8f4 100644 --- a/.env +++ b/.env @@ -1,13 +1,13 @@ -OL_REFERENCE_UI_VERSION=5.1.8-SNAPSHOT +OL_REFERENCE_UI_VERSION=5.2.0-SNAPSHOT -OL_REQUISITION_VERSION=8.3.0-SNAPSHOT -OL_REFERENCEDATA_VERSION=15.2.0-SNAPSHOT -OL_AUTH_VERSION=4.3.1-SNAPSHOT -OL_NOTIFICATION_VERSION=4.3.1-SNAPSHOT -OL_FULFILLMENT_VERSION=8.2.0-SNAPSHOT +OL_REQUISITION_VERSION=8.3.2-SNAPSHOT +OL_REFERENCEDATA_VERSION=15.2.1-SNAPSHOT +OL_AUTH_VERSION=4.3.2-SNAPSHOT +OL_NOTIFICATION_VERSION=4.3.2-SNAPSHOT +OL_FULFILLMENT_VERSION=9.0.0-SNAPSHOT OL_CCE_VERSION=1.3.1-SNAPSHOT -OL_STOCKMANAGEMENT_VERSION=5.1.0-SNAPSHOT -OL_REPORT_VERSION=1.2.1-SNAPSHOT +OL_STOCKMANAGEMENT_VERSION=5.1.4-SNAPSHOT +OL_REPORT_VERSION=1.2.2-SNAPSHOT OL_HAPIFHIR_VERSION=2.0.1-SNAPSHOT OL_DIAGNOSTICS_VERSION=1.1.1-SNAPSHOT diff --git a/config/Dockerfile b/config/Dockerfile index 4475039f..4f93dd9b 100644 --- a/config/Dockerfile +++ b/config/Dockerfile @@ -1,4 +1,4 @@ -FROM gliderlabs/alpine:3.4 +FROM alpine:3.11 COPY log/logback.xml /config/log/logback.xml diff --git a/docker-compose.openlmis-stockmanagement-validator-extension.yml b/docker-compose.openlmis-stockmanagement-validator-extension.yml new file mode 100644 index 00000000..246ed8de --- /dev/null +++ b/docker-compose.openlmis-stockmanagement-validator-extension.yml @@ -0,0 +1,183 @@ +version: "3.3" +services: + + consul: + command: -server -bootstrap + image: gliderlabs/consul-server + ports: + - "8300" + - "8400" + - "8500:8500" + - "53" + + nginx: + image: openlmis/nginx:${OL_NGINX_VERSION} + ports: + - "${OL_HTTP_PORT:-80}:80" + env_file: settings.env + environment: + NGINX_LOG_DIR: '/var/log/nginx/log' + volumes: + - 'nginx-log:/var/log/nginx/log' + - 'consul-template-log:/var/log/consul-template' + depends_on: [consul] + + reference-ui: + image: openlmis/reference-ui:${OL_REFERENCE_UI_VERSION} + env_file: settings.env + depends_on: [consul] + + requisition: + image: openlmis/requisition:${OL_REQUISITION_VERSION} + env_file: settings.env + environment: + JAVA_OPTS: '-server -Xmx1024m -Dlogging.config=/config/log/logback.xml' + volumes: + - 'service-config:/config' + depends_on: [log, db] + command: ["/wait-for-postgres.sh", "/run.sh"] + + referencedata: + image: openlmis/referencedata:${OL_REFERENCEDATA_VERSION} + env_file: settings.env + environment: + JAVA_OPTS: '-server -Xmx1024m -Dlogging.config=/config/log/logback.xml' + volumes: + - 'service-config:/config' + depends_on: [log, db] + command: ["/wait-for-postgres.sh", "/run.sh"] + + auth: + image: openlmis/auth:${OL_AUTH_VERSION} + env_file: settings.env + environment: + JAVA_OPTS: '-server -Xmx512m -Dlogging.config=/config/log/logback.xml' + volumes: + - 'service-config:/config' + depends_on: [log, db] + command: ["/wait-for-postgres.sh", "/run.sh"] + + notification: + image: openlmis/notification:${OL_NOTIFICATION_VERSION} + env_file: settings.env + environment: + JAVA_OPTS: '-server -Xmx512m -Dlogging.config=/config/log/logback.xml' + volumes: + - 'service-config:/config' + depends_on: [log, db] + command: ["/wait-for-postgres.sh", "/run.sh"] + + fulfillment: + image: openlmis/fulfillment:${OL_FULFILLMENT_VERSION} + env_file: settings.env + environment: + JAVA_OPTS: '-server -Xmx512m -Dlogging.config=/config/log/logback.xml' + volumes: + - 'service-config:/config' + depends_on: [log, db] + command: ["/wait-for-postgres.sh", "/run.sh"] + + cce: + image: openlmis/cce:${OL_CCE_VERSION} + env_file: settings.env + environment: + JAVA_OPTS: '-server -Xmx512m -Dlogging.config=/config/log/logback.xml' + volumes: + - 'service-config:/config' + depends_on: [log, db] + command: ["/wait-for-postgres.sh", "/run.sh"] + + example-extensions: + image: openlmis/openlmis-example-extensions:0.0.1-SNAPSHOT + volumes: + - 'example-extensions:/extensions' + + stockmanagement: + image: openlmis/stockmanagement:${OL_STOCKMANAGEMENT_VERSION} + env_file: settings.env + environment: + JAVA_OPTS: '-server -Xmx512m -Dlogging.config=/config/log/logback.xml' + volumes: + - 'example-extensions:/extensions' + - 'service-config:/config' + depends_on: [log, db, example-extensions] + command: ["/wait-for-postgres.sh", "/run.sh"] + + report: + image: openlmis/report:${OL_REPORT_VERSION} + env_file: settings.env + environment: + JAVA_OPTS: '-server -Xmx512m -Dlogging.config=/config/log/logback.xml' + volumes: + - 'service-config:/config' + depends_on: [log, db] + command: ["/wait-for-postgres.sh", "/run.sh"] + + hapifhir: + restart: always + image: openlmis/hapifhir:${OL_HAPIFHIR_VERSION} + env_file: settings.env + environment: + JAVA_OPTS: '-server -Xmx512m -Dlogging.config=/config/log/logback.xml' + spring_profiles_active: ${spring_profiles_active} + volumes: + - 'service-config:/config' + depends_on: [log, db] + command: ["/wait-for-postgres.sh", "/run.sh"] + + diagnostics: + image: openlmis/diagnostics:${OL_DIAGNOSTICS_VERSION} + env_file: settings.env + environment: + JAVA_OPTS: '-server -Xmx512m -Dlogging.config=/config/log/logback.xml' + spring_profiles_active: ${spring_profiles_active} + volumes: + - 'service-config:/config' + depends_on: [log] + + db: + image: openlmis/postgres:${OL_POSTGRES_VERSION} + env_file: settings.env + networks: + default: + aliases: + - olmis-db + depends_on: [consul] + + log: + image: openlmis/rsyslog:${OL_RSYSLOG_VERSION} + volumes: + - 'syslog:/var/log' + depends_on: + - service-configuration + - consul + + service-configuration: + build: + context: ./config + volumes: + - service-config:/config + + ftp: + image: hauptmedia/proftpd + ports: + - "${OL_FTP_PORT_21:-21}:21" + - "${OL_FTP_PORT_20:-20}:20" + env_file: settings.env + depends_on: [consul] + + redis: + image: redis:3.2.12 + depends_on: [consul] + +volumes: + syslog: + external: false + nginx-log: + external: false + consul-template-log: + external: false + service-config: + external: false + example-extensions: + external: false diff --git a/docs/source/components/index.rst b/docs/source/components/index.rst index 364646ec..4bc6092c 100644 --- a/docs/source/components/index.rst +++ b/docs/source/components/index.rst @@ -253,7 +253,7 @@ Druid Superset -------- -`Superset `_ is the visualization layer of the reporting stack and is used to create self-service dashboards on the data in Druid. It’s very closely integrated with Druid, and will detect the schema for each data source and the data therein. “Dimensions” are akin to columns within a relational database, and “metrics” are calculations performed on those dimensions - e.g. count distinct, sum, min, max. Typically “metrics” are written off of numeric dimensions, with the exception of count distinct. Superset is the UI in which we write JSON queries for Druid to calculate metrics that are more sophisticated than the basic types outlined above. +`Superset `_ is the visualization layer of the reporting stack and is used to create self-service dashboards on the data in Druid. It’s very closely integrated with Druid, and will detect the schema for each data source and the data therein. “Dimensions” are akin to columns within a relational database, and “metrics” are calculations performed on those dimensions - e.g. count distinct, sum, min, max. Typically “metrics” are written off of numeric dimensions, with the exception of count distinct. Superset is the UI in which we write JSON queries for Druid to calculate metrics that are more sophisticated than the basic types outlined above. Slices are individual visualizations and can be listed by clicking on the Charts tab along the top. Each slice has a visualization type, a data source, and one or more metrics and dimensions that you want to display. Superset supports the development of custom visualization types if it’s not included in the default list provided by Apache. diff --git a/docs/source/contribute/contributionGuide.md b/docs/source/contribute/contributionGuide.md index 4f6fb96b..51957d74 100644 --- a/docs/source/contribute/contributionGuide.md +++ b/docs/source/contribute/contributionGuide.md @@ -143,12 +143,12 @@ A prime focus of version 3 is enabling extensions and customizations to happen w There are multiple ways OpenLMIS can be extended, and lots of documentation and starter code is available: * The Reference UI supports extension by adding CSS, overriding HTML layouts, adding new screens, or replacing -existing screens in the UI application. See the [UI Extension Guide](https://github.com/OpenLMIS/openlmis-ui-components/blob/master/docs/extension_guide.md). +existing screens in the UI application. See the [UI Extension Guide](https://github.com/OpenLMIS/openlmis-ui-components/blob/master/docs/extension_guide.md#ui-extension-guide). * The Reference Distribution is a collection of collaborative **Services**, Services may be added in or swapped out to create custom distributions. * The Services can be extended using **extension points** in the Java code. The core team is eager to add more extension points as they are requested by implementors. For documentation about this extension mechanism, see -these 3 READMEs: [openlmis-example-extensions README](https://github.com/OpenLMIS/openlmis-example-extensions/blob/master/README.md), [openlmis-example-extension module README](https://github.com/OpenLMIS/openlmis-example-extension/blob/master/README.md), and [openlmis-example service README](https://github.com/OpenLMIS/openlmis-example/blob/master/README.md#extension-points-and-extension-modules). +these 3 READMEs: [openlmis-example-extensions README](https://github.com/OpenLMIS/openlmis-example-extensions/blob/master/README.md#openlmis-example-extensions), [openlmis-stockmanagement-validator-extension module README](https://github.com/OpenLMIS/openlmis-stockmanagement-validator-extension/blob/master/README.md#openlmis-stock-management-validator-extension-module), and [openlmis-example service README](https://github.com/OpenLMIS/openlmis-example/blob/master/README.md#openlmis-example-service). * Extra Data allows for clients to add additional data to RESTful resources so that the internal storage mechanism inside a Service doesn't need to be changed. * Some features may require both API and UI extensions/customizations. The Technical Committee worked on a [Requisition Splitting Extension Scenario](https://openlmis.atlassian.net/wiki/display/OP/Requisition+Splitting+-+Extension+Scenario+Analysis) diff --git a/docs/source/conventions/versioningReleasing.md b/docs/source/conventions/versioningReleasing.md index e4029b18..b866a5de 100644 --- a/docs/source/conventions/versioningReleasing.md +++ b/docs/source/conventions/versioningReleasing.md @@ -301,6 +301,10 @@ codebase is working towards): - (If your component, such as the openlmis-service-util library, publishes to Maven, then other steps will be needed here.) +**Note:** usually during a release many docker images are built in a short time. It may happen that +the CI build process fails because of a docker pull rate limit which is 250 per 6 hours. It is a +limitation of a free version of a dockerhub account. + ### Patch Releasing a Component 1. Create a hotfix branch that includes 'rel-' prefix and the patch version, e.g. 'rel-10.0.1' diff --git a/docs/source/releases/UI-Performance-3.10.png b/docs/source/releases/UI-Performance-3.10.png new file mode 100644 index 00000000..99839466 Binary files /dev/null and b/docs/source/releases/UI-Performance-3.10.png differ diff --git a/docs/source/releases/index.rst b/docs/source/releases/index.rst index 3066127c..5955ec04 100644 --- a/docs/source/releases/index.rst +++ b/docs/source/releases/index.rst @@ -7,6 +7,7 @@ To download a release, please visit `GitHub `_ are +encouraged to adopt it. + +Release Notes +============= +The OpenLMIS Community is excited to announce the **3.10.0 release** of OpenLMIS! It is another major milestone in the version 3 `re-architecture `_ that allows more functionality to be shared among the community of OpenLMIS implementers. + +For a full list of features and bug-fixes since 3.10.0, see `OpenLMIS 3.10.0 Jira tickets +`_. + +For information about future planned releases, see the `Living Product Roadmap +`_. Pull requests and +`contributions `_ are welcome. + +Compatibility +------------- + +Unless noted here, all other changes to OpenLMIS 3.x are backwards-compatible. All changes to data +or schemas include automated migrations from previous versions back to version 3.0.1. All new or +altered functionality is listed in the sections below for New Features and Changes to Existing +Functionality. + +Upgrading from Older Versions +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +If you are upgrading to OpenLMIS 3.10.0 from OpenLMIS 3.0.x or 3.1.x (without first upgrading to +3.2.x), please review the `3.2.0 +Release Notes `_ for +important compatibility information about a required PostgreSQL extension and data migrations. + +For information about upgrade paths from OpenLMIS 1 and 2 to version 3, see the `3.0.0 Release +Notes `_. + +Download or View on GitHub +-------------------------- + +`OpenLMIS Reference Distribution 3.10.0 +`_ + +Known Bugs +========== + +Bug reports are collected in Jira for troubleshooting, analysis and resolution on an ongoing basis. See `OpenLMIS 3.10.0 +Bugs `_ for the current list of known bugs. + +To report a bug, see `Reporting Bugs +`_. + +New Features +============ +The OpenLMIS community focused on the following work in version 3.10.0: + +- **Stock Management - Offline Functionality** The Stock Management service has been updated to support limited offline functionality. This offline functionality is currently limited to the Physical Inventory page and adds the ability to make edits and save the changes locally while offline. Future releases will extend this offline functionality to the other areas of Stock Management. + +- **Reporting Stack - Deployment and Configuration Improvements** As part of an ongoing effort to improve and streamline the OpenLMIS Reporting system, we have made significant changes to bring the deployment and configuration tasks in line with the other OpenLMIS services. This work is ongoing and we welcome any feedback about future areas to improve. + +Reference the `3.10 epics `_ for more details. + +Changes to Existing Functionality +================================= + +See `all 3.10 issues tagged 'UIChange' in Jira `_. + +API Changes +=========== + +API changes can be found in each service CHANGELOG.md file, found in the root directory of the service repository. + +Performance +======================== + +As expected, the performance of version 3.10.0 is similar to version 3.9.0. Performance remains a high priority for the OpenLMIS community and we will be revisiting the overall performance picture in our next release, version 3.11. + +OpenLMIS conducted manual performance tests of the same user workflows with the same test data we used in testing v3.2.1 to establish that last-mile performance characteristics have been retained at a minimum. For details on the test results and process, please see `this wiki page `_. + +The following chart displays the UI loading times in seconds for 3.7, 3.8, 3.9, and 3.10 using the same test data. + +.. image:: UI-Performance-3.10.png + :alt: UI Load Times for 3.7 through 3.10 + +Test Coverage +============= + +OpenLMIS 3.10.0 was tested using the established OpenLMIS Release Candidate process. As part of this process, full manual test cycles were executed for each release candidate published. Any critical or blocker bugs found during the release candidate were resolved in a bug fix cycle with a full manual test cycle executed before releasing the final version 3.10.0. Manual tests were conducted using a set of 99 Zephyr tests tracked in Jira and 7 manual tests for reporting. For more details about test executions and bugs found for this release please see `the 3.10 QA Release and Bug Triage wiki page `_. + +All Changes by Component +======================== + +Version 3.10.0 of the Reference Distribution contains updated versions of the components listed +below. The Reference Distribution bundles these component together using Docker to create a complete +OpenLMIS instance. Each component has its own own public GitHub repository (source code) and +DockerHub repository (release image). The Reference Distribution and components are versioned +independently; for details see `Versioning and Releasing +`_. + +Auth Service 4.3.1 +------------------ + +`Auth CHANGELOG `_ + +CCE Service 1.3.0 +----------------- + +`CCE CHANGELOG `_ + +Fulfillment Service 8.2.0 +------------------------- + +`Fulfillment CHANGELOG `_ + +Notification Service 4.3.1 +-------------------------- + +`Notification CHANGELOG `_ + +Reference Data Service 15.2.0 +----------------------------- + +`ReferenceData CHANGELOG `_ + +Report Service 1.2.1 +-------------------- + +This service is intended to provide reporting functionality for other components to use. Built-in +reports in OpenLMIS 3.4.0 are still powered by their own services. In future releases, they may be +migrated to a new version of this centralized report service. + +**Warning**: Developers should take note that the design of this service will be changing with +future releases. Developers and implementers are discouraged from using this 1.2.x version to build +additional reports. + +`Report CHANGELOG `_ + +Requisition Service 8.3.1 +------------------------- + +`Requisition CHANGELOG `_ + +Stock Management 5.1.2 +---------------------- + +`Stock Management CHANGELOG `_ + +Reference UI 5.1.9 +------------------ + +`The Reference UI `_ +is the web-based user interface for the OpenLMIS Reference Distribution. This user interface is +a single page web application that is optimized for offline and low-bandwidth environments. +The Reference UI is compiled together from module UI modules using Docker compose along with the +OpenLMIS dev-ui. UI modules included in the Reference UI are: + +Reference Data-UI 5.6.4 +~~~~~~~~~~~~~~~~~~~~~~~ + +`ReferenceData-UI CHANGELOG `_ + +Auth-UI 6.2.5 +~~~~~~~~~~~~~ + +`Auth-UI CHANGELOG `_ + +CCE-UI 1.0.8 +~~~~~~~~~~~~ + +`CCE-UI CHANGELOG `_ + +Fulfillment-UI 6.0.8 +~~~~~~~~~~~~~~~~~~~~ + +`Fulfillment-UI CHANGELOG `_ + +Report-UI 5.2.5 +~~~~~~~~~~~~~~~ + +`Report-UI CHANGELOG `_ + +Requisition-UI 7.0.4 +~~~~~~~~~~~~~~~~~~~~ + +`Requisition-UI CHANGELOG `_ + +Stock Management-UI 2.0.7 +~~~~~~~~~~~~~~~~~~~~~~~~~ + +`Stock Management-UI CHANGELOG `_ + +UI-Components 7.2.4 +~~~~~~~~~~~~~~~~~~~ + +`UI-Components CHANGELOG `_ + +UI-Layout 5.1.8 +~~~~~~~~~~~~~~~ + +`UI-Layout CHANGELOG `_ + +Dev UI 9.0.1 +~~~~~~~~~~~~ + +The `Dev-UI CHANGLOG `_ + +Components with No Changes +========================== + +The components that have not changed are: + +- `Service Util `_ +- `Logging Service `_ +- Consul-friendly distribution of `nginx `_ +- Docker `Postgres 9.6-postgis image `_ +- Docker `scalyr image `_ + +Contributions +============= + +Many organizations and individuals around the world have contributed to OpenLMIS version 3 by +serving on our committees (Governance, Product and Technical), requesting improvements, suggesting +features and writing code and documentation. Please visit our GitHub repos to see the list of +individual contributors on the OpenLMIS codebase. If anyone who contributed in GitHub is missing, +please contact the Community Manager. + +Thanks to the Malawi implementation team who has continued to contribute a number of changes +that have global shared benefit. + +Further Resources +================= + +Please see the Implementer Toolkit on the `OpenLMIS website `_ to learn more about best practicies in implementing OpenLMIS. Also, learn more about the `OpenLMIS Community `_ and how to get involved! diff --git a/reporting/config/Dockerfile b/reporting/config/Dockerfile index 91aa5a48..da230b85 100644 --- a/reporting/config/Dockerfile +++ b/reporting/config/Dockerfile @@ -1,4 +1,4 @@ -FROM gliderlabs/alpine:3.4 +FROM alpine:3.11 COPY ./services /config COPY ./init.sh /init.sh diff --git a/reporting/config/services/superset/dashboards/openlmis_uat_dashboards.json b/reporting/config/services/superset/dashboards/openlmis_uat_dashboards.json index 8077fac7..ddb55a49 100644 --- a/reporting/config/services/superset/dashboards/openlmis_uat_dashboards.json +++ b/reporting/config/services/superset/dashboards/openlmis_uat_dashboards.json @@ -2,108 +2,42 @@ "dashboards": [ { "__Dashboard__": { - "json_metadata": "{\"filter_immune_slices\": [], \"timed_refresh_immune_slices\": [], \"filter_immune_slice_fields\": {}, \"expanded_slices\": {}, \"default_filters\": \"{}\", \"remote_id\": 12}", + "slug": "administrative", + "css": "", + "position_json": "{\"CHART-EVVSjHFIHN\": {\"children\": [], \"id\": \"CHART-EVVSjHFIHN\", \"meta\": {\"chartId\": 1, \"height\": 89, \"sliceName\": \"Facility List\", \"width\": 12}, \"type\": \"CHART\"}, \"DASHBOARD_VERSION_KEY\": \"v2\", \"GRID_ID\": {\"children\": [\"ROW-cQ0JwmC8b\"], \"id\": \"GRID_ID\", \"type\": \"GRID\"}, \"HEADER_ID\": {\"id\": \"HEADER_ID\", \"meta\": {\"text\": \"Administrative\"}, \"type\": \"HEADER\"}, \"ROOT_ID\": {\"children\": [\"GRID_ID\"], \"id\": \"ROOT_ID\", \"type\": \"ROOT\"}, \"ROW-cQ0JwmC8b\": {\"children\": [\"CHART-EVVSjHFIHN\"], \"id\": \"ROW-cQ0JwmC8b\", \"meta\": {\"background\": \"BACKGROUND_TRANSPARENT\"}, \"type\": \"ROW\"}}", + "id": 1, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "created_by_fk": null, + "json_metadata": "{\"filter_immune_slices\": [], \"timed_refresh_immune_slices\": [], \"filter_immune_slice_fields\": {}, \"expanded_slices\": {}, \"default_filters\": \"{}\", \"remote_id\": 1, \"import_time\": 1619599137}", "description": null, - "dashboard_title": "Reporting Rate and Timeliness", + "dashboard_title": "Administrative", "changed_on": { - "__datetime__": "2019-03-22T11:52:27" + "__datetime__": "2021-04-28T09:33:10" }, "changed_by_fk": 1, - "slug": null, - "css": "", - "position_json": "{\"CHART-3XaEn_AjRI\":{\"children\":[],\"id\":\"CHART-3XaEn_AjRI\",\"meta\":{\"chartId\":24,\"height\":46,\"sliceName\":\"Reporting Rate and Timeliness\",\"width\":12},\"type\":\"CHART\"},\"CHART-PdVqnXV-Q4\":{\"children\":[],\"id\":\"CHART-PdVqnXV-Q4\",\"meta\":{\"chartId\":37,\"height\":56,\"sliceName\":\"Expected Facilities per Period\",\"width\":4},\"type\":\"CHART\"},\"CHART-bDIq2bI0KP\":{\"children\":[],\"id\":\"CHART-bDIq2bI0KP\",\"meta\":{\"chartId\":36,\"height\":56,\"sliceName\":\"Reporting Rate Filter\",\"width\":4},\"type\":\"CHART\"},\"CHART-vQsFBEa-Sm\":{\"children\":[],\"id\":\"CHART-vQsFBEa-Sm\",\"meta\":{\"chartId\":23,\"height\":56,\"sliceName\":\"All-Time Reporting Timeliness\",\"width\":4},\"type\":\"CHART\"},\"DASHBOARD_VERSION_KEY\":\"v2\",\"GRID_ID\":{\"children\":[\"ROW-SvSDtqQSP\",\"ROW-2ZW3FYstKJ\"],\"id\":\"GRID_ID\",\"type\":\"GRID\"},\"HEADER_ID\":{\"id\":\"HEADER_ID\",\"meta\":{\"text\":\"Reporting Rate and Timeliness\"},\"type\":\"HEADER\"},\"ROOT_ID\":{\"children\":[\"GRID_ID\"],\"id\":\"ROOT_ID\",\"type\":\"ROOT\"},\"ROW-2ZW3FYstKJ\":{\"children\":[\"CHART-3XaEn_AjRI\"],\"id\":\"ROW-2ZW3FYstKJ\",\"meta\":{\"background\":\"BACKGROUND_TRANSPARENT\"},\"type\":\"ROW\"},\"ROW-SvSDtqQSP\":{\"children\":[\"CHART-bDIq2bI0KP\",\"CHART-vQsFBEa-Sm\",\"CHART-PdVqnXV-Q4\"],\"id\":\"ROW-SvSDtqQSP\",\"meta\":{\"background\":\"BACKGROUND_TRANSPARENT\"},\"type\":\"ROW\"}}", - "id": 12, - "created_on": { - "__datetime__": "2019-03-22T09:32:32" - }, - "created_by_fk": 1, "slices": [ { "__Slice__": { - "datasource_type": "table", - "slice_name": "Reporting Rate Filter", - "changed_on": { - "__datetime__": "2019-03-22T11:53:07" - }, - "changed_by_fk": 1, - "created_by_fk": 1, - "cache_timeout": null, - "params": "{\"datasource\": \"3__table\", \"viz_type\": \"filter_box\", \"slice_id\": 36, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 100 years\", \"groupby\": [\"region\", \"district\", \"name\", \"program_name\", \"processing_period_name\", \"processing_schedule_name\", \"reporting_timeliness\"], \"metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 115, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_p2r4x1ybys_v8e6c02t7c\"}, \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_hyqlv8r3mr_0x5h2zmah809\"}], \"date_filter\": false, \"instant_filtering\": true, \"show_sqla_time_granularity\": false, \"show_sqla_time_column\": false, \"show_druid_time_granularity\": false, \"show_druid_time_origin\": false, \"remote_id\": 36, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\"}", - "datasource_name": "reporting_rate_and_timeliness", - "datasource_id": 3, - "id": 36, - "created_on": { - "__datetime__": "2019-03-22T09:20:01" - }, - "perm": "[main].[reporting_rate_and_timeliness](id:3)", - "description": null, - "viz_type": "filter_box" - } - }, - { - "__Slice__": { - "datasource_type": "table", - "slice_name": "All-Time Reporting Timeliness", - "changed_on": { - "__datetime__": "2019-03-22T11:53:07" - }, - "changed_by_fk": 1, - "created_by_fk": 1, - "cache_timeout": null, - "params": "{\"datasource\": \"3__table\", \"viz_type\": \"pie\", \"slice_id\": 23, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 100 years\", \"metric\": \"count\", \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_2vvao99u3we_ihcm3jj6p5\"}], \"groupby\": [\"reporting_timeliness\"], \"row_limit\": 25, \"pie_label_type\": \"key_percent\", \"donut\": true, \"show_legend\": true, \"show_labels\": true, \"labels_outside\": true, \"color_scheme\": \"bnbColors\", \"remote_id\": 23, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\"}", - "datasource_name": "reporting_rate_and_timeliness", - "datasource_id": 3, - "id": 23, + "datasource_name": "facilities", + "datasource_id": 65, + "id": 1, "created_on": { - "__datetime__": "2019-03-22T09:09:53" - }, - "perm": "[main].[reporting_rate_and_timeliness](id:3)", - "description": null, - "viz_type": "pie" - } - }, - { - "__Slice__": { - "datasource_type": "table", - "slice_name": "Expected Facilities per Period", - "changed_on": { - "__datetime__": "2019-03-22T11:53:07" + "__datetime__": "2021-04-28T08:38:59" }, "changed_by_fk": 1, - "created_by_fk": 1, - "cache_timeout": null, - "params": "{\"datasource\": \"3__table\", \"viz_type\": \"table\", \"slice_id\": 37, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 5 years\", \"groupby\": [\"processing_period_name\"], \"metrics\": [{\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 110, \"column_name\": \"facility_id\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"is_dttm\": false, \"type\": \"VARCHAR\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_facility_id\"}, \"aggregate\": \"COUNT_DISTINCT\", \"sqlExpression\": null, \"hasCustomLabel\": true, \"fromFormData\": true, \"label\": \"Expected Facilities\", \"optionName\": \"metric_dyapxkgq3vt_9fryd0cvo7s\"}], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 115, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": false, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_vrhjvltam3_gox7h9tb8ok\"}, \"row_limit\": 10000, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_inff4fsodr_84vnpr8mbba\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 0, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 37, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\"}", - "datasource_name": "reporting_rate_and_timeliness", - "datasource_id": 3, - "id": 37, - "created_on": { - "__datetime__": "2019-03-22T09:20:38" - }, - "perm": "[main].[reporting_rate_and_timeliness](id:3)", + "perm": "[main].[facilities](id:65)", "description": null, - "viz_type": "table" - } - }, - { - "__Slice__": { + "viz_type": "table", "datasource_type": "table", - "slice_name": "Reporting Rate and Timeliness", + "slice_name": "Facility List", "changed_on": { - "__datetime__": "2019-03-22T11:53:07" + "__datetime__": "2021-04-28T09:38:14" }, - "changed_by_fk": 1, - "created_by_fk": 1, + "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"3__table\", \"viz_type\": \"table\", \"slice_id\": 24, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": null, \"time_range\": \"Last 10 years\", \"groupby\": [\"region\", \"district\", \"name\", \"processing_period_name\", \"reporting_timeliness\"], \"metrics\": [], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 115, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_15fyko0isfa_us7zq097ry\"}, \"row_limit\": 10000, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_pqrrkt098v_g5dfv1gol8i\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 0, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 24, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\"}", - "datasource_name": "reporting_rate_and_timeliness", - "datasource_id": 3, - "id": 24, - "created_on": { - "__datetime__": "2019-03-22T09:10:38" - }, - "perm": "[main].[reporting_rate_and_timeliness](id:3)", - "description": null, - "viz_type": "table" + "params": "{\"datasource\": \"65__table\", \"viz_type\": \"table\", \"slice_id\": 17, \"url_params\": {}, \"granularity_sqla\": null, \"time_grain_sqla\": null, \"time_range\": \"No filter\", \"groupby\": [\"code\", \"name\", \"type\", \"district\", \"operator_name\"], \"metrics\": [], \"percent_metrics\": [], \"timeseries_limit_metric\": null, \"row_limit\": 10000, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 100, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 1, \"datasource_name\": \"facilities\", \"schema\": \"facilities\", \"database_name\": \"main\", \"import_time\": 1619599137}" } } ] @@ -111,108 +45,108 @@ }, { "__Dashboard__": { - "json_metadata": "{\"filter_immune_slices\": [], \"timed_refresh_immune_slices\": [], \"filter_immune_slice_fields\": {}, \"expanded_slices\": {}, \"default_filters\": \"{}\", \"remote_id\": 11}", + "slug": "stockouts", + "css": "", + "position_json": "{\"CHART-3a3t50Losu\": {\"children\": [], \"id\": \"CHART-3a3t50Losu\", \"meta\": {\"chartId\": 2, \"height\": 25, \"sliceName\": \"All-Time Reporting Timeliness\", \"width\": 4}, \"type\": \"CHART\"}, \"CHART-7qtihGmvhy\": {\"children\": [], \"id\": \"CHART-7qtihGmvhy\", \"meta\": {\"chartId\": 4, \"height\": 68, \"sliceName\": \"Stock Filter\", \"width\": 4}, \"type\": \"CHART\"}, \"CHART-ZxCCxr1LkD\": {\"children\": [], \"id\": \"CHART-ZxCCxr1LkD\", \"meta\": {\"chartId\": 15, \"height\": 36, \"sliceName\": \"District Stockout Rates over Time\", \"width\": 12}, \"type\": \"CHART\"}, \"CHART-fpY4uE-ZN5\": {\"children\": [], \"id\": \"CHART-fpY4uE-ZN5\", \"meta\": {\"chartId\": 3, \"height\": 68, \"sliceName\": \"Reporting Rate and Timeliness\", \"width\": 8}, \"type\": \"CHART\"}, \"DASHBOARD_VERSION_KEY\": \"v2\", \"GRID_ID\": {\"children\": [\"ROW-T9IK1wSrS\", \"ROW-ZNBZ4wekv\", \"ROW-ZPQ_lw1-k\"], \"id\": \"GRID_ID\", \"type\": \"GRID\"}, \"HEADER_ID\": {\"id\": \"HEADER_ID\", \"meta\": {\"text\": \"Stockouts\"}, \"type\": \"HEADER\"}, \"MARKDOWN-veBvEY4Ft_\": {\"children\": [], \"id\": \"MARKDOWN-veBvEY4Ft_\", \"meta\": {\"code\": \"Use a filter to the top left to select a particular product code to see the stockout rate for that product. Note that this approach is best displayed with district-level lines, but we only have one district in the data and so it uses facility-level lines for this example.\\n\\nCurrently, this dashboard shows the average stockout rate for all commodities.\", \"height\": 25, \"width\": 8}, \"type\": \"MARKDOWN\"}, \"ROOT_ID\": {\"children\": [\"GRID_ID\"], \"id\": \"ROOT_ID\", \"type\": \"ROOT\"}, \"ROW-T9IK1wSrS\": {\"children\": [\"CHART-7qtihGmvhy\", \"CHART-fpY4uE-ZN5\"], \"id\": \"ROW-T9IK1wSrS\", \"meta\": {\"background\": \"BACKGROUND_TRANSPARENT\"}, \"type\": \"ROW\"}, \"ROW-ZNBZ4wekv\": {\"children\": [\"MARKDOWN-veBvEY4Ft_\", \"CHART-3a3t50Losu\"], \"id\": \"ROW-ZNBZ4wekv\", \"meta\": {\"background\": \"BACKGROUND_TRANSPARENT\"}, \"type\": \"ROW\"}, \"ROW-ZPQ_lw1-k\": {\"children\": [\"CHART-ZxCCxr1LkD\"], \"id\": \"ROW-ZPQ_lw1-k\", \"meta\": {\"background\": \"BACKGROUND_TRANSPARENT\"}, \"type\": \"ROW\"}}", + "id": 6, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "created_by_fk": null, + "json_metadata": "{\"filter_immune_slices\": [], \"timed_refresh_immune_slices\": [], \"filter_immune_slice_fields\": {}, \"expanded_slices\": {}, \"default_filters\": \"{}\", \"remote_id\": 6, \"import_time\": 1619599137}", "description": null, "dashboard_title": "Stockouts", "changed_on": { - "__datetime__": "2019-03-22T11:44:32" + "__datetime__": "2021-04-28T09:29:36" }, "changed_by_fk": 1, - "slug": null, - "css": "", - "position_json": "{\"CHART-3a3t50Losu\":{\"children\":[],\"id\":\"CHART-3a3t50Losu\",\"meta\":{\"chartId\":23,\"height\":25,\"sliceName\":\"All-Time Reporting Timeliness\",\"width\":4},\"type\":\"CHART\"},\"CHART-7qtihGmvhy\":{\"children\":[],\"id\":\"CHART-7qtihGmvhy\",\"meta\":{\"chartId\":29,\"height\":68,\"sliceName\":\"Stock Filter\",\"width\":4},\"type\":\"CHART\"},\"CHART-ZxCCxr1LkD\":{\"children\":[],\"id\":\"CHART-ZxCCxr1LkD\",\"meta\":{\"chartId\":35,\"height\":36,\"sliceName\":\"District Stockout Rates over Time\",\"width\":12},\"type\":\"CHART\"},\"CHART-fpY4uE-ZN5\":{\"children\":[],\"id\":\"CHART-fpY4uE-ZN5\",\"meta\":{\"chartId\":24,\"height\":68,\"sliceName\":\"Reporting Rate and Timeliness\",\"width\":8},\"type\":\"CHART\"},\"DASHBOARD_VERSION_KEY\":\"v2\",\"GRID_ID\":{\"children\":[\"ROW-T9IK1wSrS\",\"ROW-ZNBZ4wekv\",\"ROW-ZPQ_lw1-k\"],\"id\":\"GRID_ID\",\"type\":\"GRID\"},\"HEADER_ID\":{\"id\":\"HEADER_ID\",\"meta\":{\"text\":\"Stockouts\"},\"type\":\"HEADER\"},\"MARKDOWN-veBvEY4Ft_\":{\"children\":[],\"id\":\"MARKDOWN-veBvEY4Ft_\",\"meta\":{\"code\":\"Use a filter to the top left to select a particular product code to see the stockout rate for that product. Note that this approach is best displayed with district-level lines, but we only have one district in the data and so it uses facility-level lines for this example.\\n\\nCurrently, this dashboard shows the average stockout rate for all commodities.\",\"height\":25,\"width\":8},\"type\":\"MARKDOWN\"},\"ROOT_ID\":{\"children\":[\"GRID_ID\"],\"id\":\"ROOT_ID\",\"type\":\"ROOT\"},\"ROW-T9IK1wSrS\":{\"children\":[\"CHART-7qtihGmvhy\",\"CHART-fpY4uE-ZN5\"],\"id\":\"ROW-T9IK1wSrS\",\"meta\":{\"background\":\"BACKGROUND_TRANSPARENT\"},\"type\":\"ROW\"},\"ROW-ZNBZ4wekv\":{\"children\":[\"MARKDOWN-veBvEY4Ft_\",\"CHART-3a3t50Losu\"],\"id\":\"ROW-ZNBZ4wekv\",\"meta\":{\"background\":\"BACKGROUND_TRANSPARENT\"},\"type\":\"ROW\"},\"ROW-ZPQ_lw1-k\":{\"children\":[\"CHART-ZxCCxr1LkD\"],\"id\":\"ROW-ZPQ_lw1-k\",\"meta\":{\"background\":\"BACKGROUND_TRANSPARENT\"},\"type\":\"ROW\"}}", - "id": 11, - "created_on": { - "__datetime__": "2019-03-22T09:29:34" - }, - "created_by_fk": 1, "slices": [ { "__Slice__": { + "datasource_name": "reporting_rate_and_timeliness", + "datasource_id": 3, + "id": 2, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "changed_by_fk": null, + "perm": "[main].[reporting_rate_and_timeliness](id:3)", + "description": null, + "viz_type": "pie", "datasource_type": "table", - "slice_name": "Stock Filter", + "slice_name": "All-Time Reporting Timeliness", "changed_on": { - "__datetime__": "2019-03-22T11:53:07" + "__datetime__": "2021-04-28T08:38:59" }, - "changed_by_fk": 1, - "created_by_fk": 1, + "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"1__table\", \"viz_type\": \"filter_box\", \"slice_id\": 29, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": null, \"time_range\": \"Last 3 years\", \"groupby\": [\"program_name\", \"region_name\", \"district_name\", \"processing_period_name\", \"processing_schedule_name\", \"facility_name\", \"facility_type_name\", \"full_product_name\", \"stock_status\"], \"metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 48, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_ihqxettg21k_jm402meto1d\"}, \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_28q84ybogif_baa55jgcghi\"}], \"date_filter\": false, \"instant_filtering\": true, \"show_sqla_time_granularity\": false, \"show_sqla_time_column\": false, \"show_druid_time_granularity\": false, \"show_druid_time_origin\": false, \"remote_id\": 29, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\"}", - "datasource_name": "stock_status_and_consumption", - "datasource_id": 1, - "id": 29, - "created_on": { - "__datetime__": "2019-03-22T09:14:30" - }, - "perm": "[main].[stock_status_and_consumption](id:1)", - "description": null, - "viz_type": "filter_box" + "params": "{\"datasource\": \"3__table\", \"viz_type\": \"pie\", \"slice_id\": 23, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 100 years\", \"metric\": \"count\", \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_2vvao99u3we_ihcm3jj6p5\"}], \"groupby\": [\"reporting_timeliness\"], \"row_limit\": 25, \"pie_label_type\": \"key_percent\", \"donut\": true, \"show_legend\": true, \"show_labels\": true, \"labels_outside\": true, \"color_scheme\": \"bnbColors\", \"remote_id\": 2, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\", \"import_time\": 1619599137}" } }, { "__Slice__": { - "datasource_type": "table", - "slice_name": "Reporting Rate and Timeliness", - "changed_on": { - "__datetime__": "2019-03-22T11:53:07" - }, - "changed_by_fk": 1, - "created_by_fk": 1, - "cache_timeout": null, - "params": "{\"datasource\": \"3__table\", \"viz_type\": \"table\", \"slice_id\": 24, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": null, \"time_range\": \"Last 10 years\", \"groupby\": [\"region\", \"district\", \"name\", \"processing_period_name\", \"reporting_timeliness\"], \"metrics\": [], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 115, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_15fyko0isfa_us7zq097ry\"}, \"row_limit\": 10000, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_pqrrkt098v_g5dfv1gol8i\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 0, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 24, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\"}", "datasource_name": "reporting_rate_and_timeliness", "datasource_id": 3, - "id": 24, + "id": 3, "created_on": { - "__datetime__": "2019-03-22T09:10:38" + "__datetime__": "2021-04-28T08:38:59" }, + "changed_by_fk": 1, "perm": "[main].[reporting_rate_and_timeliness](id:3)", "description": null, - "viz_type": "table" - } - }, - { - "__Slice__": { + "viz_type": "table", "datasource_type": "table", - "slice_name": "All-Time Reporting Timeliness", + "slice_name": "Reporting Rate and Timeliness", "changed_on": { - "__datetime__": "2019-03-22T11:53:07" + "__datetime__": "2021-04-28T09:38:14" }, - "changed_by_fk": 1, - "created_by_fk": 1, + "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"3__table\", \"viz_type\": \"pie\", \"slice_id\": 23, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 100 years\", \"metric\": \"count\", \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_2vvao99u3we_ihcm3jj6p5\"}], \"groupby\": [\"reporting_timeliness\"], \"row_limit\": 25, \"pie_label_type\": \"key_percent\", \"donut\": true, \"show_legend\": true, \"show_labels\": true, \"labels_outside\": true, \"color_scheme\": \"bnbColors\", \"remote_id\": 23, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\"}", - "datasource_name": "reporting_rate_and_timeliness", - "datasource_id": 3, - "id": 23, - "created_on": { - "__datetime__": "2019-03-22T09:09:53" - }, - "perm": "[main].[reporting_rate_and_timeliness](id:3)", - "description": null, - "viz_type": "pie" + "params": "{\"datasource\": \"3__table\", \"viz_type\": \"table\", \"slice_id\": 24, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": null, \"time_range\": \"Last 10 years\", \"groupby\": [\"region\", \"district\", \"name\", \"processing_period_name\", \"reporting_timeliness\"], \"metrics\": [], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 115, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_15fyko0isfa_us7zq097ry\"}, \"row_limit\": 10000, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_pqrrkt098v_g5dfv1gol8i\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 0, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 3, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\", \"import_time\": 1619599137}" } }, { "__Slice__": { + "datasource_name": "stock_status_and_consumption", + "datasource_id": 1, + "id": 4, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "changed_by_fk": 1, + "perm": "[main].[stock_status_and_consumption](id:1)", + "description": null, + "viz_type": "filter_box", "datasource_type": "table", - "slice_name": "District Stockout Rates over Time", + "slice_name": "Stock Filter", "changed_on": { - "__datetime__": "2019-03-22T11:53:07" + "__datetime__": "2021-04-28T09:38:14" }, - "changed_by_fk": 1, - "created_by_fk": 1, + "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"1__table\", \"viz_type\": \"line\", \"slice_id\": 35, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"Last 2 years\", \"metrics\": [{\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 8, \"column_name\": \"combined_stockout\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"is_dttm\": false, \"type\": \"INTEGER\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_combined_stockout\"}, \"aggregate\": \"AVG\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"AVG(combined_stockout)\", \"optionName\": \"metric_xbuyamywqjh_vel69x0kb4l\"}], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_5tzxmpwq1wm_crbgbdync1p\"}], \"groupby\": [\"district_name\"], \"timeseries_limit_metric\": null, \"order_desc\": true, \"contribution\": false, \"row_limit\": 10000, \"color_scheme\": \"bnbColors\", \"show_brush\": \"no\", \"send_time_range\": false, \"show_legend\": true, \"rich_tooltip\": true, \"show_markers\": false, \"line_interpolation\": \"linear\", \"x_axis_label\": \"\", \"bottom_margin\": \"auto\", \"x_ticks_layout\": \"auto\", \"x_axis_format\": \"smart_date\", \"x_axis_showminmax\": false, \"y_axis_label\": \"Stockout Rate\", \"left_margin\": \"auto\", \"y_axis_showminmax\": false, \"y_log_scale\": false, \"y_axis_format\": \".3s\", \"y_axis_bounds\": [null, null], \"rolling_type\": \"None\", \"comparison_type\": \"values\", \"resample_how\": null, \"resample_rule\": null, \"resample_fillmethod\": null, \"annotation_layers\": [{\"name\": \"Benchmark\", \"annotationType\": \"FORMULA\", \"sourceType\": \"\", \"value\": \".85\", \"overrides\": {\"since\": null, \"until\": null}, \"show\": true, \"titleColumn\": \"\", \"descriptionColumns\": [], \"timeColumn\": \"\", \"intervalEndColumn\": \"\", \"color\": \"#ff5a5f\", \"opacity\": \"\", \"style\": \"longDashed\", \"width\": 10, \"showMarkers\": false, \"hideLine\": false}], \"remote_id\": 35, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\"}", + "params": "{\"datasource\": \"1__table\", \"viz_type\": \"filter_box\", \"slice_id\": 5, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": null, \"time_range\": \"No filter\", \"groupby\": [\"program_name\", \"region_name\", \"district_name\", \"processing_period_name\", \"processing_schedule_name\", \"facility_name\", \"facility_type_name\", \"full_product_name\", \"stock_status\"], \"metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 48, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_ihqxettg21k_jm402meto1d\"}, \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_28q84ybogif_baa55jgcghi\"}], \"date_filter\": false, \"instant_filtering\": true, \"show_sqla_time_granularity\": false, \"show_sqla_time_column\": false, \"show_druid_time_granularity\": false, \"show_druid_time_origin\": false, \"remote_id\": 4, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\", \"import_time\": 1619599137}" + } + }, + { + "__Slice__": { "datasource_name": "stock_status_and_consumption", "datasource_id": 1, - "id": 35, + "id": 15, "created_on": { - "__datetime__": "2019-03-22T09:19:25" + "__datetime__": "2021-04-28T08:38:59" }, + "changed_by_fk": 1, "perm": "[main].[stock_status_and_consumption](id:1)", "description": null, - "viz_type": "line" + "viz_type": "line", + "datasource_type": "table", + "slice_name": "District Stockout Rates over Time", + "changed_on": { + "__datetime__": "2021-04-28T09:38:14" + }, + "created_by_fk": null, + "cache_timeout": null, + "params": "{\"datasource\": \"1__table\", \"viz_type\": \"line\", \"slice_id\": 6, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"No filter\", \"metrics\": [{\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 8, \"column_name\": \"combined_stockout\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"is_dttm\": false, \"type\": \"INTEGER\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_combined_stockout\"}, \"aggregate\": \"AVG\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"AVG(combined_stockout)\", \"optionName\": \"metric_xbuyamywqjh_vel69x0kb4l\"}], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_5tzxmpwq1wm_crbgbdync1p\"}], \"groupby\": [\"district_name\"], \"timeseries_limit_metric\": null, \"order_desc\": true, \"contribution\": false, \"row_limit\": 10000, \"color_scheme\": \"bnbColors\", \"show_brush\": \"no\", \"send_time_range\": false, \"show_legend\": true, \"rich_tooltip\": true, \"show_markers\": false, \"line_interpolation\": \"linear\", \"x_axis_label\": \"\", \"bottom_margin\": \"auto\", \"x_ticks_layout\": \"auto\", \"x_axis_format\": \"smart_date\", \"x_axis_showminmax\": false, \"y_axis_label\": \"Stockout Rate\", \"left_margin\": \"auto\", \"y_axis_showminmax\": false, \"y_log_scale\": false, \"y_axis_format\": \".3s\", \"y_axis_bounds\": [null, null], \"rolling_type\": \"None\", \"comparison_type\": \"values\", \"resample_how\": null, \"resample_rule\": null, \"resample_fillmethod\": null, \"annotation_layers\": [{\"name\": \"Benchmark\", \"annotationType\": \"FORMULA\", \"sourceType\": \"\", \"value\": \".85\", \"overrides\": {\"since\": null, \"until\": null}, \"show\": true, \"titleColumn\": \"\", \"descriptionColumns\": [], \"timeColumn\": \"\", \"intervalEndColumn\": \"\", \"color\": \"#ff5a5f\", \"opacity\": \"\", \"style\": \"longDashed\", \"width\": 10, \"showMarkers\": false, \"hideLine\": false}], \"remote_id\": 15, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\", \"import_time\": 1619599137}" } } ] @@ -220,108 +154,130 @@ }, { "__Dashboard__": { - "json_metadata": "{\"filter_immune_slices\": [], \"timed_refresh_immune_slices\": [], \"filter_immune_slice_fields\": {}, \"expanded_slices\": {}, \"default_filters\": \"{}\", \"remote_id\": 10}", + "slug": "orders", + "css": "", + "position_json": "{\"CHART-6fBsPuT_tQ\": {\"children\": [], \"id\": \"CHART-6fBsPuT_tQ\", \"meta\": {\"chartId\": 2, \"height\": 57, \"sliceName\": \"All-Time Reporting Timeliness\", \"width\": 4}, \"type\": \"CHART\"}, \"CHART-W075If6ESD\": {\"children\": [], \"id\": \"CHART-W075If6ESD\", \"meta\": {\"chartId\": 3, \"height\": 50, \"sliceName\": \"Reporting Rate and Timeliness\", \"width\": 8}, \"type\": \"CHART\"}, \"CHART-Zra9PTDrsU\": {\"children\": [], \"id\": \"CHART-Zra9PTDrsU\", \"meta\": {\"chartId\": 11, \"height\": 57, \"sliceName\": \"Total Cost of Orders\", \"width\": 4}, \"type\": \"CHART\"}, \"CHART-xbPNz-aIrt\": {\"children\": [], \"id\": \"CHART-xbPNz-aIrt\", \"meta\": {\"chartId\": 10, \"height\": 50, \"sliceName\": \"Emergency v. Regular Orders\", \"width\": 4}, \"type\": \"CHART\"}, \"CHART-ydMvl6GVvT\": {\"children\": [], \"id\": \"CHART-ydMvl6GVvT\", \"meta\": {\"chartId\": 9, \"height\": 57, \"sliceName\": \"Orders Filter\", \"width\": 4}, \"type\": \"CHART\"}, \"DASHBOARD_VERSION_KEY\": \"v2\", \"GRID_ID\": {\"children\": [\"ROW-nzZc2eWdn\", \"ROW-xE_bWTgF8\"], \"id\": \"GRID_ID\", \"type\": \"GRID\"}, \"HEADER_ID\": {\"id\": \"HEADER_ID\", \"meta\": {\"text\": \"Orders\"}, \"type\": \"HEADER\"}, \"ROOT_ID\": {\"children\": [\"GRID_ID\"], \"id\": \"ROOT_ID\", \"type\": \"ROOT\"}, \"ROW-nzZc2eWdn\": {\"children\": [\"CHART-ydMvl6GVvT\", \"CHART-6fBsPuT_tQ\", \"CHART-Zra9PTDrsU\"], \"id\": \"ROW-nzZc2eWdn\", \"meta\": {\"background\": \"BACKGROUND_TRANSPARENT\"}, \"type\": \"ROW\"}, \"ROW-xE_bWTgF8\": {\"children\": [\"CHART-xbPNz-aIrt\", \"CHART-W075If6ESD\"], \"id\": \"ROW-xE_bWTgF8\", \"meta\": {\"background\": \"BACKGROUND_TRANSPARENT\"}, \"type\": \"ROW\"}}", + "id": 4, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "created_by_fk": null, + "json_metadata": "{\"filter_immune_slices\": [], \"timed_refresh_immune_slices\": [], \"filter_immune_slice_fields\": {}, \"expanded_slices\": {}, \"default_filters\": \"{}\", \"remote_id\": 4, \"import_time\": 1619599137}", "description": null, - "dashboard_title": "Consumption", + "dashboard_title": "Orders", "changed_on": { - "__datetime__": "2019-03-22T11:38:04" + "__datetime__": "2021-04-28T09:29:01" }, "changed_by_fk": 1, - "slug": null, - "css": "", - "position_json": "{\"CHART-TreiyZs86A\":{\"children\":[],\"id\":\"CHART-TreiyZs86A\",\"meta\":{\"chartId\":31,\"height\":50,\"sliceName\":\"Consumption Report\",\"width\":5},\"type\":\"CHART\"},\"CHART-k3Q8bZoivs\":{\"children\":[],\"id\":\"CHART-k3Q8bZoivs\",\"meta\":{\"chartId\":32,\"height\":50,\"sliceName\":\"Total Adjusted Consumption per Facility\",\"width\":7},\"type\":\"CHART\"},\"CHART-sLPzUKWaFt\":{\"children\":[],\"id\":\"CHART-sLPzUKWaFt\",\"meta\":{\"chartId\":30,\"height\":69,\"sliceName\":\"Logistics Summary Report\",\"width\":8},\"type\":\"CHART\"},\"CHART-vWziXTcZlz\":{\"children\":[],\"id\":\"CHART-vWziXTcZlz\",\"meta\":{\"chartId\":29,\"height\":69,\"sliceName\":\"Stock Filter\",\"width\":4},\"type\":\"CHART\"},\"DASHBOARD_VERSION_KEY\":\"v2\",\"GRID_ID\":{\"children\":[\"ROW-00JoR3Ly_\",\"ROW-6jFB8wGrT7\",\"ROW-6HHg95Bz9\"],\"id\":\"GRID_ID\",\"type\":\"GRID\"},\"HEADER_ID\":{\"id\":\"HEADER_ID\",\"meta\":{\"text\":\"Consumption\"},\"type\":\"HEADER\"},\"MARKDOWN-hbo_igRlnf\":{\"children\":[],\"id\":\"MARKDOWN-hbo_igRlnf\",\"meta\":{\"code\":\"Use the filters in the top left to select a specific product, facility, or reporting period.\\n\\nNote that with the line graph below, you should select a specific product, otherwise it shows the aggregate of all products.\",\"height\":13,\"width\":12},\"type\":\"MARKDOWN\"},\"ROOT_ID\":{\"children\":[\"GRID_ID\"],\"id\":\"ROOT_ID\",\"type\":\"ROOT\"},\"ROW-00JoR3Ly_\":{\"children\":[\"CHART-vWziXTcZlz\",\"CHART-sLPzUKWaFt\"],\"id\":\"ROW-00JoR3Ly_\",\"meta\":{\"background\":\"BACKGROUND_TRANSPARENT\"},\"type\":\"ROW\"},\"ROW-6HHg95Bz9\":{\"children\":[\"CHART-TreiyZs86A\",\"CHART-k3Q8bZoivs\"],\"id\":\"ROW-6HHg95Bz9\",\"meta\":{\"background\":\"BACKGROUND_TRANSPARENT\"},\"type\":\"ROW\"},\"ROW-6jFB8wGrT7\":{\"children\":[\"MARKDOWN-hbo_igRlnf\"],\"id\":\"ROW-6jFB8wGrT7\",\"meta\":{\"background\":\"BACKGROUND_TRANSPARENT\"},\"type\":\"ROW\"}}", - "id": 10, - "created_on": { - "__datetime__": "2019-03-22T09:27:33" - }, - "created_by_fk": 1, "slices": [ { "__Slice__": { + "datasource_name": "reporting_rate_and_timeliness", + "datasource_id": 3, + "id": 2, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "changed_by_fk": null, + "perm": "[main].[reporting_rate_and_timeliness](id:3)", + "description": null, + "viz_type": "pie", "datasource_type": "table", - "slice_name": "Stock Filter", + "slice_name": "All-Time Reporting Timeliness", "changed_on": { - "__datetime__": "2019-03-22T11:53:07" + "__datetime__": "2021-04-28T08:38:59" }, - "changed_by_fk": 1, - "created_by_fk": 1, + "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"1__table\", \"viz_type\": \"filter_box\", \"slice_id\": 29, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": null, \"time_range\": \"Last 3 years\", \"groupby\": [\"program_name\", \"region_name\", \"district_name\", \"processing_period_name\", \"processing_schedule_name\", \"facility_name\", \"facility_type_name\", \"full_product_name\", \"stock_status\"], \"metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 48, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_ihqxettg21k_jm402meto1d\"}, \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_28q84ybogif_baa55jgcghi\"}], \"date_filter\": false, \"instant_filtering\": true, \"show_sqla_time_granularity\": false, \"show_sqla_time_column\": false, \"show_druid_time_granularity\": false, \"show_druid_time_origin\": false, \"remote_id\": 29, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\"}", - "datasource_name": "stock_status_and_consumption", - "datasource_id": 1, - "id": 29, - "created_on": { - "__datetime__": "2019-03-22T09:14:30" - }, - "perm": "[main].[stock_status_and_consumption](id:1)", - "description": null, - "viz_type": "filter_box" + "params": "{\"datasource\": \"3__table\", \"viz_type\": \"pie\", \"slice_id\": 23, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 100 years\", \"metric\": \"count\", \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_2vvao99u3we_ihcm3jj6p5\"}], \"groupby\": [\"reporting_timeliness\"], \"row_limit\": 25, \"pie_label_type\": \"key_percent\", \"donut\": true, \"show_legend\": true, \"show_labels\": true, \"labels_outside\": true, \"color_scheme\": \"bnbColors\", \"remote_id\": 2, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\", \"import_time\": 1619599137}" } }, { "__Slice__": { + "datasource_name": "reporting_rate_and_timeliness", + "datasource_id": 3, + "id": 3, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "changed_by_fk": 1, + "perm": "[main].[reporting_rate_and_timeliness](id:3)", + "description": null, + "viz_type": "table", "datasource_type": "table", - "slice_name": "Logistics Summary Report", + "slice_name": "Reporting Rate and Timeliness", "changed_on": { - "__datetime__": "2019-03-22T11:53:07" + "__datetime__": "2021-04-28T09:38:14" }, - "changed_by_fk": 1, - "created_by_fk": 1, + "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"1__table\", \"viz_type\": \"table\", \"slice_id\": 30, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"Last 10 years\", \"groupby\": [\"facility_name\", \"product_code\", \"full_product_name\", \"processing_period_name\", \"beginning_balance\", \"total_received_quantity\", \"adjusted_consumption\", \"total_losses_and_adjustments\", \"closing_balance\", \"order_quantity\"], \"metrics\": [], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 48, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_snhnk2qk72_toerklflce\"}, \"row_limit\": 500, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_oxmpiqw9mv_6im8r4zrkjs\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 100, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 30, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\"}", + "params": "{\"datasource\": \"3__table\", \"viz_type\": \"table\", \"slice_id\": 24, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": null, \"time_range\": \"Last 10 years\", \"groupby\": [\"region\", \"district\", \"name\", \"processing_period_name\", \"reporting_timeliness\"], \"metrics\": [], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 115, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_15fyko0isfa_us7zq097ry\"}, \"row_limit\": 10000, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_pqrrkt098v_g5dfv1gol8i\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 0, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 3, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\", \"import_time\": 1619599137}" + } + }, + { + "__Slice__": { "datasource_name": "stock_status_and_consumption", "datasource_id": 1, - "id": 30, + "id": 9, "created_on": { - "__datetime__": "2019-03-22T09:14:56" + "__datetime__": "2021-04-28T08:38:59" }, + "changed_by_fk": 1, "perm": "[main].[stock_status_and_consumption](id:1)", "description": null, - "viz_type": "table" - } - }, - { - "__Slice__": { + "viz_type": "filter_box", "datasource_type": "table", - "slice_name": "Consumption Report", + "slice_name": "Orders Filter", "changed_on": { - "__datetime__": "2019-03-22T11:53:07" + "__datetime__": "2021-04-28T09:38:14" }, - "changed_by_fk": 1, - "created_by_fk": 1, + "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"1__table\", \"viz_type\": \"table\", \"slice_id\": 31, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"No filter\", \"groupby\": [\"product_code\", \"full_product_name\", \"total_consumed_quantity\", \"adjusted_consumption\"], \"metrics\": [], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 48, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_ili8xba86dd_mosr7j1p5qq\"}, \"row_limit\": 500, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_30wz7n80cny_44ipe2jz0dw\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 100, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 31, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\"}", + "params": "{\"datasource\": \"1__table\", \"viz_type\": \"filter_box\", \"slice_id\": 25, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": null, \"time_range\": \"Last 10 years\", \"groupby\": [\"program_name\", \"processing_schedule_name\", \"processing_period_name\", \"region_name\", \"district_name\", \"facility_type_name\", \"full_product_name\"], \"metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 48, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_0wxl09vb8n5_tt9m1rtm7mo\"}, \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_urlfg8wr90c_z9b38gbpo5i\"}], \"date_filter\": false, \"instant_filtering\": true, \"show_sqla_time_granularity\": false, \"show_sqla_time_column\": false, \"show_druid_time_granularity\": false, \"show_druid_time_origin\": false, \"remote_id\": 9, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\", \"import_time\": 1619599137}" + } + }, + { + "__Slice__": { "datasource_name": "stock_status_and_consumption", "datasource_id": 1, - "id": 31, + "id": 10, "created_on": { - "__datetime__": "2019-03-22T09:16:16" + "__datetime__": "2021-04-28T08:38:59" }, + "changed_by_fk": 1, "perm": "[main].[stock_status_and_consumption](id:1)", "description": null, - "viz_type": "table" - } - }, - { - "__Slice__": { + "viz_type": "pie", "datasource_type": "table", - "slice_name": "Total Adjusted Consumption per Facility", + "slice_name": "Emergency v. Regular Orders", "changed_on": { - "__datetime__": "2019-03-22T11:53:07" + "__datetime__": "2021-04-28T09:38:14" }, - "changed_by_fk": 1, - "created_by_fk": 1, + "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"1__table\", \"viz_type\": \"line\", \"slice_id\": 32, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"No filter\", \"metrics\": [{\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 1, \"column_name\": \"adjusted_consumption\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"is_dttm\": false, \"type\": \"DOUBLE PRECISION\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_adjusted_consumption\"}, \"aggregate\": \"SUM\", \"sqlExpression\": null, \"hasCustomLabel\": true, \"fromFormData\": true, \"label\": \"Adjusted Consumption\", \"optionName\": \"metric_f3sjc5l6hbr_be6zwd326cj\"}], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_c5ravlwwoy8_sh2pgneuu6o\"}], \"groupby\": [\"facility_name\"], \"timeseries_limit_metric\": null, \"order_desc\": true, \"contribution\": false, \"row_limit\": 10000, \"color_scheme\": \"bnbColors\", \"show_brush\": \"no\", \"send_time_range\": false, \"show_legend\": true, \"rich_tooltip\": true, \"show_markers\": false, \"line_interpolation\": \"linear\", \"x_axis_label\": \"\", \"bottom_margin\": \"auto\", \"x_ticks_layout\": \"auto\", \"x_axis_format\": \"smart_date\", \"x_axis_showminmax\": false, \"y_axis_label\": \"\", \"left_margin\": \"auto\", \"y_axis_showminmax\": false, \"y_log_scale\": false, \"y_axis_format\": \".3s\", \"y_axis_bounds\": [null, null], \"rolling_type\": \"None\", \"comparison_type\": \"values\", \"resample_how\": null, \"resample_rule\": null, \"resample_fillmethod\": null, \"annotation_layers\": [], \"remote_id\": 32, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\"}", + "params": "{\"datasource\": \"1__table\", \"viz_type\": \"pie\", \"slice_id\": 27, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"Last 10 years\", \"metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 45, \"column_name\": \"li_req_id\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"is_dttm\": false, \"type\": \"VARCHAR\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_li_req_id\"}, \"aggregate\": \"COUNT_DISTINCT\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": false, \"label\": \"COUNT_DISTINCT(li_req_id)\", \"optionName\": \"metric_v3b4y8nflpl_jdsj21s35wc\"}, \"adhoc_filters\": [{\"expressionType\": \"SIMPLE\", \"subject\": \"total_received_quantity\", \"operator\": \">\", \"comparator\": \"0\", \"clause\": \"WHERE\", \"sqlExpression\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_r64abbb4fc_m7cq22rpx27\"}, {\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_scifnfkl61_sih62czxip\"}], \"groupby\": [\"emergency_status\"], \"row_limit\": 10000, \"pie_label_type\": \"key_percent\", \"donut\": true, \"show_legend\": true, \"show_labels\": true, \"labels_outside\": true, \"color_scheme\": \"bnbColors\", \"remote_id\": 10, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\", \"import_time\": 1619599137}" + } + }, + { + "__Slice__": { "datasource_name": "stock_status_and_consumption", "datasource_id": 1, - "id": 32, + "id": 11, "created_on": { - "__datetime__": "2019-03-22T09:17:29" + "__datetime__": "2021-04-28T08:38:59" }, + "changed_by_fk": 1, "perm": "[main].[stock_status_and_consumption](id:1)", "description": null, - "viz_type": "line" + "viz_type": "table", + "datasource_type": "table", + "slice_name": "Total Cost of Orders", + "changed_on": { + "__datetime__": "2021-04-28T09:38:14" + }, + "created_by_fk": null, + "cache_timeout": null, + "params": "{\"datasource\": \"1__table\", \"viz_type\": \"table\", \"slice_id\": 28, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"Last 10 years\", \"groupby\": [\"facility_code\", \"facility_name\", \"facility_type_name\", \"district_name\", \"total_cost\"], \"metrics\": [], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 48, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_jxsrc32f8f_mvy80fgsqnf\"}, \"row_limit\": 500, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_r2ne44wfdz_f1sicwd007i\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 100, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 11, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\", \"import_time\": 1619599137}" } } ] @@ -329,130 +285,108 @@ }, { "__Dashboard__": { - "json_metadata": "{\"filter_immune_slices\": [], \"timed_refresh_immune_slices\": [], \"filter_immune_slice_fields\": {}, \"expanded_slices\": {}, \"default_filters\": \"{}\", \"remote_id\": 9}", + "slug": "adjustments", + "css": "", + "position_json": "{\"CHART-7bRWG8LSHr\": {\"children\": [], \"id\": \"CHART-7bRWG8LSHr\", \"meta\": {\"chartId\": 8, \"height\": 63, \"sliceName\": \"Adjustment Summary\", \"width\": 8}, \"type\": \"CHART\"}, \"CHART-nNgDezViDk\": {\"children\": [], \"id\": \"CHART-nNgDezViDk\", \"meta\": {\"chartId\": 3, \"height\": 47, \"sliceName\": \"Reporting Rate and Timeliness\", \"width\": 8}, \"type\": \"CHART\"}, \"CHART-pb3mGEd1Dr\": {\"children\": [], \"id\": \"CHART-pb3mGEd1Dr\", \"meta\": {\"chartId\": 7, \"height\": 63, \"sliceName\": \"Adjustments Filter\", \"width\": 4}, \"type\": \"CHART\"}, \"CHART-yAWXcngznO\": {\"children\": [], \"id\": \"CHART-yAWXcngznO\", \"meta\": {\"chartId\": 2, \"height\": 47, \"sliceName\": \"All-Time Reporting Timeliness\", \"width\": 4}, \"type\": \"CHART\"}, \"DASHBOARD_VERSION_KEY\": \"v2\", \"GRID_ID\": {\"children\": [\"ROW-lBkyeXpzg\", \"ROW-08VACKTqo\"], \"id\": \"GRID_ID\", \"type\": \"GRID\"}, \"HEADER_ID\": {\"id\": \"HEADER_ID\", \"meta\": {\"text\": \"Adjustments\"}, \"type\": \"HEADER\"}, \"ROOT_ID\": {\"children\": [\"GRID_ID\"], \"id\": \"ROOT_ID\", \"type\": \"ROOT\"}, \"ROW-08VACKTqo\": {\"children\": [\"CHART-yAWXcngznO\", \"CHART-nNgDezViDk\"], \"id\": \"ROW-08VACKTqo\", \"meta\": {\"background\": \"BACKGROUND_TRANSPARENT\"}, \"type\": \"ROW\"}, \"ROW-lBkyeXpzg\": {\"children\": [\"CHART-pb3mGEd1Dr\", \"CHART-7bRWG8LSHr\"], \"id\": \"ROW-lBkyeXpzg\", \"meta\": {\"background\": \"BACKGROUND_TRANSPARENT\"}, \"type\": \"ROW\"}}", + "id": 3, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "created_by_fk": null, + "json_metadata": "{\"filter_immune_slices\": [], \"timed_refresh_immune_slices\": [], \"filter_immune_slice_fields\": {}, \"expanded_slices\": {}, \"default_filters\": \"{}\", \"remote_id\": 3, \"import_time\": 1619599137}", "description": null, - "dashboard_title": "Orders", + "dashboard_title": "Adjustments", "changed_on": { - "__datetime__": "2019-03-22T09:54:02" + "__datetime__": "2021-04-28T09:28:53" }, "changed_by_fk": 1, - "slug": null, - "css": "", - "position_json": "{\"CHART-6fBsPuT_tQ\":{\"children\":[],\"id\":\"CHART-6fBsPuT_tQ\",\"meta\":{\"chartId\":2,\"height\":57,\"sliceName\":\"All-Time Reporting Timeliness\",\"width\":4},\"type\":\"CHART\"},\"CHART-W075If6ESD\":{\"children\":[],\"id\":\"CHART-W075If6ESD\",\"meta\":{\"chartId\":4,\"height\":50,\"sliceName\":\"Reporting Rate and Timeliness\",\"width\":8},\"type\":\"CHART\"},\"CHART-Zra9PTDrsU\":{\"children\":[],\"id\":\"CHART-Zra9PTDrsU\",\"meta\":{\"chartId\":12,\"height\":57,\"sliceName\":\"Total Cost of Orders\",\"width\":4},\"type\":\"CHART\"},\"CHART-xbPNz-aIrt\":{\"children\":[],\"id\":\"CHART-xbPNz-aIrt\",\"meta\":{\"chartId\":11,\"height\":50,\"sliceName\":\"Emergency v. Regular Orders\",\"width\":4},\"type\":\"CHART\"},\"CHART-ydMvl6GVvT\":{\"children\":[],\"id\":\"CHART-ydMvl6GVvT\",\"meta\":{\"chartId\":10,\"height\":57,\"sliceName\":\"Orders Filter\",\"width\":4},\"type\":\"CHART\"},\"DASHBOARD_VERSION_KEY\":\"v2\",\"GRID_ID\":{\"children\":[\"ROW-nzZc2eWdn\",\"ROW-xE_bWTgF8\"],\"id\":\"GRID_ID\",\"type\":\"GRID\"},\"HEADER_ID\":{\"id\":\"HEADER_ID\",\"meta\":{\"text\":\"Orders\"},\"type\":\"HEADER\"},\"ROOT_ID\":{\"children\":[\"GRID_ID\"],\"id\":\"ROOT_ID\",\"type\":\"ROOT\"},\"ROW-nzZc2eWdn\":{\"children\":[\"CHART-ydMvl6GVvT\",\"CHART-6fBsPuT_tQ\",\"CHART-Zra9PTDrsU\"],\"id\":\"ROW-nzZc2eWdn\",\"meta\":{\"background\":\"BACKGROUND_TRANSPARENT\"},\"type\":\"ROW\"},\"ROW-xE_bWTgF8\":{\"children\":[\"CHART-xbPNz-aIrt\",\"CHART-W075If6ESD\"],\"id\":\"ROW-xE_bWTgF8\",\"meta\":{\"background\":\"BACKGROUND_TRANSPARENT\"},\"type\":\"ROW\"}}", - "id": 9, - "created_on": { - "__datetime__": "2019-03-22T09:24:36" - }, - "created_by_fk": 1, "slices": [ { "__Slice__": { + "datasource_name": "reporting_rate_and_timeliness", + "datasource_id": 3, + "id": 2, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "changed_by_fk": null, + "perm": "[main].[reporting_rate_and_timeliness](id:3)", + "description": null, + "viz_type": "pie", "datasource_type": "table", "slice_name": "All-Time Reporting Timeliness", "changed_on": { - "__datetime__": "2019-03-22T11:53:07" + "__datetime__": "2021-04-28T08:38:59" }, - "changed_by_fk": 1, - "created_by_fk": 1, + "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"3__table\", \"viz_type\": \"pie\", \"slice_id\": 23, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 100 years\", \"metric\": \"count\", \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_2vvao99u3we_ihcm3jj6p5\"}], \"groupby\": [\"reporting_timeliness\"], \"row_limit\": 25, \"pie_label_type\": \"key_percent\", \"donut\": true, \"show_legend\": true, \"show_labels\": true, \"labels_outside\": true, \"color_scheme\": \"bnbColors\", \"remote_id\": 23, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\"}", + "params": "{\"datasource\": \"3__table\", \"viz_type\": \"pie\", \"slice_id\": 23, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 100 years\", \"metric\": \"count\", \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_2vvao99u3we_ihcm3jj6p5\"}], \"groupby\": [\"reporting_timeliness\"], \"row_limit\": 25, \"pie_label_type\": \"key_percent\", \"donut\": true, \"show_legend\": true, \"show_labels\": true, \"labels_outside\": true, \"color_scheme\": \"bnbColors\", \"remote_id\": 2, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\", \"import_time\": 1619599137}" + } + }, + { + "__Slice__": { "datasource_name": "reporting_rate_and_timeliness", "datasource_id": 3, - "id": 23, + "id": 3, "created_on": { - "__datetime__": "2019-03-22T09:09:53" + "__datetime__": "2021-04-28T08:38:59" }, + "changed_by_fk": 1, "perm": "[main].[reporting_rate_and_timeliness](id:3)", "description": null, - "viz_type": "pie" - } - }, - { - "__Slice__": { + "viz_type": "table", "datasource_type": "table", "slice_name": "Reporting Rate and Timeliness", "changed_on": { - "__datetime__": "2019-03-22T11:53:07" + "__datetime__": "2021-04-28T09:38:14" }, - "changed_by_fk": 1, - "created_by_fk": 1, + "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"3__table\", \"viz_type\": \"table\", \"slice_id\": 24, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": null, \"time_range\": \"Last 10 years\", \"groupby\": [\"region\", \"district\", \"name\", \"processing_period_name\", \"reporting_timeliness\"], \"metrics\": [], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 115, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_15fyko0isfa_us7zq097ry\"}, \"row_limit\": 10000, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_pqrrkt098v_g5dfv1gol8i\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 0, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 24, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\"}", - "datasource_name": "reporting_rate_and_timeliness", - "datasource_id": 3, - "id": 24, - "created_on": { - "__datetime__": "2019-03-22T09:10:38" - }, - "perm": "[main].[reporting_rate_and_timeliness](id:3)", - "description": null, - "viz_type": "table" + "params": "{\"datasource\": \"3__table\", \"viz_type\": \"table\", \"slice_id\": 24, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": null, \"time_range\": \"Last 10 years\", \"groupby\": [\"region\", \"district\", \"name\", \"processing_period_name\", \"reporting_timeliness\"], \"metrics\": [], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 115, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_15fyko0isfa_us7zq097ry\"}, \"row_limit\": 10000, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_pqrrkt098v_g5dfv1gol8i\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 0, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 3, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\", \"import_time\": 1619599137}" } }, { "__Slice__": { - "datasource_type": "table", - "slice_name": "Orders Filter", - "changed_on": { - "__datetime__": "2019-03-22T11:53:08" - }, - "changed_by_fk": 1, - "created_by_fk": 1, - "cache_timeout": null, - "params": "{\"datasource\": \"1__table\", \"viz_type\": \"filter_box\", \"slice_id\": 25, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": null, \"time_range\": \"Last 10 years\", \"groupby\": [\"program_name\", \"processing_schedule_name\", \"processing_period_name\", \"region_name\", \"district_name\", \"facility_type_name\", \"full_product_name\"], \"metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 48, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_0wxl09vb8n5_tt9m1rtm7mo\"}, \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_urlfg8wr90c_z9b38gbpo5i\"}], \"date_filter\": false, \"instant_filtering\": true, \"show_sqla_time_granularity\": false, \"show_sqla_time_column\": false, \"show_druid_time_granularity\": false, \"show_druid_time_origin\": false, \"remote_id\": 25, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\"}", - "datasource_name": "stock_status_and_consumption", - "datasource_id": 1, - "id": 25, + "datasource_name": "adjustments", + "datasource_id": 2, + "id": 7, "created_on": { - "__datetime__": "2019-03-22T09:11:53" + "__datetime__": "2021-04-28T08:38:59" }, - "perm": "[main].[stock_status_and_consumption](id:1)", + "changed_by_fk": 1, + "perm": "[main].[adjustments](id:2)", "description": null, - "viz_type": "filter_box" - } - }, - { - "__Slice__": { + "viz_type": "filter_box", "datasource_type": "table", - "slice_name": "Emergency v. Regular Orders", + "slice_name": "Adjustments Filter", "changed_on": { - "__datetime__": "2019-03-22T11:53:08" + "__datetime__": "2021-04-28T09:38:14" }, - "changed_by_fk": 1, - "created_by_fk": 1, + "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"1__table\", \"viz_type\": \"pie\", \"slice_id\": 27, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"Last 10 years\", \"metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 45, \"column_name\": \"li_req_id\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"is_dttm\": false, \"type\": \"VARCHAR\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_li_req_id\"}, \"aggregate\": \"COUNT_DISTINCT\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": false, \"label\": \"COUNT_DISTINCT(li_req_id)\", \"optionName\": \"metric_v3b4y8nflpl_jdsj21s35wc\"}, \"adhoc_filters\": [{\"expressionType\": \"SIMPLE\", \"subject\": \"total_received_quantity\", \"operator\": \">\", \"comparator\": \"0\", \"clause\": \"WHERE\", \"sqlExpression\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_r64abbb4fc_m7cq22rpx27\"}, {\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_scifnfkl61_sih62czxip\"}], \"groupby\": [\"emergency_status\"], \"row_limit\": 10000, \"pie_label_type\": \"key_percent\", \"donut\": true, \"show_legend\": true, \"show_labels\": true, \"labels_outside\": true, \"color_scheme\": \"bnbColors\", \"remote_id\": 27, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\"}", - "datasource_name": "stock_status_and_consumption", - "datasource_id": 1, - "id": 27, - "created_on": { - "__datetime__": "2019-03-22T09:13:29" - }, - "perm": "[main].[stock_status_and_consumption](id:1)", - "description": null, - "viz_type": "pie" + "params": "{\"datasource\": \"2__table\", \"viz_type\": \"filter_box\", \"slice_id\": 21, \"url_params\": {}, \"granularity_sqla\": \"modified_date\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"Last 5 years\", \"groupby\": [\"program_name\", \"processing_period_name\", \"stock_adjustment_reason\", \"district_name\", \"region_name\", \"facility_type_name\", \"facility_name\", \"full_product_name\"], \"metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 88, \"column_name\": \"modified_date\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_modified_date\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(modified_date)\", \"optionName\": \"metric_oll674aoocn_zxtp1a7s9\"}, \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_duh66rp883m_o6niboguqbr\"}], \"date_filter\": false, \"instant_filtering\": true, \"show_sqla_time_granularity\": false, \"show_sqla_time_column\": false, \"show_druid_time_granularity\": false, \"show_druid_time_origin\": false, \"remote_id\": 7, \"datasource_name\": \"adjustments\", \"schema\": \"adjustments\", \"database_name\": \"main\", \"import_time\": 1619599137}" } }, { "__Slice__": { + "datasource_name": "adjustments", + "datasource_id": 2, + "id": 8, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "changed_by_fk": 1, + "perm": "[main].[adjustments](id:2)", + "description": null, + "viz_type": "table", "datasource_type": "table", - "slice_name": "Total Cost of Orders", + "slice_name": "Adjustment Summary", "changed_on": { - "__datetime__": "2019-03-22T11:53:08" + "__datetime__": "2021-04-28T09:38:14" }, - "changed_by_fk": 1, - "created_by_fk": 1, + "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"1__table\", \"viz_type\": \"table\", \"slice_id\": 28, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"Last 10 years\", \"groupby\": [\"facility_code\", \"facility_name\", \"facility_type_name\", \"district_name\", \"total_cost\"], \"metrics\": [], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 48, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_jxsrc32f8f_mvy80fgsqnf\"}, \"row_limit\": 500, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_r2ne44wfdz_f1sicwd007i\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 100, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 28, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\"}", - "datasource_name": "stock_status_and_consumption", - "datasource_id": 1, - "id": 28, - "created_on": { - "__datetime__": "2019-03-22T09:14:06" - }, - "perm": "[main].[stock_status_and_consumption](id:1)", - "description": null, - "viz_type": "table" + "params": "{\"datasource\": \"2__table\", \"viz_type\": \"table\", \"slice_id\": 22, \"url_params\": {}, \"granularity_sqla\": \"modified_date\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"Last 5 years\", \"groupby\": [\"facility_type_name\", \"facility_name\", \"facility_operator_name\", \"stock_adjustment_reason\", \"processing_period_name\"], \"metrics\": [{\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 75, \"column_name\": \"total_losses_and_adjustments\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": false, \"type\": \"DOUBLE PRECISION\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_total_losses_and_adjustments\"}, \"aggregate\": \"SUM\", \"sqlExpression\": null, \"hasCustomLabel\": true, \"fromFormData\": true, \"label\": \"Total Losses and Adjustments\", \"optionName\": \"metric_44er8bk1iis_r9zagd9tj9q\"}, {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 74, \"column_name\": \"quantity\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": false, \"type\": \"INTEGER\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_quantity\"}, \"aggregate\": \"SUM\", \"sqlExpression\": null, \"hasCustomLabel\": true, \"fromFormData\": true, \"label\": \"Quantity\", \"optionName\": \"metric_mpsnen9h9ws_ce08g8ry84r\"}], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 88, \"column_name\": \"modified_date\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_modified_date\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(modified_date)\", \"optionName\": \"metric_00ov9jltb8imi_a29mt18oj8\"}, \"row_limit\": 500, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_8vfkmnk53lw_pdhja0ye3h9\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 100, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 8, \"datasource_name\": \"adjustments\", \"schema\": \"adjustments\", \"database_name\": \"main\", \"import_time\": 1619599137}" } } ] @@ -460,108 +394,130 @@ }, { "__Dashboard__": { - "json_metadata": "{\"filter_immune_slices\": [], \"timed_refresh_immune_slices\": [], \"filter_immune_slice_fields\": {}, \"expanded_slices\": {}, \"default_filters\": \"{}\", \"remote_id\": 8}", + "slug": "stock_status", + "css": "", + "position_json": "{\"CHART--LgINf3I5d\": {\"children\": [], \"id\": \"CHART--LgINf3I5d\", \"meta\": {\"chartId\": 4, \"height\": 70, \"sliceName\": \"Stock Filter\", \"width\": 4}, \"type\": \"CHART\"}, \"CHART-7uM3Wv7xBt\": {\"children\": [], \"id\": \"CHART-7uM3Wv7xBt\", \"meta\": {\"chartId\": 3, \"height\": 70, \"sliceName\": \"Reporting Rate and Timeliness\", \"width\": 8}, \"type\": \"CHART\"}, \"CHART-IT9pkuKScA\": {\"children\": [], \"id\": \"CHART-IT9pkuKScA\", \"meta\": {\"chartId\": 5, \"height\": 50, \"sliceName\": \"Stock Status over Time\", \"width\": 8}, \"type\": \"CHART\"}, \"CHART-d2tBpcbV-b\": {\"children\": [], \"id\": \"CHART-d2tBpcbV-b\", \"meta\": {\"chartId\": 2, \"height\": 50, \"sliceName\": \"All-Time Reporting Timeliness\", \"width\": 4}, \"type\": \"CHART\"}, \"CHART-m9aMYFLQL3\": {\"children\": [], \"id\": \"CHART-m9aMYFLQL3\", \"meta\": {\"chartId\": 6, \"height\": 49, \"sliceName\": \"Stock Status Table\", \"width\": 12}, \"type\": \"CHART\"}, \"DASHBOARD_VERSION_KEY\": \"v2\", \"GRID_ID\": {\"children\": [\"ROW-A0s8aw1vz\", \"ROW-IFJ_tPxhWt\", \"ROW-zipNbHWEh\"], \"id\": \"GRID_ID\", \"type\": \"GRID\"}, \"HEADER_ID\": {\"id\": \"HEADER_ID\", \"meta\": {\"text\": \"Stock Status\"}, \"type\": \"HEADER\"}, \"ROOT_ID\": {\"children\": [\"GRID_ID\"], \"id\": \"ROOT_ID\", \"type\": \"ROOT\"}, \"ROW-A0s8aw1vz\": {\"children\": [\"CHART--LgINf3I5d\", \"CHART-7uM3Wv7xBt\"], \"id\": \"ROW-A0s8aw1vz\", \"meta\": {\"background\": \"BACKGROUND_TRANSPARENT\"}, \"type\": \"ROW\"}, \"ROW-IFJ_tPxhWt\": {\"children\": [\"CHART-d2tBpcbV-b\", \"CHART-IT9pkuKScA\"], \"id\": \"ROW-IFJ_tPxhWt\", \"meta\": {\"background\": \"BACKGROUND_TRANSPARENT\"}, \"type\": \"ROW\"}, \"ROW-zipNbHWEh\": {\"children\": [\"CHART-m9aMYFLQL3\"], \"id\": \"ROW-zipNbHWEh\", \"meta\": {\"background\": \"BACKGROUND_TRANSPARENT\"}, \"type\": \"ROW\"}}", + "id": 2, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "created_by_fk": null, + "json_metadata": "{\"filter_immune_slices\": [], \"timed_refresh_immune_slices\": [], \"filter_immune_slice_fields\": {}, \"expanded_slices\": {}, \"default_filters\": \"{}\", \"remote_id\": 2, \"import_time\": 1619599137}", "description": null, - "dashboard_title": "Adjustments", + "dashboard_title": "Stock Status", "changed_on": { - "__datetime__": "2019-03-22T09:47:56" + "__datetime__": "2021-04-28T09:28:43" }, "changed_by_fk": 1, - "slug": null, - "css": "", - "position_json": "{\"CHART-7bRWG8LSHr\":{\"children\":[],\"id\":\"CHART-7bRWG8LSHr\",\"meta\":{\"chartId\":22,\"height\":63,\"sliceName\":\"Adjustment Summary\",\"width\":8},\"type\":\"CHART\"},\"CHART-nNgDezViDk\":{\"children\":[],\"id\":\"CHART-nNgDezViDk\",\"meta\":{\"chartId\":24,\"height\":47,\"sliceName\":\"Reporting Rate and Timeliness\",\"width\":8},\"type\":\"CHART\"},\"CHART-pb3mGEd1Dr\":{\"children\":[],\"id\":\"CHART-pb3mGEd1Dr\",\"meta\":{\"chartId\":21,\"height\":63,\"sliceName\":\"Adjustments Filter\",\"width\":4},\"type\":\"CHART\"},\"CHART-yAWXcngznO\":{\"children\":[],\"id\":\"CHART-yAWXcngznO\",\"meta\":{\"chartId\":23,\"height\":47,\"sliceName\":\"All-Time Reporting Timeliness\",\"width\":4},\"type\":\"CHART\"},\"DASHBOARD_VERSION_KEY\":\"v2\",\"GRID_ID\":{\"children\":[\"ROW-lBkyeXpzg\",\"ROW-08VACKTqo\"],\"id\":\"GRID_ID\",\"type\":\"GRID\"},\"HEADER_ID\":{\"id\":\"HEADER_ID\",\"meta\":{\"text\":\"Adjustments\"},\"type\":\"HEADER\"},\"ROOT_ID\":{\"children\":[\"GRID_ID\"],\"id\":\"ROOT_ID\",\"type\":\"ROOT\"},\"ROW-08VACKTqo\":{\"children\":[\"CHART-yAWXcngznO\",\"CHART-nNgDezViDk\"],\"id\":\"ROW-08VACKTqo\",\"meta\":{\"background\":\"BACKGROUND_TRANSPARENT\"},\"type\":\"ROW\"},\"ROW-lBkyeXpzg\":{\"children\":[\"CHART-pb3mGEd1Dr\",\"CHART-7bRWG8LSHr\"],\"id\":\"ROW-lBkyeXpzg\",\"meta\":{\"background\":\"BACKGROUND_TRANSPARENT\"},\"type\":\"ROW\"}}", - "id": 8, - "created_on": { - "__datetime__": "2019-03-22T09:22:51" - }, - "created_by_fk": 1, "slices": [ { "__Slice__": { + "datasource_name": "reporting_rate_and_timeliness", + "datasource_id": 3, + "id": 2, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "changed_by_fk": null, + "perm": "[main].[reporting_rate_and_timeliness](id:3)", + "description": null, + "viz_type": "pie", "datasource_type": "table", - "slice_name": "Adjustments Filter", + "slice_name": "All-Time Reporting Timeliness", "changed_on": { - "__datetime__": "2019-03-22T11:53:08" + "__datetime__": "2021-04-28T08:38:59" }, - "changed_by_fk": 1, - "created_by_fk": 1, + "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"2__table\", \"viz_type\": \"filter_box\", \"slice_id\": 21, \"url_params\": {}, \"granularity_sqla\": \"modified_date\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"Last 5 years\", \"groupby\": [\"program_name\", \"processing_period_name\", \"stock_adjustment_reason\", \"district_name\", \"region_name\", \"facility_type_name\", \"facility_name\", \"full_product_name\"], \"metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 88, \"column_name\": \"modified_date\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_modified_date\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(modified_date)\", \"optionName\": \"metric_oll674aoocn_zxtp1a7s9\"}, \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_duh66rp883m_o6niboguqbr\"}], \"date_filter\": false, \"instant_filtering\": true, \"show_sqla_time_granularity\": false, \"show_sqla_time_column\": false, \"show_druid_time_granularity\": false, \"show_druid_time_origin\": false, \"remote_id\": 21, \"datasource_name\": \"adjustments\", \"schema\": \"adjustments\", \"database_name\": \"main\"}", - "datasource_name": "adjustments", - "datasource_id": 2, - "id": 21, - "created_on": { - "__datetime__": "2019-03-22T09:08:28" - }, - "perm": "[main].[adjustments](id:2)", - "description": null, - "viz_type": "filter_box" + "params": "{\"datasource\": \"3__table\", \"viz_type\": \"pie\", \"slice_id\": 23, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 100 years\", \"metric\": \"count\", \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_2vvao99u3we_ihcm3jj6p5\"}], \"groupby\": [\"reporting_timeliness\"], \"row_limit\": 25, \"pie_label_type\": \"key_percent\", \"donut\": true, \"show_legend\": true, \"show_labels\": true, \"labels_outside\": true, \"color_scheme\": \"bnbColors\", \"remote_id\": 2, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\", \"import_time\": 1619599137}" } }, { "__Slice__": { + "datasource_name": "reporting_rate_and_timeliness", + "datasource_id": 3, + "id": 3, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "changed_by_fk": 1, + "perm": "[main].[reporting_rate_and_timeliness](id:3)", + "description": null, + "viz_type": "table", "datasource_type": "table", - "slice_name": "Adjustment Summary", + "slice_name": "Reporting Rate and Timeliness", "changed_on": { - "__datetime__": "2019-03-22T11:53:08" + "__datetime__": "2021-04-28T09:38:14" }, - "changed_by_fk": 1, - "created_by_fk": 1, + "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"2__table\", \"viz_type\": \"table\", \"slice_id\": 22, \"url_params\": {}, \"granularity_sqla\": \"modified_date\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"Last 5 years\", \"groupby\": [\"facility_type_name\", \"facility_name\", \"facility_operator_name\", \"stock_adjustment_reason\", \"processing_period_name\"], \"metrics\": [{\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 75, \"column_name\": \"total_losses_and_adjustments\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": false, \"type\": \"DOUBLE PRECISION\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_total_losses_and_adjustments\"}, \"aggregate\": \"SUM\", \"sqlExpression\": null, \"hasCustomLabel\": true, \"fromFormData\": true, \"label\": \"Total Losses and Adjustments\", \"optionName\": \"metric_44er8bk1iis_r9zagd9tj9q\"}, {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 74, \"column_name\": \"quantity\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": false, \"type\": \"INTEGER\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_quantity\"}, \"aggregate\": \"SUM\", \"sqlExpression\": null, \"hasCustomLabel\": true, \"fromFormData\": true, \"label\": \"Quantity\", \"optionName\": \"metric_mpsnen9h9ws_ce08g8ry84r\"}], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 88, \"column_name\": \"modified_date\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_modified_date\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(modified_date)\", \"optionName\": \"metric_00ov9jltb8imi_a29mt18oj8\"}, \"row_limit\": 500, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_8vfkmnk53lw_pdhja0ye3h9\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 100, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 22, \"datasource_name\": \"adjustments\", \"schema\": \"adjustments\", \"database_name\": \"main\"}", - "datasource_name": "adjustments", - "datasource_id": 2, - "id": 22, - "created_on": { - "__datetime__": "2019-03-22T09:09:24" - }, - "perm": "[main].[adjustments](id:2)", - "description": null, - "viz_type": "table" + "params": "{\"datasource\": \"3__table\", \"viz_type\": \"table\", \"slice_id\": 24, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": null, \"time_range\": \"Last 10 years\", \"groupby\": [\"region\", \"district\", \"name\", \"processing_period_name\", \"reporting_timeliness\"], \"metrics\": [], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 115, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_15fyko0isfa_us7zq097ry\"}, \"row_limit\": 10000, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_pqrrkt098v_g5dfv1gol8i\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 0, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 3, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\", \"import_time\": 1619599137}" } }, { "__Slice__": { + "datasource_name": "stock_status_and_consumption", + "datasource_id": 1, + "id": 4, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "changed_by_fk": 1, + "perm": "[main].[stock_status_and_consumption](id:1)", + "description": null, + "viz_type": "filter_box", "datasource_type": "table", - "slice_name": "All-Time Reporting Timeliness", + "slice_name": "Stock Filter", "changed_on": { - "__datetime__": "2019-03-22T11:53:07" + "__datetime__": "2021-04-28T09:38:14" }, - "changed_by_fk": 1, - "created_by_fk": 1, + "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"3__table\", \"viz_type\": \"pie\", \"slice_id\": 23, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 100 years\", \"metric\": \"count\", \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_2vvao99u3we_ihcm3jj6p5\"}], \"groupby\": [\"reporting_timeliness\"], \"row_limit\": 25, \"pie_label_type\": \"key_percent\", \"donut\": true, \"show_legend\": true, \"show_labels\": true, \"labels_outside\": true, \"color_scheme\": \"bnbColors\", \"remote_id\": 23, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\"}", - "datasource_name": "reporting_rate_and_timeliness", - "datasource_id": 3, - "id": 23, - "created_on": { - "__datetime__": "2019-03-22T09:09:53" - }, - "perm": "[main].[reporting_rate_and_timeliness](id:3)", - "description": null, - "viz_type": "pie" + "params": "{\"datasource\": \"1__table\", \"viz_type\": \"filter_box\", \"slice_id\": 5, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": null, \"time_range\": \"No filter\", \"groupby\": [\"program_name\", \"region_name\", \"district_name\", \"processing_period_name\", \"processing_schedule_name\", \"facility_name\", \"facility_type_name\", \"full_product_name\", \"stock_status\"], \"metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 48, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_ihqxettg21k_jm402meto1d\"}, \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_28q84ybogif_baa55jgcghi\"}], \"date_filter\": false, \"instant_filtering\": true, \"show_sqla_time_granularity\": false, \"show_sqla_time_column\": false, \"show_druid_time_granularity\": false, \"show_druid_time_origin\": false, \"remote_id\": 4, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\", \"import_time\": 1619599137}" } }, { "__Slice__": { + "datasource_name": "stock_status_and_consumption", + "datasource_id": 1, + "id": 5, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "changed_by_fk": 1, + "perm": "[main].[stock_status_and_consumption](id:1)", + "description": null, + "viz_type": "bar", "datasource_type": "table", - "slice_name": "Reporting Rate and Timeliness", + "slice_name": "Stock Status over Time", "changed_on": { - "__datetime__": "2019-03-22T11:53:07" + "__datetime__": "2021-04-28T09:38:14" }, - "changed_by_fk": 1, - "created_by_fk": 1, + "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"3__table\", \"viz_type\": \"table\", \"slice_id\": 24, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": null, \"time_range\": \"Last 10 years\", \"groupby\": [\"region\", \"district\", \"name\", \"processing_period_name\", \"reporting_timeliness\"], \"metrics\": [], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 115, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_15fyko0isfa_us7zq097ry\"}, \"row_limit\": 10000, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_pqrrkt098v_g5dfv1gol8i\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 0, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 24, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\"}", - "datasource_name": "reporting_rate_and_timeliness", - "datasource_id": 3, - "id": 24, + "params": "{\"datasource\": \"1__table\", \"viz_type\": \"bar\", \"slice_id\": 5, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"No filter\", \"metrics\": [{\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 33, \"column_name\": \"facility_id\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"is_dttm\": false, \"type\": \"VARCHAR\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_facility_id\"}, \"aggregate\": \"COUNT_DISTINCT\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": false, \"label\": \"COUNT_DISTINCT(facility_id)\", \"optionName\": \"metric_phjempvrjz_mj5yuuzqiu\"}], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_pr44cna4lg_eixx1xqyf6a\"}], \"groupby\": [\"stock_status\"], \"timeseries_limit_metric\": null, \"order_desc\": true, \"contribution\": false, \"row_limit\": 10000, \"color_scheme\": \"bnbColors\", \"show_brush\": \"auto\", \"show_legend\": true, \"show_bar_value\": false, \"rich_tooltip\": true, \"bar_stacked\": true, \"line_interpolation\": \"linear\", \"show_controls\": false, \"bottom_margin\": \"auto\", \"x_axis_label\": \"\", \"x_ticks_layout\": \"auto\", \"x_axis_format\": \"smart_date\", \"x_axis_showminmax\": false, \"reduce_x_ticks\": false, \"y_axis_label\": \"Count of Facilities\", \"left_margin\": \"auto\", \"y_axis_showminmax\": false, \"y_log_scale\": false, \"y_axis_format\": \".3s\", \"y_axis_bounds\": [null, null], \"rolling_type\": \"None\", \"comparison_type\": \"values\", \"resample_how\": null, \"resample_rule\": null, \"resample_fillmethod\": null, \"annotation_layers\": [], \"remote_id\": 5, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\"}" + } + }, + { + "__Slice__": { + "datasource_name": "stock_status_and_consumption", + "datasource_id": 1, + "id": 6, "created_on": { - "__datetime__": "2019-03-22T09:10:38" + "__datetime__": "2021-04-28T08:38:59" }, - "perm": "[main].[reporting_rate_and_timeliness](id:3)", + "changed_by_fk": 1, + "perm": "[main].[stock_status_and_consumption](id:1)", "description": null, - "viz_type": "table" + "viz_type": "table", + "datasource_type": "table", + "slice_name": "Stock Status Table", + "changed_on": { + "__datetime__": "2021-04-28T09:38:14" + }, + "created_by_fk": null, + "cache_timeout": null, + "params": "{\"datasource\": \"1__table\", \"viz_type\": \"table\", \"slice_id\": 34, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 10 years\", \"groupby\": [\"region_name\", \"district_name\", \"processing_period_name\", \"facility_name\", \"full_product_name\", \"stock_status\"], \"metrics\": [{\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 12, \"column_name\": \"max_periods_of_stock\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"is_dttm\": false, \"type\": \"DOUBLE PRECISION\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_max_periods_of_stock\"}, \"aggregate\": \"SUM\", \"sqlExpression\": null, \"hasCustomLabel\": true, \"fromFormData\": true, \"label\": \"Periods of Stock\", \"optionName\": \"metric_84tw1d3kw5d_36tczcpk5lf\"}], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 48, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_7cqrg8tr37v_unag22emloa\"}, \"row_limit\": 10000, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_tssykol62m_syc48d1vjo\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": \"250\", \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 6, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\", \"import_time\": 1619599137}" } } ] @@ -569,130 +525,108 @@ }, { "__Dashboard__": { - "json_metadata": "{\"filter_immune_slices\": [], \"timed_refresh_immune_slices\": [], \"filter_immune_slice_fields\": {}, \"expanded_slices\": {}, \"default_filters\": \"{}\", \"remote_id\": 13}", + "slug": "consumption", + "css": "", + "position_json": "{\"CHART-TreiyZs86A\": {\"children\": [], \"id\": \"CHART-TreiyZs86A\", \"meta\": {\"chartId\": 13, \"height\": 50, \"sliceName\": \"Consumption Report\", \"width\": 5}, \"type\": \"CHART\"}, \"CHART-k3Q8bZoivs\": {\"children\": [], \"id\": \"CHART-k3Q8bZoivs\", \"meta\": {\"chartId\": 14, \"height\": 50, \"sliceName\": \"Total Adjusted Consumption per Facility\", \"width\": 7}, \"type\": \"CHART\"}, \"CHART-sLPzUKWaFt\": {\"children\": [], \"id\": \"CHART-sLPzUKWaFt\", \"meta\": {\"chartId\": 12, \"height\": 69, \"sliceName\": \"Logistics Summary Report\", \"width\": 8}, \"type\": \"CHART\"}, \"CHART-vWziXTcZlz\": {\"children\": [], \"id\": \"CHART-vWziXTcZlz\", \"meta\": {\"chartId\": 4, \"height\": 69, \"sliceName\": \"Stock Filter\", \"width\": 4}, \"type\": \"CHART\"}, \"DASHBOARD_VERSION_KEY\": \"v2\", \"GRID_ID\": {\"children\": [\"ROW-00JoR3Ly_\", \"ROW-6jFB8wGrT7\", \"ROW-6HHg95Bz9\"], \"id\": \"GRID_ID\", \"type\": \"GRID\"}, \"HEADER_ID\": {\"id\": \"HEADER_ID\", \"meta\": {\"text\": \"Consumption\"}, \"type\": \"HEADER\"}, \"MARKDOWN-hbo_igRlnf\": {\"children\": [], \"id\": \"MARKDOWN-hbo_igRlnf\", \"meta\": {\"code\": \"Use the filters in the top left to select a specific product, facility, or reporting period.\\n\\nNote that with the line graph below, you should select a specific product, otherwise it shows the aggregate of all products.\", \"height\": 13, \"width\": 12}, \"type\": \"MARKDOWN\"}, \"ROOT_ID\": {\"children\": [\"GRID_ID\"], \"id\": \"ROOT_ID\", \"type\": \"ROOT\"}, \"ROW-00JoR3Ly_\": {\"children\": [\"CHART-vWziXTcZlz\", \"CHART-sLPzUKWaFt\"], \"id\": \"ROW-00JoR3Ly_\", \"meta\": {\"background\": \"BACKGROUND_TRANSPARENT\"}, \"type\": \"ROW\"}, \"ROW-6HHg95Bz9\": {\"children\": [\"CHART-TreiyZs86A\", \"CHART-k3Q8bZoivs\"], \"id\": \"ROW-6HHg95Bz9\", \"meta\": {\"background\": \"BACKGROUND_TRANSPARENT\"}, \"type\": \"ROW\"}, \"ROW-6jFB8wGrT7\": {\"children\": [\"MARKDOWN-hbo_igRlnf\"], \"id\": \"ROW-6jFB8wGrT7\", \"meta\": {\"background\": \"BACKGROUND_TRANSPARENT\"}, \"type\": \"ROW\"}}", + "id": 5, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "created_by_fk": null, + "json_metadata": "{\"filter_immune_slices\": [], \"timed_refresh_immune_slices\": [], \"filter_immune_slice_fields\": {}, \"expanded_slices\": {}, \"default_filters\": \"{}\", \"remote_id\": 5, \"import_time\": 1619599137}", "description": null, - "dashboard_title": "Stock Status", + "dashboard_title": "Consumption", "changed_on": { - "__datetime__": "2019-03-22T09:43:58" + "__datetime__": "2021-04-28T09:28:28" }, "changed_by_fk": 1, - "slug": null, - "css": "", - "position_json": "{\"CHART--LgINf3I5d\":{\"children\":[],\"id\":\"CHART--LgINf3I5d\",\"meta\":{\"chartId\":29,\"height\":70,\"sliceName\":\"Stock Filter\",\"width\":4},\"type\":\"CHART\"},\"CHART-7uM3Wv7xBt\":{\"children\":[],\"id\":\"CHART-7uM3Wv7xBt\",\"meta\":{\"chartId\":24,\"height\":70,\"sliceName\":\"Reporting Rate and Timeliness\",\"width\":8},\"type\":\"CHART\"},\"CHART-IT9pkuKScA\":{\"children\":[],\"id\":\"CHART-IT9pkuKScA\",\"meta\":{\"chartId\":33,\"height\":50,\"sliceName\":\"Stock Status over Time\",\"width\":8},\"type\":\"CHART\"},\"CHART-d2tBpcbV-b\":{\"children\":[],\"id\":\"CHART-d2tBpcbV-b\",\"meta\":{\"chartId\":23,\"height\":50,\"sliceName\":\"All-Time Reporting Timeliness\",\"width\":4},\"type\":\"CHART\"},\"CHART-m9aMYFLQL3\":{\"children\":[],\"id\":\"CHART-m9aMYFLQL3\",\"meta\":{\"chartId\":34,\"height\":49,\"sliceName\":\"Stock Status Table\",\"width\":12},\"type\":\"CHART\"},\"DASHBOARD_VERSION_KEY\":\"v2\",\"GRID_ID\":{\"children\":[\"ROW-A0s8aw1vz\",\"ROW-IFJ_tPxhWt\",\"ROW-zipNbHWEh\"],\"id\":\"GRID_ID\",\"type\":\"GRID\"},\"HEADER_ID\":{\"id\":\"HEADER_ID\",\"meta\":{\"text\":\"Stock Status\"},\"type\":\"HEADER\"},\"ROOT_ID\":{\"children\":[\"GRID_ID\"],\"id\":\"ROOT_ID\",\"type\":\"ROOT\"},\"ROW-A0s8aw1vz\":{\"children\":[\"CHART--LgINf3I5d\",\"CHART-7uM3Wv7xBt\"],\"id\":\"ROW-A0s8aw1vz\",\"meta\":{\"background\":\"BACKGROUND_TRANSPARENT\"},\"type\":\"ROW\"},\"ROW-IFJ_tPxhWt\":{\"children\":[\"CHART-d2tBpcbV-b\",\"CHART-IT9pkuKScA\"],\"id\":\"ROW-IFJ_tPxhWt\",\"meta\":{\"background\":\"BACKGROUND_TRANSPARENT\"},\"type\":\"ROW\"},\"ROW-zipNbHWEh\":{\"children\":[\"CHART-m9aMYFLQL3\"],\"id\":\"ROW-zipNbHWEh\",\"meta\":{\"background\":\"BACKGROUND_TRANSPARENT\"},\"type\":\"ROW\"}}", - "id": 13, - "created_on": { - "__datetime__": "2019-03-22T09:38:09" - }, - "created_by_fk": 1, "slices": [ { "__Slice__": { - "datasource_type": "table", - "slice_name": "Stock Filter", - "changed_on": { - "__datetime__": "2019-03-22T11:53:07" - }, - "changed_by_fk": 1, - "created_by_fk": 1, - "cache_timeout": null, - "params": "{\"datasource\": \"1__table\", \"viz_type\": \"filter_box\", \"slice_id\": 29, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": null, \"time_range\": \"Last 3 years\", \"groupby\": [\"program_name\", \"region_name\", \"district_name\", \"processing_period_name\", \"processing_schedule_name\", \"facility_name\", \"facility_type_name\", \"full_product_name\", \"stock_status\"], \"metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 48, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_ihqxettg21k_jm402meto1d\"}, \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_28q84ybogif_baa55jgcghi\"}], \"date_filter\": false, \"instant_filtering\": true, \"show_sqla_time_granularity\": false, \"show_sqla_time_column\": false, \"show_druid_time_granularity\": false, \"show_druid_time_origin\": false, \"remote_id\": 29, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\"}", "datasource_name": "stock_status_and_consumption", "datasource_id": 1, - "id": 29, + "id": 4, "created_on": { - "__datetime__": "2019-03-22T09:14:30" + "__datetime__": "2021-04-28T08:38:59" }, + "changed_by_fk": 1, "perm": "[main].[stock_status_and_consumption](id:1)", "description": null, - "viz_type": "filter_box" - } - }, - { - "__Slice__": { + "viz_type": "filter_box", "datasource_type": "table", - "slice_name": "Reporting Rate and Timeliness", + "slice_name": "Stock Filter", "changed_on": { - "__datetime__": "2019-03-22T11:53:07" + "__datetime__": "2021-04-28T09:38:14" }, - "changed_by_fk": 1, - "created_by_fk": 1, + "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"3__table\", \"viz_type\": \"table\", \"slice_id\": 24, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": null, \"time_range\": \"Last 10 years\", \"groupby\": [\"region\", \"district\", \"name\", \"processing_period_name\", \"reporting_timeliness\"], \"metrics\": [], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 115, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_15fyko0isfa_us7zq097ry\"}, \"row_limit\": 10000, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_pqrrkt098v_g5dfv1gol8i\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 0, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 24, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\"}", - "datasource_name": "reporting_rate_and_timeliness", - "datasource_id": 3, - "id": 24, - "created_on": { - "__datetime__": "2019-03-22T09:10:38" - }, - "perm": "[main].[reporting_rate_and_timeliness](id:3)", - "description": null, - "viz_type": "table" + "params": "{\"datasource\": \"1__table\", \"viz_type\": \"filter_box\", \"slice_id\": 5, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": null, \"time_range\": \"No filter\", \"groupby\": [\"program_name\", \"region_name\", \"district_name\", \"processing_period_name\", \"processing_schedule_name\", \"facility_name\", \"facility_type_name\", \"full_product_name\", \"stock_status\"], \"metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 48, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_ihqxettg21k_jm402meto1d\"}, \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_28q84ybogif_baa55jgcghi\"}], \"date_filter\": false, \"instant_filtering\": true, \"show_sqla_time_granularity\": false, \"show_sqla_time_column\": false, \"show_druid_time_granularity\": false, \"show_druid_time_origin\": false, \"remote_id\": 4, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\", \"import_time\": 1619599137}" } }, { "__Slice__": { + "datasource_name": "stock_status_and_consumption", + "datasource_id": 1, + "id": 12, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "changed_by_fk": 1, + "perm": "[main].[stock_status_and_consumption](id:1)", + "description": null, + "viz_type": "table", "datasource_type": "table", - "slice_name": "All-Time Reporting Timeliness", + "slice_name": "Logistics Summary Report", "changed_on": { - "__datetime__": "2019-03-22T11:53:07" + "__datetime__": "2021-04-28T09:38:15" }, - "changed_by_fk": 1, - "created_by_fk": 1, + "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"3__table\", \"viz_type\": \"pie\", \"slice_id\": 23, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 100 years\", \"metric\": \"count\", \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_2vvao99u3we_ihcm3jj6p5\"}], \"groupby\": [\"reporting_timeliness\"], \"row_limit\": 25, \"pie_label_type\": \"key_percent\", \"donut\": true, \"show_legend\": true, \"show_labels\": true, \"labels_outside\": true, \"color_scheme\": \"bnbColors\", \"remote_id\": 23, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\"}", - "datasource_name": "reporting_rate_and_timeliness", - "datasource_id": 3, - "id": 23, - "created_on": { - "__datetime__": "2019-03-22T09:09:53" - }, - "perm": "[main].[reporting_rate_and_timeliness](id:3)", - "description": null, - "viz_type": "pie" + "params": "{\"datasource\": \"1__table\", \"viz_type\": \"table\", \"slice_id\": 30, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"Last 10 years\", \"groupby\": [\"facility_name\", \"product_code\", \"full_product_name\", \"processing_period_name\", \"beginning_balance\", \"total_received_quantity\", \"adjusted_consumption\", \"total_losses_and_adjustments\", \"closing_balance\", \"order_quantity\"], \"metrics\": [], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 48, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_snhnk2qk72_toerklflce\"}, \"row_limit\": 500, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_oxmpiqw9mv_6im8r4zrkjs\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 100, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 12, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\", \"import_time\": 1619599137}" } }, { "__Slice__": { - "datasource_type": "table", - "slice_name": "Stock Status over Time", - "changed_on": { - "__datetime__": "2019-03-22T11:53:08" - }, - "changed_by_fk": 1, - "created_by_fk": 1, - "cache_timeout": null, - "params": "{\"datasource\": \"1__table\", \"viz_type\": \"bar\", \"slice_id\": 33, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"Last 3 years\", \"metrics\": [{\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 33, \"column_name\": \"facility_id\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"is_dttm\": false, \"type\": \"VARCHAR\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_facility_id\"}, \"aggregate\": \"COUNT_DISTINCT\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": false, \"label\": \"COUNT_DISTINCT(facility_id)\", \"optionName\": \"metric_phjempvrjz_mj5yuuzqiu\"}], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_pr44cna4lg_eixx1xqyf6a\"}], \"groupby\": [\"stock_status\"], \"timeseries_limit_metric\": null, \"order_desc\": true, \"contribution\": false, \"row_limit\": 10000, \"color_scheme\": \"bnbColors\", \"show_brush\": \"auto\", \"show_legend\": true, \"show_bar_value\": false, \"rich_tooltip\": true, \"bar_stacked\": true, \"line_interpolation\": \"linear\", \"show_controls\": false, \"bottom_margin\": \"auto\", \"x_axis_label\": \"\", \"x_ticks_layout\": \"auto\", \"x_axis_format\": \"smart_date\", \"x_axis_showminmax\": false, \"reduce_x_ticks\": false, \"y_axis_label\": \"Count of Facilities\", \"left_margin\": \"auto\", \"y_axis_showminmax\": false, \"y_log_scale\": false, \"y_axis_format\": \".3s\", \"y_axis_bounds\": [null, null], \"rolling_type\": \"None\", \"comparison_type\": \"values\", \"resample_how\": null, \"resample_rule\": null, \"resample_fillmethod\": null, \"annotation_layers\": [], \"remote_id\": 33, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\"}", "datasource_name": "stock_status_and_consumption", "datasource_id": 1, - "id": 33, + "id": 13, "created_on": { - "__datetime__": "2019-03-22T09:18:16" + "__datetime__": "2021-04-28T08:38:59" }, + "changed_by_fk": 1, "perm": "[main].[stock_status_and_consumption](id:1)", "description": null, - "viz_type": "bar" - } - }, - { - "__Slice__": { + "viz_type": "table", "datasource_type": "table", - "slice_name": "Stock Status Table", + "slice_name": "Consumption Report", "changed_on": { - "__datetime__": "2019-03-22T11:53:08" + "__datetime__": "2021-04-28T09:38:15" }, - "changed_by_fk": 1, - "created_by_fk": 1, + "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"1__table\", \"viz_type\": \"table\", \"slice_id\": 34, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 10 years\", \"groupby\": [\"region_name\", \"district_name\", \"processing_period_name\", \"facility_name\", \"full_product_name\", \"stock_status\"], \"metrics\": [{\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 12, \"column_name\": \"max_periods_of_stock\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"is_dttm\": false, \"type\": \"DOUBLE PRECISION\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_max_periods_of_stock\"}, \"aggregate\": \"SUM\", \"sqlExpression\": null, \"hasCustomLabel\": true, \"fromFormData\": true, \"label\": \"Periods of Stock\", \"optionName\": \"metric_84tw1d3kw5d_36tczcpk5lf\"}], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 48, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_7cqrg8tr37v_unag22emloa\"}, \"row_limit\": 10000, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_tssykol62m_syc48d1vjo\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": \"250\", \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 34, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\"}", + "params": "{\"datasource\": \"1__table\", \"viz_type\": \"table\", \"slice_id\": 31, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"No filter\", \"groupby\": [\"product_code\", \"full_product_name\", \"total_consumed_quantity\", \"adjusted_consumption\"], \"metrics\": [], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 48, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_ili8xba86dd_mosr7j1p5qq\"}, \"row_limit\": 500, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_30wz7n80cny_44ipe2jz0dw\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 100, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 13, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\", \"import_time\": 1619599137}" + } + }, + { + "__Slice__": { "datasource_name": "stock_status_and_consumption", "datasource_id": 1, - "id": 34, + "id": 14, "created_on": { - "__datetime__": "2019-03-22T09:18:49" + "__datetime__": "2021-04-28T08:38:59" }, + "changed_by_fk": 1, "perm": "[main].[stock_status_and_consumption](id:1)", "description": null, - "viz_type": "table" + "viz_type": "line", + "datasource_type": "table", + "slice_name": "Total Adjusted Consumption per Facility", + "changed_on": { + "__datetime__": "2021-04-28T09:38:15" + }, + "created_by_fk": null, + "cache_timeout": null, + "params": "{\"datasource\": \"1__table\", \"viz_type\": \"line\", \"slice_id\": 32, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1M\", \"time_range\": \"No filter\", \"metrics\": [{\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 1, \"column_name\": \"adjusted_consumption\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"is_dttm\": false, \"type\": \"DOUBLE PRECISION\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_adjusted_consumption\"}, \"aggregate\": \"SUM\", \"sqlExpression\": null, \"hasCustomLabel\": true, \"fromFormData\": true, \"label\": \"Adjusted Consumption\", \"optionName\": \"metric_f3sjc5l6hbr_be6zwd326cj\"}], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_c5ravlwwoy8_sh2pgneuu6o\"}], \"groupby\": [\"facility_name\"], \"timeseries_limit_metric\": null, \"order_desc\": true, \"contribution\": false, \"row_limit\": 10000, \"color_scheme\": \"bnbColors\", \"show_brush\": \"no\", \"send_time_range\": false, \"show_legend\": true, \"rich_tooltip\": true, \"show_markers\": false, \"line_interpolation\": \"linear\", \"x_axis_label\": \"\", \"bottom_margin\": \"auto\", \"x_ticks_layout\": \"auto\", \"x_axis_format\": \"smart_date\", \"x_axis_showminmax\": false, \"y_axis_label\": \"\", \"left_margin\": \"auto\", \"y_axis_showminmax\": false, \"y_log_scale\": false, \"y_axis_format\": \".3s\", \"y_axis_bounds\": [null, null], \"rolling_type\": \"None\", \"comparison_type\": \"values\", \"resample_how\": null, \"resample_rule\": null, \"resample_fillmethod\": null, \"annotation_layers\": [], \"remote_id\": 14, \"datasource_name\": \"stock_status_and_consumption\", \"schema\": \"stock_status_and_consumption\", \"database_name\": \"main\", \"import_time\": 1619599137}" } } ] @@ -700,42 +634,108 @@ }, { "__Dashboard__": { - "json_metadata": "{\"filter_immune_slices\": [], \"timed_refresh_immune_slices\": [], \"filter_immune_slice_fields\": {}, \"expanded_slices\": {}, \"default_filters\": \"{}\", \"remote_id\": 1, \"import_time\": 1553240684}", - "description": null, - "dashboard_title": "Administrative", - "changed_on": { - "__datetime__": "2019-03-22T07:44:46" - }, - "changed_by_fk": null, - "slug": null, + "slug": "reporting_rate_and_timeliness", "css": "", - "position_json": "{\"CHART-EVVSjHFIHN\": {\"children\": [], \"id\": \"CHART-EVVSjHFIHN\", \"meta\": {\"chartId\": 1, \"height\": 89, \"sliceName\": \"Facility List\", \"width\": 12}, \"type\": \"CHART\"}, \"DASHBOARD_VERSION_KEY\": \"v2\", \"GRID_ID\": {\"children\": [\"ROW-cQ0JwmC8b\"], \"id\": \"GRID_ID\", \"type\": \"GRID\"}, \"HEADER_ID\": {\"id\": \"HEADER_ID\", \"meta\": {\"text\": \"Administrative\"}, \"type\": \"HEADER\"}, \"ROOT_ID\": {\"children\": [\"GRID_ID\"], \"id\": \"ROOT_ID\", \"type\": \"ROOT\"}, \"ROW-cQ0JwmC8b\": {\"children\": [\"CHART-EVVSjHFIHN\"], \"id\": \"ROW-cQ0JwmC8b\", \"meta\": {\"background\": \"BACKGROUND_TRANSPARENT\"}, \"type\": \"ROW\"}}", - "id": 1, + "position_json": "{\"CHART-3XaEn_AjRI\": {\"children\": [], \"id\": \"CHART-3XaEn_AjRI\", \"meta\": {\"chartId\": 3, \"height\": 46, \"sliceName\": \"Reporting Rate and Timeliness\", \"width\": 12}, \"type\": \"CHART\"}, \"CHART-PdVqnXV-Q4\": {\"children\": [], \"id\": \"CHART-PdVqnXV-Q4\", \"meta\": {\"chartId\": 17, \"height\": 56, \"sliceName\": \"Expected Facilities per Period\", \"width\": 4}, \"type\": \"CHART\"}, \"CHART-bDIq2bI0KP\": {\"children\": [], \"id\": \"CHART-bDIq2bI0KP\", \"meta\": {\"chartId\": 16, \"height\": 56, \"sliceName\": \"Reporting Rate Filter\", \"width\": 4}, \"type\": \"CHART\"}, \"CHART-vQsFBEa-Sm\": {\"children\": [], \"id\": \"CHART-vQsFBEa-Sm\", \"meta\": {\"chartId\": 2, \"height\": 56, \"sliceName\": \"All-Time Reporting Timeliness\", \"width\": 4}, \"type\": \"CHART\"}, \"DASHBOARD_VERSION_KEY\": \"v2\", \"GRID_ID\": {\"children\": [\"ROW-SvSDtqQSP\", \"ROW-2ZW3FYstKJ\"], \"id\": \"GRID_ID\", \"type\": \"GRID\"}, \"HEADER_ID\": {\"id\": \"HEADER_ID\", \"meta\": {\"text\": \"Reporting Rate and Timeliness\"}, \"type\": \"HEADER\"}, \"ROOT_ID\": {\"children\": [\"GRID_ID\"], \"id\": \"ROOT_ID\", \"type\": \"ROOT\"}, \"ROW-2ZW3FYstKJ\": {\"children\": [\"CHART-3XaEn_AjRI\"], \"id\": \"ROW-2ZW3FYstKJ\", \"meta\": {\"background\": \"BACKGROUND_TRANSPARENT\"}, \"type\": \"ROW\"}, \"ROW-SvSDtqQSP\": {\"children\": [\"CHART-bDIq2bI0KP\", \"CHART-vQsFBEa-Sm\", \"CHART-PdVqnXV-Q4\"], \"id\": \"ROW-SvSDtqQSP\", \"meta\": {\"background\": \"BACKGROUND_TRANSPARENT\"}, \"type\": \"ROW\"}}", + "id": 7, "created_on": { - "__datetime__": "2019-03-22T07:44:46" + "__datetime__": "2021-04-28T08:38:59" }, "created_by_fk": null, + "json_metadata": "{\"filter_immune_slices\": [], \"timed_refresh_immune_slices\": [], \"filter_immune_slice_fields\": {}, \"expanded_slices\": {}, \"default_filters\": \"{}\", \"remote_id\": 7, \"import_time\": 1619599137}", + "description": null, + "dashboard_title": "Reporting Rate and Timeliness", + "changed_on": { + "__datetime__": "2021-04-28T09:27:25" + }, + "changed_by_fk": 1, "slices": [ { "__Slice__": { - "datasource_type": "table", - "slice_name": "Facility List", + "datasource_name": "reporting_rate_and_timeliness", + "datasource_id": 3, + "id": 2, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "changed_by_fk": null, + "perm": "[main].[reporting_rate_and_timeliness](id:3)", + "description": null, + "viz_type": "pie", + "datasource_type": "table", + "slice_name": "All-Time Reporting Timeliness", "changed_on": { - "__datetime__": "2019-03-22T11:53:08" + "__datetime__": "2021-04-28T08:38:59" + }, + "created_by_fk": null, + "cache_timeout": null, + "params": "{\"datasource\": \"3__table\", \"viz_type\": \"pie\", \"slice_id\": 23, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 100 years\", \"metric\": \"count\", \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_2vvao99u3we_ihcm3jj6p5\"}], \"groupby\": [\"reporting_timeliness\"], \"row_limit\": 25, \"pie_label_type\": \"key_percent\", \"donut\": true, \"show_legend\": true, \"show_labels\": true, \"labels_outside\": true, \"color_scheme\": \"bnbColors\", \"remote_id\": 2, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\", \"import_time\": 1619599137}" + } + }, + { + "__Slice__": { + "datasource_name": "reporting_rate_and_timeliness", + "datasource_id": 3, + "id": 3, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" }, "changed_by_fk": 1, + "perm": "[main].[reporting_rate_and_timeliness](id:3)", + "description": null, + "viz_type": "table", + "datasource_type": "table", + "slice_name": "Reporting Rate and Timeliness", + "changed_on": { + "__datetime__": "2021-04-28T09:38:14" + }, "created_by_fk": null, "cache_timeout": null, - "params": "{\"datasource\": \"30__table\", \"viz_type\": \"table\", \"url_params\": {}, \"granularity_sqla\": null, \"time_grain_sqla\": null, \"time_range\": \"No filter\", \"groupby\": [\"code\", \"name\", \"type\", \"district\", \"operator_name\"], \"metrics\": [], \"percent_metrics\": [], \"timeseries_limit_metric\": null, \"row_limit\": 10000, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 100, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 1, \"datasource_name\": \"facilities\", \"schema\": \"facilities\", \"database_name\": \"main\", \"import_time\": 1553240684}", - "datasource_name": "facilities", - "datasource_id": 30, - "id": 1, + "params": "{\"datasource\": \"3__table\", \"viz_type\": \"table\", \"slice_id\": 24, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": null, \"time_range\": \"Last 10 years\", \"groupby\": [\"region\", \"district\", \"name\", \"processing_period_name\", \"reporting_timeliness\"], \"metrics\": [], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 115, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_15fyko0isfa_us7zq097ry\"}, \"row_limit\": 10000, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_pqrrkt098v_g5dfv1gol8i\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 0, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 3, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\", \"import_time\": 1619599137}" + } + }, + { + "__Slice__": { + "datasource_name": "reporting_rate_and_timeliness", + "datasource_id": 3, + "id": 16, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "changed_by_fk": 1, + "perm": "[main].[reporting_rate_and_timeliness](id:3)", + "description": null, + "viz_type": "filter_box", + "datasource_type": "table", + "slice_name": "Reporting Rate Filter", + "changed_on": { + "__datetime__": "2021-04-28T09:38:15" + }, + "created_by_fk": null, + "cache_timeout": null, + "params": "{\"datasource\": \"3__table\", \"viz_type\": \"filter_box\", \"slice_id\": 36, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 100 years\", \"groupby\": [\"region\", \"district\", \"name\", \"program_name\", \"processing_period_name\", \"processing_schedule_name\", \"reporting_timeliness\"], \"metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 115, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": true, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_p2r4x1ybys_v8e6c02t7c\"}, \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_hyqlv8r3mr_0x5h2zmah809\"}], \"date_filter\": false, \"instant_filtering\": true, \"show_sqla_time_granularity\": false, \"show_sqla_time_column\": false, \"show_druid_time_granularity\": false, \"show_druid_time_origin\": false, \"remote_id\": 16, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\", \"import_time\": 1619599137}" + } + }, + { + "__Slice__": { + "datasource_name": "reporting_rate_and_timeliness", + "datasource_id": 3, + "id": 17, "created_on": { - "__datetime__": "2019-03-22T07:44:46" + "__datetime__": "2021-04-28T08:38:59" }, - "perm": "[main].[facilities](id:30)", + "changed_by_fk": 1, + "perm": "[main].[reporting_rate_and_timeliness](id:3)", "description": null, - "viz_type": "table" + "viz_type": "table", + "datasource_type": "table", + "slice_name": "Expected Facilities per Period", + "changed_on": { + "__datetime__": "2021-04-28T09:38:15" + }, + "created_by_fk": null, + "cache_timeout": null, + "params": "{\"datasource\": \"3__table\", \"viz_type\": \"table\", \"slice_id\": 37, \"url_params\": {}, \"granularity_sqla\": \"processing_period_enddate\", \"time_grain_sqla\": \"P1D\", \"time_range\": \"Last 5 years\", \"groupby\": [\"processing_period_name\"], \"metrics\": [{\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 110, \"column_name\": \"facility_id\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": true, \"groupby\": true, \"is_dttm\": false, \"type\": \"VARCHAR\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_facility_id\"}, \"aggregate\": \"COUNT_DISTINCT\", \"sqlExpression\": null, \"hasCustomLabel\": true, \"fromFormData\": true, \"label\": \"Expected Facilities\", \"optionName\": \"metric_dyapxkgq3vt_9fryd0cvo7s\"}], \"percent_metrics\": [], \"timeseries_limit_metric\": {\"expressionType\": \"SIMPLE\", \"column\": {\"id\": 115, \"column_name\": \"processing_period_enddate\", \"verbose_name\": null, \"description\": null, \"expression\": \"\", \"filterable\": false, \"groupby\": false, \"is_dttm\": true, \"type\": \"DATE\", \"database_expression\": null, \"python_date_format\": null, \"optionName\": \"_col_processing_period_enddate\"}, \"aggregate\": \"MAX\", \"sqlExpression\": null, \"hasCustomLabel\": false, \"fromFormData\": false, \"label\": \"MAX(processing_period_enddate)\", \"optionName\": \"metric_vrhjvltam3_gox7h9tb8ok\"}, \"row_limit\": 10000, \"include_time\": false, \"order_desc\": true, \"all_columns\": [], \"order_by_cols\": [], \"adhoc_filters\": [{\"expressionType\": \"SQL\", \"sqlExpression\": \"username = '{{ current_username() }}'\", \"clause\": \"WHERE\", \"subject\": null, \"operator\": null, \"comparator\": null, \"fromFormData\": true, \"filterOptionName\": \"filter_inff4fsodr_84vnpr8mbba\"}], \"table_timestamp_format\": \"%Y-%m-%d %H:%M:%S\", \"page_length\": 0, \"include_search\": true, \"table_filter\": false, \"align_pn\": false, \"color_pn\": true, \"remote_id\": 17, \"datasource_name\": \"reporting_rate_and_timeliness\", \"schema\": \"reporting_rate_and_timeliness\", \"database_name\": \"main\", \"import_time\": 1619599137}" } } ] @@ -754,104 +754,80 @@ "user_id": null, "cache_timeout": null, "created_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:44" }, "schema": "", - "params": "{\"remote_id\": 30, \"database_name\": \"main\", \"import_time\": 1553240684}", + "params": "{\"remote_id\": 3, \"database_name\": \"main\", \"import_time\": 1619599137}", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:58" }, - "sql": null, - "perm": "[main].[facilities](id:30)", - "id": 30, + "sql": "", + "perm": "[main].[reporting_rate_and_timeliness](id:3)", + "id": 3, "is_sqllab_view": false, - "table_name": "facilities", - "description": null, - "template_params": null, - "main_dttm_col": "golivedate", - "default_endpoint": null, + "table_name": "reporting_rate_and_timeliness", + "description": "", + "template_params": "", + "main_dttm_col": "processing_period_enddate", + "default_endpoint": "", "created_by_fk": null, "database": { "__Database__": { - "allow_csv_upload": true, - "database_name": "main", - "created_by_fk": null, "allow_ctas": false, "sqlalchemy_uri": "postgresql+psycopg2://postgres:XXXXXXXXXX@db:5432/open_lmis_reporting", "changed_by_fk": null, "allow_dml": false, - "password": "p@ssw0rd", + "password": null, "force_ctas_schema": null, "cache_timeout": null, - "allow_multi_schema_metadata_fetch": true, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:43" }, + "allow_multi_schema_metadata_fetch": false, "select_as_create_table_as": false, + "extra": "{\r\n \"metadata_params\": {},\r\n \"engine_params\": {}\r\n}\r\n", "changed_on": { - "__datetime__": "2019-03-22T07:44:53" + "__datetime__": "2021-04-28T08:39:04" }, - "extra": "{\r\n \"metadata_params\": {},\r\n \"engine_params\": {}\r\n}\r\n", "expose_in_sqllab": true, - "perm": "[main].(id:1)", "id": 1, + "perm": "[main].(id:1)", "allow_run_sync": true, "verbose_name": null, "impersonate_user": false, - "allow_run_async": false + "allow_run_async": false, + "database_name": "main", + "created_by_fk": null, + "allow_csv_upload": true } }, - "metrics": [ - { - "__SqlMetric__": { - "metric_name": "count", - "changed_on": { - "__datetime__": "2019-03-22T07:44:35" - }, - "changed_by_fk": null, - "expression": "COUNT(*)", - "d3format": null, - "description": null, - "verbose_name": "COUNT(*)", - "id": 146, - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, - "table_id": 30, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "count" - } - } - ], "columns": [ { "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:44" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, "avg": false, - "id": 326, + "id": 109, "python_date_format": null, "max": false, - "column_name": "code", + "column_name": "facility_active_status", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": true, + "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, - "type": "VARCHAR(255)", - "table_id": 30, - "groupby": true, + "type": "BOOLEAN", + "table_id": 3, + "groupby": false, "is_dttm": false, "count_distinct": false } @@ -860,17 +836,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:44" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, "avg": false, - "id": 327, + "id": 111, "python_date_format": null, "max": false, - "column_name": "comment", + "column_name": "id", "database_expression": null, "min": false, "verbose_name": null, @@ -878,9 +851,12 @@ "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, - "type": "TEXT", - "table_id": 30, + "type": "UUID", + "table_id": 3, "groupby": false, "is_dttm": false, "count_distinct": false @@ -890,29 +866,29 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:45" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, "avg": false, - "id": 328, + "id": 115, "python_date_format": null, "max": false, - "column_name": "country", + "column_name": "processing_period_enddate", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": true, + "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, "description": null, - "type": "VARCHAR(255)", - "table_id": 30, - "groupby": true, - "is_dttm": false, + "type": "DATE", + "table_id": 3, + "groupby": false, + "is_dttm": true, "count_distinct": false } }, @@ -920,17 +896,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:45" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, "avg": false, - "id": 329, + "id": 121, "python_date_format": null, "max": false, - "column_name": "description", + "column_name": "program_active_status", "database_expression": null, "min": false, "verbose_name": null, @@ -938,9 +911,12 @@ "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, "description": null, - "type": "TEXT", - "table_id": 30, + "type": "BOOLEAN", + "table_id": 3, "groupby": false, "is_dttm": false, "count_distinct": false @@ -950,28 +926,28 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:45" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, "avg": false, - "id": 330, + "id": 126, "python_date_format": null, "max": false, - "column_name": "district", + "column_name": "req_id", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": true, + "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, "description": null, - "type": "VARCHAR(255)", - "table_id": 30, - "groupby": true, + "type": "UUID", + "table_id": 3, + "groupby": false, "is_dttm": false, "count_distinct": false } @@ -980,17 +956,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:45" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, "avg": false, - "id": 331, + "id": 127, "python_date_format": null, "max": false, - "column_name": "enabled", + "column_name": "status_change_date", "database_expression": null, "min": false, "verbose_name": null, @@ -998,11 +971,14 @@ "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, "description": null, - "type": "BOOLEAN", - "table_id": 30, + "type": "TIMESTAMP WITH TIME ZONE", + "table_id": 3, "groupby": false, - "is_dttm": false, + "is_dttm": true, "count_distinct": false } }, @@ -1010,17 +986,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:45" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, "avg": false, - "id": 332, + "id": 130, "python_date_format": null, "max": false, - "column_name": "extradata", + "column_name": "supported_program_startdate", "database_expression": null, "min": false, "verbose_name": null, @@ -1028,11 +1001,14 @@ "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, "description": null, - "type": "JSON", - "table_id": 30, + "type": "DATE", + "table_id": 3, "groupby": false, - "is_dttm": false, + "is_dttm": true, "count_distinct": false } }, @@ -1040,17 +1016,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, "avg": false, - "id": 333, + "id": 105, "python_date_format": null, "max": false, - "column_name": "godowndate", + "column_name": "created_date", "database_expression": null, "min": false, "verbose_name": null, @@ -1058,9 +1031,12 @@ "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, "type": "DATE", - "table_id": 30, + "table_id": 3, "groupby": false, "is_dttm": true, "count_distinct": false @@ -1070,29 +1046,29 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, "avg": false, - "id": 334, + "id": 110, "python_date_format": null, "max": false, - "column_name": "golivedate", + "column_name": "facility_id", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, - "type": "DATE", - "table_id": 30, - "groupby": false, - "is_dttm": true, + "type": "VARCHAR", + "table_id": 3, + "groupby": true, + "is_dttm": false, "count_distinct": false } }, @@ -1100,17 +1076,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, "avg": false, - "id": 335, + "id": 112, "python_date_format": null, "max": false, - "column_name": "id", + "column_name": "modified_date", "database_expression": null, "min": false, "verbose_name": null, @@ -1118,11 +1091,14 @@ "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, "description": null, - "type": "UUID", - "table_id": 30, + "type": "DATE", + "table_id": 3, "groupby": false, - "is_dttm": false, + "is_dttm": true, "count_distinct": false } }, @@ -1130,17 +1106,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, "avg": false, - "id": 336, + "id": 114, "python_date_format": null, "max": false, - "column_name": "location", + "column_name": "operator_name", "database_expression": null, "min": false, "verbose_name": null, @@ -1148,9 +1121,12 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, "description": null, "type": "VARCHAR(255)", - "table_id": 30, + "table_id": 3, "groupby": true, "is_dttm": false, "count_distinct": false @@ -1160,17 +1136,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, "avg": false, - "id": 337, + "id": 116, "python_date_format": null, "max": false, - "column_name": "name", + "column_name": "processing_period_id", "database_expression": null, "min": false, "verbose_name": null, @@ -1178,9 +1151,12 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, "description": null, - "type": "VARCHAR(255)", - "table_id": 30, + "type": "VARCHAR", + "table_id": 3, "groupby": true, "is_dttm": false, "count_distinct": false @@ -1190,47 +1166,44 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, "avg": false, - "id": 338, + "id": 118, "python_date_format": null, "max": false, - "column_name": "openlmisaccessible", + "column_name": "processing_period_startdate", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, "description": null, - "type": "BOOLEAN", - "table_id": 30, - "groupby": false, - "is_dttm": false, - "count_distinct": false + "type": "VARCHAR", + "table_id": 3, + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, "avg": false, - "id": 339, + "id": 122, "python_date_format": null, "max": false, - "column_name": "operator_code", + "column_name": "program_id", "database_expression": null, "min": false, "verbose_name": null, @@ -1238,9 +1211,12 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, "description": null, - "type": "VARCHAR(255)", - "table_id": 30, + "type": "VARCHAR", + "table_id": 3, "groupby": true, "is_dttm": false, "count_distinct": false @@ -1250,17 +1226,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, "avg": false, - "id": 340, + "id": 123, "python_date_format": null, "max": false, - "column_name": "operator_id", + "column_name": "program_name", "database_expression": null, "min": false, "verbose_name": null, @@ -1268,9 +1241,12 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, "description": null, - "type": "VARCHAR(255)", - "table_id": 30, + "type": "VARCHAR", + "table_id": 3, "groupby": true, "is_dttm": false, "count_distinct": false @@ -1280,28 +1256,28 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, "avg": false, - "id": 341, + "id": 534, "python_date_format": null, "max": false, - "column_name": "operator_name", + "column_name": "requisitiongroupid", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": true, + "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:58" + }, "description": null, - "type": "VARCHAR(255)", - "table_id": 30, - "groupby": true, + "type": "UUID", + "table_id": 3, + "groupby": false, "is_dttm": false, "count_distinct": false } @@ -1310,29 +1286,29 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, "avg": false, - "id": 342, + "id": 535, "python_date_format": null, "max": false, - "column_name": "region", + "column_name": "startdate", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": true, + "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:58" + }, "description": null, - "type": "VARCHAR(255)", - "table_id": 30, - "groupby": true, - "is_dttm": false, + "type": "DATE", + "table_id": 3, + "groupby": false, + "is_dttm": true, "count_distinct": false } }, @@ -1340,28 +1316,28 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, "avg": false, - "id": 343, + "id": 131, "python_date_format": null, "max": false, - "column_name": "status", + "column_name": "type", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, "description": null, - "type": "BOOLEAN", - "table_id": 30, - "groupby": false, + "type": "VARCHAR(255)", + "table_id": 3, + "groupby": true, "is_dttm": false, "count_distinct": false } @@ -1370,17 +1346,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:35" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:35" - }, "avg": false, - "id": 344, + "id": 132, "python_date_format": null, "max": false, - "column_name": "type", + "column_name": "username", "database_expression": null, "min": false, "verbose_name": null, @@ -1388,97 +1361,44 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, "description": null, - "type": "VARCHAR(255)", - "table_id": 30, + "type": "VARCHAR", + "table_id": 3, "groupby": true, "is_dttm": false, "count_distinct": false } - } - ] - } - }, - { - "__SqlaTable__": { - "is_featured": false, - "changed_by_fk": null, - "database_id": 1, - "filter_select_enabled": false, - "fetch_values_predicate": null, - "offset": 0, - "user_id": null, - "cache_timeout": null, - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, - "schema": "", - "params": "{\"remote_id\": 3, \"database_name\": \"main\", \"import_time\": 1553240684}", - "changed_on": { - "__datetime__": "2019-03-22T07:44:45" - }, - "sql": "", - "perm": "[main].[reporting_rate_and_timeliness](id:3)", - "id": 3, - "is_sqllab_view": false, - "table_name": "reporting_rate_and_timeliness", - "description": "", - "template_params": "", - "main_dttm_col": "processing_period_enddate", - "default_endpoint": "", - "created_by_fk": null, - "metrics": [ - { - "__SqlMetric__": { - "metric_name": "count", - "changed_on": { - "__datetime__": "2019-03-22T07:44:28" - }, - "changed_by_fk": null, - "expression": "COUNT(*)", - "d3format": null, - "description": null, - "verbose_name": "COUNT(*)", - "id": 51, - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, - "table_id": 3, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "count" - } - } - ], - "columns": [ + }, { "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 105, - "python_date_format": null, + "id": 106, + "python_date_format": "", "max": false, - "column_name": "created_date", - "database_expression": null, + "column_name": "district", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "District", "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, - "type": "DATE", + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": "", + "type": "VARCHAR(255)", "table_id": 3, - "groupby": false, - "is_dttm": true, + "groupby": true, + "is_dttm": false, "count_distinct": false } }, @@ -1486,28 +1406,28 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 109, + "id": 128, "python_date_format": null, "max": false, - "column_name": "facility_active_status", + "column_name": "supported_program", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, "description": null, - "type": "BOOLEAN", + "type": "UUID", "table_id": 3, - "groupby": false, + "groupby": true, "is_dttm": false, "count_distinct": false } @@ -1516,17 +1436,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 110, + "id": 129, "python_date_format": null, "max": false, - "column_name": "facility_id", + "column_name": "supported_program_active", "database_expression": null, "min": false, "verbose_name": null, @@ -1534,8 +1451,11 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, "description": null, - "type": "VARCHAR", + "type": "BOOLEAN", "table_id": 3, "groupby": true, "is_dttm": false, @@ -1546,28 +1466,28 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 111, + "id": 536, "python_date_format": null, "max": false, - "column_name": "id", + "column_name": "processingscheduleid", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:58" + }, "description": null, "type": "UUID", "table_id": 3, - "groupby": false, + "groupby": true, "is_dttm": false, "count_distinct": false } @@ -1576,29 +1496,29 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 112, + "id": 107, "python_date_format": null, "max": false, - "column_name": "modified_date", + "column_name": "emergency_status", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, - "type": "DATE", + "type": "BOOLEAN", "table_id": 3, - "groupby": false, - "is_dttm": true, + "groupby": true, + "is_dttm": false, "count_distinct": false } }, @@ -1606,25 +1526,25 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 114, - "python_date_format": null, + "id": 104, + "python_date_format": "", "max": false, - "column_name": "operator_name", - "database_expression": null, + "column_name": "country", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Country", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": "", "type": "VARCHAR(255)", "table_id": 3, "groupby": true, @@ -1636,29 +1556,29 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 115, - "python_date_format": null, + "id": 113, + "python_date_format": "", "max": false, - "column_name": "processing_period_enddate", - "database_expression": null, + "column_name": "name", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Facility", "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, - "type": "DATE", + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, + "description": "", + "type": "VARCHAR(255)", "table_id": 3, - "groupby": false, - "is_dttm": true, + "groupby": true, + "is_dttm": false, "count_distinct": false } }, @@ -1666,25 +1586,25 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 116, - "python_date_format": null, + "id": 117, + "python_date_format": "", "max": false, - "column_name": "processing_period_id", - "database_expression": null, + "column_name": "processing_period_name", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Processing Period", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, + "description": "", "type": "VARCHAR", "table_id": 3, "groupby": true, @@ -1696,25 +1616,25 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 118, - "python_date_format": null, + "id": 119, + "python_date_format": "", "max": false, - "column_name": "processing_period_startdate", - "database_expression": null, + "column_name": "processing_schedule_name", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Processing Schedule", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, + "description": "", "type": "VARCHAR", "table_id": 3, "groupby": true, @@ -1726,28 +1646,28 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 122, - "python_date_format": null, + "id": 124, + "python_date_format": "", "max": false, - "column_name": "program_active_status", - "database_expression": null, + "column_name": "region", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Region", "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, - "type": "BOOLEAN", + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, + "description": "", + "type": "VARCHAR(255)", "table_id": 3, - "groupby": false, + "groupby": true, "is_dttm": false, "count_distinct": false } @@ -1756,25 +1676,25 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 123, - "python_date_format": null, + "id": 108, + "python_date_format": "", "max": false, - "column_name": "program_id", - "database_expression": null, + "column_name": "facility", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Facility", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": "", "type": "VARCHAR", "table_id": 3, "groupby": true, @@ -1786,26 +1706,26 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 124, - "python_date_format": null, + "id": 125, + "python_date_format": "", "max": false, - "column_name": "program_name", - "database_expression": null, + "column_name": "reporting_timeliness", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Reporting Timeliness", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, - "type": "VARCHAR", + "created_on": { + "__datetime__": "2021-04-28T08:38:45" + }, + "description": "", + "type": "TEXT", "table_id": 3, "groupby": true, "is_dttm": false, @@ -1816,17 +1736,100 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", + "avg": false, + "id": 120, + "python_date_format": "", + "max": false, + "column_name": "program", + "database_expression": "", + "min": false, + "verbose_name": "Program", + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:45" }, - "avg": false, - "id": 127, + "description": "", + "type": "VARCHAR", + "table_id": 3, + "groupby": true, + "is_dttm": false, + "count_distinct": false + } + } + ], + "metrics": [ + { + "__SqlMetric__": { + "metric_name": "count", + "changed_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "changed_by_fk": null, + "expression": "COUNT(*)", + "d3format": null, + "description": null, + "verbose_name": "COUNT(*)", + "id": 51, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "table_id": 3, + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "count" + } + } + ] + } + }, + { + "__SqlaTable__": { + "is_featured": false, + "changed_by_fk": null, + "database_id": 1, + "filter_select_enabled": false, + "fetch_values_predicate": null, + "offset": 0, + "user_id": null, + "cache_timeout": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "schema": "", + "params": "{\"remote_id\": 2, \"database_name\": \"main\", \"import_time\": 1619599137}", + "changed_on": { + "__datetime__": "2021-04-28T08:38:57" + }, + "sql": null, + "perm": "[main].[adjustments](id:2)", + "id": 2, + "is_sqllab_view": false, + "table_name": "adjustments", + "description": null, + "template_params": null, + "main_dttm_col": "created_date", + "default_endpoint": null, + "created_by_fk": null, + "columns": [ + { + "__TableColumn__": { + "sum": true, + "changed_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "expression": "", + "avg": true, + "id": 74, "python_date_format": null, "max": false, - "column_name": "req_id", + "column_name": "quantity", "database_expression": null, "min": false, "verbose_name": null, @@ -1834,9 +1837,12 @@ "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, - "type": "UUID", - "table_id": 3, + "type": "INTEGER", + "table_id": 2, "groupby": false, "is_dttm": false, "count_distinct": false @@ -1844,19 +1850,16 @@ }, { "__TableColumn__": { - "sum": false, + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:44" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, - "avg": false, - "id": 128, + "avg": true, + "id": 75, "python_date_format": null, "max": false, - "column_name": "requisitiongroupid", + "column_name": "total_losses_and_adjustments", "database_expression": null, "min": false, "verbose_name": null, @@ -1864,9 +1867,12 @@ "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, - "type": "UUID", - "table_id": 3, + "type": "DOUBLE PRECISION", + "table_id": 2, "groupby": false, "is_dttm": false, "count_distinct": false @@ -1876,17 +1882,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:44" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 129, + "id": 79, "python_date_format": null, "max": false, - "column_name": "startdate", + "column_name": "created_date", "database_expression": null, "min": false, "verbose_name": null, @@ -1894,9 +1897,12 @@ "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, "type": "DATE", - "table_id": 3, + "table_id": 2, "groupby": false, "is_dttm": true, "count_distinct": false @@ -1906,28 +1912,28 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:44" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 132, + "id": 81, "python_date_format": null, "max": false, - "column_name": "type", + "column_name": "emergency_status", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": true, + "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, - "type": "VARCHAR(255)", - "table_id": 3, - "groupby": true, + "type": "BOOLEAN", + "table_id": 2, + "groupby": false, "is_dttm": false, "count_distinct": false } @@ -1936,28 +1942,28 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:44" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 133, + "id": 86, "python_date_format": null, "max": false, - "column_name": "username", + "column_name": "facilty_active_status", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": true, + "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, - "type": "VARCHAR", - "table_id": 3, - "groupby": true, + "type": "BOOLEAN", + "table_id": 2, + "groupby": false, "is_dttm": false, "count_distinct": false } @@ -1966,29 +1972,29 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:44" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 106, - "python_date_format": "", + "id": 88, + "python_date_format": null, "max": false, - "column_name": "district", - "database_expression": "", + "column_name": "modified_date", + "database_expression": null, "min": false, - "verbose_name": "District", + "verbose_name": null, "created_by_fk": null, - "filterable": true, + "filterable": false, "is_active": true, "changed_by_fk": null, - "description": "", - "type": "VARCHAR(255)", - "table_id": 3, - "groupby": true, - "is_dttm": false, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": null, + "type": "DATE", + "table_id": 2, + "groupby": false, + "is_dttm": true, "count_distinct": false } }, @@ -1996,28 +2002,28 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:44" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 130, + "id": 93, "python_date_format": null, "max": false, - "column_name": "supported_program", + "column_name": "program_active_status", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": true, + "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, - "type": "UUID", - "table_id": 3, - "groupby": true, + "type": "BOOLEAN", + "table_id": 2, + "groupby": false, "is_dttm": false, "count_distinct": false } @@ -2026,28 +2032,58 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:44" }, "expression": "", + "avg": false, + "id": 96, + "python_date_format": null, + "max": false, + "column_name": "requisition_id", + "database_expression": null, + "min": false, + "verbose_name": null, + "created_by_fk": null, + "filterable": false, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:44" + }, + "description": null, + "type": "UUID", + "table_id": 2, + "groupby": false, + "is_dttm": false, + "count_distinct": false + } + }, + { + "__TableColumn__": { + "sum": false, + "changed_on": { + "__datetime__": "2021-04-28T08:38:44" }, + "expression": "", "avg": false, - "id": 131, + "id": 97, "python_date_format": null, "max": false, - "column_name": "supported_program_active", + "column_name": "requisition_line_item_id", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": true, + "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, - "type": "BOOLEAN", - "table_id": 3, - "groupby": true, + "type": "UUID", + "table_id": 2, + "groupby": false, "is_dttm": false, "count_distinct": false } @@ -2056,17 +2092,44 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:44" }, "expression": "", + "avg": false, + "id": 99, + "python_date_format": null, + "max": false, + "column_name": "status_history_created_date", + "database_expression": null, + "min": false, + "verbose_name": null, + "created_by_fk": null, + "filterable": false, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:44" + }, + "description": null, + "type": "DATE", + "table_id": 2, + "groupby": false, + "is_dttm": true, + "count_distinct": false + } + }, + { + "__TableColumn__": { + "sum": false, + "changed_on": { + "__datetime__": "2021-04-28T08:38:58" }, + "expression": "", "avg": false, - "id": 120, + "id": 83, "python_date_format": null, "max": false, - "column_name": "processingscheduleid", + "column_name": "facility_name", "database_expression": null, "min": false, "verbose_name": null, @@ -2074,9 +2137,12 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, - "type": "UUID", - "table_id": 3, + "type": "VARCHAR", + "table_id": 2, "groupby": true, "is_dttm": false, "count_distinct": false @@ -2086,17 +2152,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 107, + "id": 76, "python_date_format": null, "max": false, - "column_name": "emergency_status", + "column_name": "adjustment_lines_id", "database_expression": null, "min": false, "verbose_name": null, @@ -2104,9 +2167,12 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, - "type": "BOOLEAN", - "table_id": 3, + "type": "VARCHAR", + "table_id": 2, "groupby": true, "is_dttm": false, "count_distinct": false @@ -2116,27 +2182,27 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 104, - "python_date_format": "", + "id": 77, + "python_date_format": null, "max": false, - "column_name": "country", - "database_expression": "", + "column_name": "author_id", + "database_expression": null, "min": false, - "verbose_name": "Country", + "verbose_name": null, "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": "", - "type": "VARCHAR(255)", - "table_id": 3, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": null, + "type": "VARCHAR", + "table_id": 2, "groupby": true, "is_dttm": false, "count_distinct": false @@ -2146,27 +2212,27 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 113, - "python_date_format": "", + "id": 78, + "python_date_format": null, "max": false, - "column_name": "name", - "database_expression": "", + "column_name": "country_name", + "database_expression": null, "min": false, - "verbose_name": "Facility", + "verbose_name": null, "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": "", - "type": "VARCHAR(255)", - "table_id": 3, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": null, + "type": "VARCHAR", + "table_id": 2, "groupby": true, "is_dttm": false, "count_distinct": false @@ -2176,27 +2242,27 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 117, - "python_date_format": "", + "id": 80, + "python_date_format": null, "max": false, - "column_name": "processing_period_name", - "database_expression": "", + "column_name": "district_name", + "database_expression": null, "min": false, - "verbose_name": "Processing Period", + "verbose_name": null, "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": "", + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": null, "type": "VARCHAR", - "table_id": 3, + "table_id": 2, "groupby": true, "is_dttm": false, "count_distinct": false @@ -2206,27 +2272,27 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 119, - "python_date_format": "", + "id": 82, + "python_date_format": null, "max": false, - "column_name": "processing_schedule_name", - "database_expression": "", + "column_name": "facility", + "database_expression": null, "min": false, - "verbose_name": "Processing Schedule", + "verbose_name": null, "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": "", + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": null, "type": "VARCHAR", - "table_id": 3, + "table_id": 2, "groupby": true, "is_dttm": false, "count_distinct": false @@ -2236,27 +2302,27 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 125, - "python_date_format": "", + "id": 84, + "python_date_format": null, "max": false, - "column_name": "region", - "database_expression": "", + "column_name": "facility_operator_name", + "database_expression": null, "min": false, - "verbose_name": "Region", + "verbose_name": null, "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": "", - "type": "VARCHAR(255)", - "table_id": 3, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": null, + "type": "VARCHAR", + "table_id": 2, "groupby": true, "is_dttm": false, "count_distinct": false @@ -2266,27 +2332,27 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 108, - "python_date_format": "", + "id": 85, + "python_date_format": null, "max": false, - "column_name": "facility", - "database_expression": "", + "column_name": "facility_type_name", + "database_expression": null, "min": false, - "verbose_name": "Facility", + "verbose_name": null, "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": "", + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": null, "type": "VARCHAR", - "table_id": 3, + "table_id": 2, "groupby": true, "is_dttm": false, "count_distinct": false @@ -2296,27 +2362,27 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 126, - "python_date_format": "", + "id": 87, + "python_date_format": null, "max": false, - "column_name": "reporting_timeliness", - "database_expression": "", + "column_name": "full_product_name", + "database_expression": null, "min": false, - "verbose_name": "Reporting Timeliness", + "verbose_name": null, "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": "", - "type": "TEXT", - "table_id": 3, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": null, + "type": "VARCHAR", + "table_id": 2, "groupby": true, "is_dttm": false, "count_distinct": false @@ -2326,262 +2392,88 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 121, - "python_date_format": "", + "id": 89, + "python_date_format": null, "max": false, - "column_name": "program", - "database_expression": "", + "column_name": "orderable_id", + "database_expression": null, "min": false, - "verbose_name": "Program", + "verbose_name": null, "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": "", + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": null, "type": "VARCHAR", - "table_id": 3, + "table_id": 2, "groupby": true, "is_dttm": false, "count_distinct": false } - } - ], - "database": { - "__Database__": { - "allow_csv_upload": true, - "database_name": "main", - "created_by_fk": null, - "allow_ctas": false, - "sqlalchemy_uri": "postgresql+psycopg2://postgres:XXXXXXXXXX@db:5432/open_lmis_reporting", - "changed_by_fk": null, - "allow_dml": false, - "password": "p@ssw0rd", - "force_ctas_schema": null, - "cache_timeout": null, - "allow_multi_schema_metadata_fetch": true, - "created_on": { - "__datetime__": "2019-03-22T07:44:25" - }, - "select_as_create_table_as": false, - "changed_on": { - "__datetime__": "2019-03-22T07:44:53" - }, - "extra": "{\r\n \"metadata_params\": {},\r\n \"engine_params\": {}\r\n}\r\n", - "expose_in_sqllab": true, - "perm": "[main].(id:1)", - "id": 1, - "allow_run_sync": true, - "verbose_name": null, - "impersonate_user": false, - "allow_run_async": false - } - } - } - }, - { - "__SqlaTable__": { - "is_featured": false, - "changed_by_fk": null, - "database_id": 1, - "filter_select_enabled": false, - "fetch_values_predicate": null, - "offset": 0, - "user_id": null, - "cache_timeout": null, - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, - "schema": "", - "params": "{\"remote_id\": 2, \"database_name\": \"main\", \"import_time\": 1553240684}", - "changed_on": { - "__datetime__": "2019-03-22T07:44:45" - }, - "sql": null, - "perm": "[main].[adjustments](id:2)", - "id": 2, - "is_sqllab_view": false, - "table_name": "adjustments", - "description": null, - "template_params": null, - "main_dttm_col": "created_date", - "default_endpoint": null, - "created_by_fk": null, - "metrics": [ - { - "__SqlMetric__": { - "metric_name": "avg__quantity", - "changed_on": { - "__datetime__": "2019-03-22T07:44:27" - }, - "changed_by_fk": null, - "expression": "AVG(quantity)", - "d3format": null, - "description": null, - "verbose_name": null, - "id": 46, - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, - "table_id": 2, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" - } - }, - { - "__SqlMetric__": { - "metric_name": "avg__total_losses_and_adjustments", - "changed_on": { - "__datetime__": "2019-03-22T07:44:27" - }, - "changed_by_fk": null, - "expression": "AVG(total_losses_and_adjustments)", - "d3format": null, - "description": null, - "verbose_name": null, - "id": 47, - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, - "table_id": 2, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" - } - }, - { - "__SqlMetric__": { - "metric_name": "count", - "changed_on": { - "__datetime__": "2019-03-22T07:44:27" - }, - "changed_by_fk": null, - "expression": "COUNT(*)", - "d3format": null, - "description": null, - "verbose_name": "COUNT(*)", - "id": 48, - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, - "table_id": 2, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "count" - } - }, - { - "__SqlMetric__": { - "metric_name": "sum__quantity", - "changed_on": { - "__datetime__": "2019-03-22T07:44:27" - }, - "changed_by_fk": null, - "expression": "SUM(quantity)", - "d3format": null, - "description": null, - "verbose_name": null, - "id": 49, - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, - "table_id": 2, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" - } }, - { - "__SqlMetric__": { - "metric_name": "sum__total_losses_and_adjustments", - "changed_on": { - "__datetime__": "2019-03-22T07:44:27" - }, - "changed_by_fk": null, - "expression": "SUM(total_losses_and_adjustments)", - "d3format": null, - "description": null, - "verbose_name": null, - "id": 50, - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, - "table_id": 2, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" - } - } - ], - "columns": [ { "__TableColumn__": { - "sum": true, + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, - "avg": true, - "id": 74, + "avg": false, + "id": 90, "python_date_format": null, "max": false, - "column_name": "quantity", + "column_name": "processing_period_name", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, - "type": "INTEGER", + "type": "VARCHAR", "table_id": 2, - "groupby": false, + "groupby": true, "is_dttm": false, "count_distinct": false } }, { "__TableColumn__": { - "sum": true, + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, - "avg": true, - "id": 75, + "avg": false, + "id": 91, "python_date_format": null, "max": false, - "column_name": "total_losses_and_adjustments", + "column_name": "product_code", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, - "type": "DOUBLE PRECISION", + "type": "VARCHAR", "table_id": 2, - "groupby": false, + "groupby": true, "is_dttm": false, "count_distinct": false } @@ -2590,17 +2482,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 76, + "id": 92, "python_date_format": null, "max": false, - "column_name": "adjustment_lines_id", + "column_name": "program", "database_expression": null, "min": false, "verbose_name": null, @@ -2608,6 +2497,9 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, "type": "VARCHAR", "table_id": 2, @@ -2620,17 +2512,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 77, + "id": 94, "python_date_format": null, "max": false, - "column_name": "author_id", + "column_name": "program_name", "database_expression": null, "min": false, "verbose_name": null, @@ -2638,6 +2527,9 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, "type": "VARCHAR", "table_id": 2, @@ -2650,17 +2542,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 78, + "id": 95, "python_date_format": null, "max": false, - "column_name": "country_name", + "column_name": "region_name", "database_expression": null, "min": false, "verbose_name": null, @@ -2668,6 +2557,9 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, "type": "VARCHAR", "table_id": 2, @@ -2680,29 +2572,29 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 79, + "id": 98, "python_date_format": null, "max": false, - "column_name": "created_date", + "column_name": "status", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, - "type": "DATE", + "type": "VARCHAR", "table_id": 2, - "groupby": false, - "is_dttm": true, + "groupby": true, + "is_dttm": false, "count_distinct": false } }, @@ -2710,17 +2602,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 80, + "id": 100, "python_date_format": null, "max": false, - "column_name": "district_name", + "column_name": "stock_adjustment_reason", "database_expression": null, "min": false, "verbose_name": null, @@ -2728,6 +2617,9 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, "type": "VARCHAR", "table_id": 2, @@ -2740,28 +2632,28 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 81, + "id": 101, "python_date_format": null, "max": false, - "column_name": "emergency_status", + "column_name": "supervisory_node", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, - "type": "BOOLEAN", + "type": "VARCHAR", "table_id": 2, - "groupby": false, + "groupby": true, "is_dttm": false, "count_distinct": false } @@ -2770,17 +2662,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 82, + "id": 102, "python_date_format": null, "max": false, - "column_name": "facility", + "column_name": "trade_item_id", "database_expression": null, "min": false, "verbose_name": null, @@ -2788,6 +2677,9 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, "type": "VARCHAR", "table_id": 2, @@ -2800,17 +2692,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 83, + "id": 103, "python_date_format": null, "max": false, - "column_name": "facility_name", + "column_name": "username", "database_expression": null, "min": false, "verbose_name": null, @@ -2818,6 +2707,9 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, "type": "VARCHAR", "table_id": 2, @@ -2825,62 +2717,206 @@ "is_dttm": false, "count_distinct": false } - }, + } + ], + "metrics": [ { - "__TableColumn__": { - "sum": false, + "__SqlMetric__": { + "metric_name": "avg__quantity", "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:44" }, - "expression": "", + "changed_by_fk": null, + "expression": "AVG(quantity)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 46, "created_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:44" }, - "avg": false, - "id": 84, - "python_date_format": null, - "max": false, - "column_name": "facility_operator_name", - "database_expression": null, - "min": false, + "table_id": 2, + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" + } + }, + { + "__SqlMetric__": { + "metric_name": "avg__total_losses_and_adjustments", + "changed_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "changed_by_fk": null, + "expression": "AVG(total_losses_and_adjustments)", + "d3format": null, + "description": null, "verbose_name": null, + "id": 47, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "table_id": 2, "created_by_fk": null, - "filterable": true, - "is_active": true, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" + } + }, + { + "__SqlMetric__": { + "metric_name": "count", + "changed_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "changed_by_fk": null, + "expression": "COUNT(*)", + "d3format": null, "description": null, - "type": "VARCHAR", + "verbose_name": "COUNT(*)", + "id": 48, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "table_id": 2, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "count" + } + }, + { + "__SqlMetric__": { + "metric_name": "sum__quantity", + "changed_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "changed_by_fk": null, + "expression": "SUM(quantity)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 49, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "table_id": 2, + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" } }, + { + "__SqlMetric__": { + "metric_name": "sum__total_losses_and_adjustments", + "changed_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "changed_by_fk": null, + "expression": "SUM(total_losses_and_adjustments)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 50, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "table_id": 2, + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" + } + } + ], + "database": { + "__Database__": { + "allow_ctas": false, + "sqlalchemy_uri": "postgresql+psycopg2://postgres:XXXXXXXXXX@db:5432/open_lmis_reporting", + "changed_by_fk": null, + "allow_dml": false, + "password": null, + "force_ctas_schema": null, + "cache_timeout": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, + "allow_multi_schema_metadata_fetch": false, + "select_as_create_table_as": false, + "extra": "{\r\n \"metadata_params\": {},\r\n \"engine_params\": {}\r\n}\r\n", + "changed_on": { + "__datetime__": "2021-04-28T08:39:04" + }, + "expose_in_sqllab": true, + "id": 1, + "perm": "[main].(id:1)", + "allow_run_sync": true, + "verbose_name": null, + "impersonate_user": false, + "allow_run_async": false, + "database_name": "main", + "created_by_fk": null, + "allow_csv_upload": true + } + } + } + }, + { + "__SqlaTable__": { + "is_featured": false, + "changed_by_fk": null, + "database_id": 1, + "filter_select_enabled": false, + "fetch_values_predicate": null, + "offset": 0, + "user_id": null, + "cache_timeout": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:58" + }, + "schema": "", + "params": "{\"remote_id\": 65, \"database_name\": \"main\", \"import_time\": 1619599137}", + "changed_on": { + "__datetime__": "2021-04-28T08:38:59" + }, + "sql": null, + "perm": "[main].[facilities](id:65)", + "id": 65, + "is_sqllab_view": false, + "table_name": "facilities", + "description": null, + "template_params": null, + "main_dttm_col": "golivedate", + "default_endpoint": null, + "created_by_fk": null, + "columns": [ { "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 85, + "id": 537, "python_date_format": null, "max": false, - "column_name": "facility_type_name", + "column_name": "district", "database_expression": null, "min": false, - "verbose_name": null, + "verbose_name": "District", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:58" + }, "description": null, - "type": "VARCHAR", - "table_id": 2, + "type": "VARCHAR(255)", + "table_id": 65, "groupby": true, "is_dttm": false, "count_distinct": false @@ -2890,28 +2926,28 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 86, + "id": 538, "python_date_format": null, "max": false, - "column_name": "facilty_active_status", + "column_name": "name", "database_expression": null, "min": false, - "verbose_name": null, + "verbose_name": "Name", "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:58" + }, "description": null, - "type": "BOOLEAN", - "table_id": 2, - "groupby": false, + "type": "VARCHAR(255)", + "table_id": 65, + "groupby": true, "is_dttm": false, "count_distinct": false } @@ -2920,27 +2956,27 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 87, + "id": 539, "python_date_format": null, "max": false, - "column_name": "full_product_name", + "column_name": "operator_name", "database_expression": null, "min": false, - "verbose_name": null, + "verbose_name": "Operator", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:58" + }, "description": null, - "type": "VARCHAR", - "table_id": 2, + "type": "VARCHAR(255)", + "table_id": 65, "groupby": true, "is_dttm": false, "count_distinct": false @@ -2950,29 +2986,29 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 88, + "id": 540, "python_date_format": null, "max": false, - "column_name": "modified_date", + "column_name": "type", "database_expression": null, "min": false, - "verbose_name": null, + "verbose_name": "Type", "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:58" + }, "description": null, - "type": "DATE", - "table_id": 2, - "groupby": false, - "is_dttm": true, + "type": "VARCHAR(255)", + "table_id": 65, + "groupby": true, + "is_dttm": false, "count_distinct": false } }, @@ -2980,27 +3016,27 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 89, + "id": 541, "python_date_format": null, "max": false, - "column_name": "orderable_id", + "column_name": "code", "database_expression": null, "min": false, - "verbose_name": null, + "verbose_name": "Code", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:58" + }, "description": null, - "type": "VARCHAR", - "table_id": 2, + "type": "VARCHAR(255)", + "table_id": 65, "groupby": true, "is_dttm": false, "count_distinct": false @@ -3010,28 +3046,28 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 90, + "id": 542, "python_date_format": null, "max": false, - "column_name": "processing_period_name", + "column_name": "comment", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": true, + "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:58" + }, "description": null, - "type": "VARCHAR", - "table_id": 2, - "groupby": true, + "type": "TEXT", + "table_id": 65, + "groupby": false, "is_dttm": false, "count_distinct": false } @@ -3040,17 +3076,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 91, + "id": 543, "python_date_format": null, "max": false, - "column_name": "product_code", + "column_name": "country", "database_expression": null, "min": false, "verbose_name": null, @@ -3058,9 +3091,12 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:58" + }, "description": null, - "type": "VARCHAR", - "table_id": 2, + "type": "VARCHAR(255)", + "table_id": 65, "groupby": true, "is_dttm": false, "count_distinct": false @@ -3070,28 +3106,28 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 92, + "id": 544, "python_date_format": null, "max": false, - "column_name": "program", + "column_name": "description", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": true, + "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:58" + }, "description": null, - "type": "VARCHAR", - "table_id": 2, - "groupby": true, + "type": "TEXT", + "table_id": 65, + "groupby": false, "is_dttm": false, "count_distinct": false } @@ -3100,17 +3136,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 93, + "id": 545, "python_date_format": null, "max": false, - "column_name": "program_active_status", + "column_name": "enabled", "database_expression": null, "min": false, "verbose_name": null, @@ -3118,9 +3151,12 @@ "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:58" + }, "description": null, "type": "BOOLEAN", - "table_id": 2, + "table_id": 65, "groupby": false, "is_dttm": false, "count_distinct": false @@ -3130,28 +3166,28 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 94, + "id": 546, "python_date_format": null, "max": false, - "column_name": "program_name", + "column_name": "extradata", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": true, + "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:58" + }, "description": null, - "type": "VARCHAR", - "table_id": 2, - "groupby": true, + "type": "JSON", + "table_id": 65, + "groupby": false, "is_dttm": false, "count_distinct": false } @@ -3160,29 +3196,29 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 95, + "id": 547, "python_date_format": null, "max": false, - "column_name": "region_name", + "column_name": "godowndate", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": true, + "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:58" + }, "description": null, - "type": "VARCHAR", - "table_id": 2, - "groupby": true, - "is_dttm": false, + "type": "DATE", + "table_id": 65, + "groupby": false, + "is_dttm": true, "count_distinct": false } }, @@ -3190,17 +3226,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 96, + "id": 548, "python_date_format": null, "max": false, - "column_name": "requisition_id", + "column_name": "golivedate", "database_expression": null, "min": false, "verbose_name": null, @@ -3208,11 +3241,14 @@ "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:58" + }, "description": null, - "type": "UUID", - "table_id": 2, + "type": "DATE", + "table_id": 65, "groupby": false, - "is_dttm": false, + "is_dttm": true, "count_distinct": false } }, @@ -3220,17 +3256,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:59" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 97, + "id": 549, "python_date_format": null, "max": false, - "column_name": "requisition_line_item_id", + "column_name": "id", "database_expression": null, "min": false, "verbose_name": null, @@ -3238,9 +3271,12 @@ "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, "description": null, "type": "UUID", - "table_id": 2, + "table_id": 65, "groupby": false, "is_dttm": false, "count_distinct": false @@ -3250,17 +3286,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:59" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 98, + "id": 550, "python_date_format": null, "max": false, - "column_name": "status", + "column_name": "location", "database_expression": null, "min": false, "verbose_name": null, @@ -3268,9 +3301,12 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, "description": null, - "type": "VARCHAR", - "table_id": 2, + "type": "VARCHAR(255)", + "table_id": 65, "groupby": true, "is_dttm": false, "count_distinct": false @@ -3280,17 +3316,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:59" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 99, + "id": 551, "python_date_format": null, "max": false, - "column_name": "status_history_created_date", + "column_name": "openlmisaccessible", "database_expression": null, "min": false, "verbose_name": null, @@ -3298,11 +3331,14 @@ "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, "description": null, - "type": "DATE", - "table_id": 2, + "type": "BOOLEAN", + "table_id": 65, "groupby": false, - "is_dttm": true, + "is_dttm": false, "count_distinct": false } }, @@ -3310,17 +3346,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:59" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 100, + "id": 552, "python_date_format": null, "max": false, - "column_name": "stock_adjustment_reason", + "column_name": "operator_code", "database_expression": null, "min": false, "verbose_name": null, @@ -3328,9 +3361,12 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, "description": null, - "type": "VARCHAR", - "table_id": 2, + "type": "VARCHAR(255)", + "table_id": 65, "groupby": true, "is_dttm": false, "count_distinct": false @@ -3340,17 +3376,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:59" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 101, + "id": 553, "python_date_format": null, "max": false, - "column_name": "supervisory_node", + "column_name": "operator_id", "database_expression": null, "min": false, "verbose_name": null, @@ -3358,9 +3391,12 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, "description": null, - "type": "VARCHAR", - "table_id": 2, + "type": "VARCHAR(255)", + "table_id": 65, "groupby": true, "is_dttm": false, "count_distinct": false @@ -3370,17 +3406,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:59" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 102, + "id": 554, "python_date_format": null, "max": false, - "column_name": "trade_item_id", + "column_name": "region", "database_expression": null, "min": false, "verbose_name": null, @@ -3388,9 +3421,12 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, "description": null, - "type": "VARCHAR", - "table_id": 2, + "type": "VARCHAR(255)", + "table_id": 65, "groupby": true, "is_dttm": false, "count_distinct": false @@ -3400,61 +3436,85 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:28" + "__datetime__": "2021-04-28T08:38:59" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:28" - }, "avg": false, - "id": 103, + "id": 555, "python_date_format": null, "max": false, - "column_name": "username", + "column_name": "status", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": true, + "filterable": false, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:59" + }, "description": null, - "type": "VARCHAR", - "table_id": 2, - "groupby": true, + "type": "BOOLEAN", + "table_id": 65, + "groupby": false, "is_dttm": false, "count_distinct": false } } ], + "metrics": [ + { + "__SqlMetric__": { + "metric_name": "count", + "changed_on": { + "__datetime__": "2021-04-28T08:38:58" + }, + "changed_by_fk": null, + "expression": "COUNT(*)", + "d3format": null, + "description": null, + "verbose_name": "COUNT(*)", + "id": 231, + "created_on": { + "__datetime__": "2021-04-28T08:38:58" + }, + "table_id": 65, + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": null + } + } + ], "database": { "__Database__": { - "allow_csv_upload": true, - "database_name": "main", - "created_by_fk": null, "allow_ctas": false, "sqlalchemy_uri": "postgresql+psycopg2://postgres:XXXXXXXXXX@db:5432/open_lmis_reporting", "changed_by_fk": null, "allow_dml": false, - "password": "p@ssw0rd", + "password": null, "force_ctas_schema": null, "cache_timeout": null, - "allow_multi_schema_metadata_fetch": true, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:43" }, + "allow_multi_schema_metadata_fetch": false, "select_as_create_table_as": false, + "extra": "{\r\n \"metadata_params\": {},\r\n \"engine_params\": {}\r\n}\r\n", "changed_on": { - "__datetime__": "2019-03-22T07:44:53" + "__datetime__": "2021-04-28T08:39:04" }, - "extra": "{\r\n \"metadata_params\": {},\r\n \"engine_params\": {}\r\n}\r\n", "expose_in_sqllab": true, - "perm": "[main].(id:1)", "id": 1, + "perm": "[main].(id:1)", "allow_run_sync": true, "verbose_name": null, "impersonate_user": false, - "allow_run_async": false + "allow_run_async": false, + "database_name": "main", + "created_by_fk": null, + "allow_csv_upload": true } } } @@ -3470,12 +3530,12 @@ "user_id": null, "cache_timeout": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:43" }, "schema": "", - "params": "{\"remote_id\": 1, \"database_name\": \"main\", \"import_time\": 1553240684}", + "params": "{\"remote_id\": 1, \"database_name\": \"main\", \"import_time\": 1619599137}", "changed_on": { - "__datetime__": "2019-03-22T07:44:44" + "__datetime__": "2021-04-28T08:38:58" }, "sql": "", "perm": "[main].[stock_status_and_consumption](id:1)", @@ -3487,1014 +3547,1219 @@ "main_dttm_col": "req_created_date", "default_endpoint": "", "created_by_fk": null, - "metrics": [ + "columns": [ { - "__SqlMetric__": { - "metric_name": "avg__adjusted_consumption", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, - "changed_by_fk": null, - "expression": "AVG(adjusted_consumption)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 44, + "python_date_format": null, + "max": false, + "column_name": "id", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 1, + "created_by_fk": null, + "filterable": false, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "UUID", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": false, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__amc", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, - "changed_by_fk": null, - "expression": "AVG(amc)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 48, + "python_date_format": null, + "max": false, + "column_name": "processing_period_enddate", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 2, + "created_by_fk": null, + "filterable": false, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "DATE", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": false, + "is_dttm": true, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__approved_quantity", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, - "changed_by_fk": null, - "expression": "AVG(approved_quantity)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 66, + "python_date_format": null, + "max": false, + "column_name": "requisition_line_item_id", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 3, + "created_by_fk": null, + "filterable": false, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "UUID", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": false, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__average_consumption", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "AVG(average_consumption)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 23, + "python_date_format": null, + "max": false, + "column_name": "author_id", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 4, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:43" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__beginning_balance", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "AVG(beginning_balance)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 24, + "python_date_format": null, + "max": false, + "column_name": "country_code", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 5, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:43" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__calculated_order_quantity", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "AVG(calculated_order_quantity)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 25, + "python_date_format": null, + "max": false, + "column_name": "country_id", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 6, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:43" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__closing_balance", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "AVG(closing_balance)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 27, + "python_date_format": null, + "max": false, + "column_name": "district_code", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 7, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:43" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__combined_stockout", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "AVG(combined_stockout)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 28, + "python_date_format": null, + "max": false, + "column_name": "district_id", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 8, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__consumption", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "AVG(consumption)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 32, + "python_date_format": null, + "max": false, + "column_name": "facility_code", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 9, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__due_days", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "AVG(due_days)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 33, + "python_date_format": null, + "max": false, + "column_name": "facility_id", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 10, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__late_days", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "AVG(late_days)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 35, + "python_date_format": null, + "max": false, + "column_name": "facility_operator_code", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 11, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__max_periods_of_stock", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "AVG(max_periods_of_stock)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 36, + "python_date_format": null, + "max": false, + "column_name": "facility_operator_id", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 12, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__order_quantity", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "AVG(order_quantity)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 39, + "python_date_format": null, + "max": false, + "column_name": "facility_type_code", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 13, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__packs_to_ship", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "AVG(packs_to_ship)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 40, + "python_date_format": null, + "max": false, + "column_name": "facility_type_id", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 14, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__price_per_pack", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "AVG(price_per_pack)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 45, + "python_date_format": null, + "max": false, + "column_name": "li_req_id", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 15, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__requested_quantity", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "AVG(requested_quantity)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 46, + "python_date_format": null, + "max": false, + "column_name": "modified_date", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 16, + "created_by_fk": null, + "filterable": false, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "DATE", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": false, + "is_dttm": true, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__stock_on_hand", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "AVG(stock_on_hand)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 47, + "python_date_format": null, + "max": false, + "column_name": "orderable_id", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 17, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__total_consumed_quantity", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "AVG(total_consumed_quantity)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 49, + "python_date_format": null, + "max": false, + "column_name": "processing_period_id", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 18, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__total_cost", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "AVG(total_cost)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 51, + "python_date_format": null, + "max": false, + "column_name": "processing_period_startdate", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 19, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__total_losses_and_adjustments", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "AVG(total_losses_and_adjustments)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 52, + "python_date_format": null, + "max": false, + "column_name": "processing_schedule_code", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 20, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__total_received_quantity", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "AVG(total_received_quantity)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 53, + "python_date_format": null, + "max": false, + "column_name": "processing_schedule_id", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 21, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "avg__total_stockout_days", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "AVG(total_stockout_days)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 58, + "python_date_format": null, + "max": false, + "column_name": "program_code", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 22, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "avg" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "count", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, + "expression": "", + "avg": false, + "id": 59, + "python_date_format": null, + "max": false, + "column_name": "program_id", + "database_expression": null, + "min": false, + "verbose_name": null, + "created_by_fk": null, + "filterable": true, + "is_active": true, "changed_by_fk": null, - "expression": "COUNT(*)", - "d3format": null, - "description": null, - "verbose_name": "COUNT(*)", - "id": 23, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "count" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "sum__adjusted_consumption", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "SUM(adjusted_consumption)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 61, + "python_date_format": null, + "max": false, + "column_name": "region_code", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 24, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "sum__amc", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "SUM(amc)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 62, + "python_date_format": null, + "max": false, + "column_name": "region_id", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 25, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "sum__approved_quantity", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "SUM(approved_quantity)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 64, + "python_date_format": null, + "max": false, + "column_name": "req_created_date", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 26, + "created_by_fk": null, + "filterable": false, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "DATE", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" + "groupby": false, + "is_dttm": true, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "sum__average_consumption", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "SUM(average_consumption)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 67, + "python_date_format": null, + "max": false, + "column_name": "status_date", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 27, + "created_by_fk": null, + "filterable": false, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "DATE", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" + "groupby": false, + "is_dttm": true, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "sum__beginning_balance", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "SUM(beginning_balance)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 68, + "python_date_format": null, + "max": false, + "column_name": "status_req_id", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 28, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "sum__calculated_order_quantity", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "SUM(calculated_order_quantity)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 70, + "python_date_format": null, + "max": false, + "column_name": "supervisory_node", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 29, - "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "sum__closing_balance", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "SUM(closing_balance)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 72, + "python_date_format": null, + "max": false, + "column_name": "trade_item_id", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 30, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "sum__combined_stockout", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "SUM(combined_stockout)", - "d3format": null, - "description": null, + "expression": "", + "avg": false, + "id": 73, + "python_date_format": null, + "max": false, + "column_name": "username", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 31, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": null, + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "sum__consumption", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, + "expression": "", + "avg": false, + "id": 69, + "python_date_format": "", + "max": false, + "column_name": "stock_status", + "database_expression": "", + "min": false, + "verbose_name": "Stock Status", + "created_by_fk": null, + "filterable": true, + "is_active": true, "changed_by_fk": null, - "expression": "SUM(consumption)", - "d3format": null, - "description": null, - "verbose_name": null, - "id": 32, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": "", + "type": "TEXT", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "sum__due_days", + "__TableColumn__": { + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, + "expression": "", + "avg": true, + "id": 7, + "python_date_format": "", + "max": false, + "column_name": "closing_balance", + "database_expression": "", + "min": false, + "verbose_name": "Closing Balance", + "created_by_fk": null, + "filterable": true, + "is_active": true, "changed_by_fk": null, - "expression": "SUM(due_days)", - "d3format": null, - "description": null, - "verbose_name": null, - "id": 33, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:43" }, + "description": "", + "type": "DOUBLE PRECISION", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "sum__late_days", + "__TableColumn__": { + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "SUM(late_days)", - "d3format": null, - "description": null, + "expression": "", + "avg": true, + "id": 18, + "python_date_format": null, + "max": false, + "column_name": "total_consumed_quantity", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 34, + "created_by_fk": null, + "filterable": true, + "is_active": true, + "changed_by_fk": null, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:43" }, + "description": null, + "type": "DOUBLE PRECISION", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "sum__max_periods_of_stock", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, + "expression": "", + "avg": false, + "id": 30, + "python_date_format": "", + "max": false, + "column_name": "emergency_status", + "database_expression": "", + "min": false, + "verbose_name": "Emergency Status", + "created_by_fk": null, + "filterable": true, + "is_active": true, "changed_by_fk": null, - "expression": "SUM(max_periods_of_stock)", - "d3format": null, - "description": null, - "verbose_name": null, - "id": 35, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": "", + "type": "BOOLEAN", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "sum__order_quantity", + "__TableColumn__": { + "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, + "expression": "", + "avg": false, + "id": 31, + "python_date_format": "", + "max": false, + "column_name": "facility", + "database_expression": "", + "min": false, + "verbose_name": "Facility", + "created_by_fk": null, + "filterable": true, + "is_active": true, "changed_by_fk": null, - "expression": "SUM(order_quantity)", - "d3format": null, - "description": null, - "verbose_name": null, - "id": 36, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:44" }, + "description": "", + "type": "VARCHAR", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "sum__packs_to_ship", + "__TableColumn__": { + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, + "expression": "", + "avg": true, + "id": 17, + "python_date_format": "", + "max": false, + "column_name": "stock_on_hand", + "database_expression": "", + "min": false, + "verbose_name": "Stock on Hand", + "created_by_fk": null, + "filterable": true, + "is_active": true, "changed_by_fk": null, - "expression": "SUM(packs_to_ship)", - "d3format": null, - "description": null, - "verbose_name": null, - "id": 37, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:43" }, + "description": "", + "type": "DOUBLE PRECISION", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "sum__price_per_pack", + "__TableColumn__": { + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "SUM(price_per_pack)", - "d3format": null, - "description": null, + "expression": "", + "avg": true, + "id": 3, + "python_date_format": null, + "max": false, + "column_name": "approved_quantity", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 38, - "created_on": { - "__datetime__": "2019-03-22T07:44:25" - }, - "table_id": 1, "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" - } - }, - { - "__SqlMetric__": { - "metric_name": "sum__requested_quantity", - "changed_on": { - "__datetime__": "2019-03-22T07:44:25" - }, + "filterable": true, + "is_active": true, "changed_by_fk": null, - "expression": "SUM(requested_quantity)", - "d3format": null, - "description": null, - "verbose_name": null, - "id": 39, "created_on": { - "__datetime__": "2019-03-22T07:44:25" - }, - "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" - } - }, - { - "__SqlMetric__": { - "metric_name": "sum__stock_on_hand", - "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:43" }, - "changed_by_fk": null, - "expression": "SUM(stock_on_hand)", - "d3format": null, "description": null, - "verbose_name": null, - "id": 40, - "created_on": { - "__datetime__": "2019-03-22T07:44:25" - }, + "type": "DOUBLE PRECISION", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "sum__total_consumed_quantity", + "__TableColumn__": { + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:58" }, - "changed_by_fk": null, - "expression": "SUM(total_consumed_quantity)", - "d3format": null, - "description": null, + "expression": "", + "avg": true, + "id": 4, + "python_date_format": null, + "max": false, + "column_name": "average_consumption", + "database_expression": null, + "min": false, "verbose_name": null, - "id": 41, - "created_on": { - "__datetime__": "2019-03-22T07:44:25" - }, - "table_id": 1, "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" - } - }, - { - "__SqlMetric__": { - "metric_name": "sum__total_cost", - "changed_on": { - "__datetime__": "2019-03-22T07:44:25" - }, + "filterable": true, + "is_active": true, "changed_by_fk": null, - "expression": "SUM(total_cost)", - "d3format": null, - "description": null, - "verbose_name": null, - "id": 42, "created_on": { - "__datetime__": "2019-03-22T07:44:25" - }, - "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" - } - }, - { - "__SqlMetric__": { - "metric_name": "sum__total_losses_and_adjustments", - "changed_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "changed_by_fk": null, - "expression": "SUM(total_losses_and_adjustments)", - "d3format": null, "description": null, - "verbose_name": null, - "id": 43, - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, + "type": "DOUBLE PRECISION", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" + "groupby": true, + "is_dttm": false, + "count_distinct": false } }, { - "__SqlMetric__": { - "metric_name": "sum__total_received_quantity", + "__TableColumn__": { + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "changed_by_fk": null, - "expression": "SUM(total_received_quantity)", - "d3format": null, - "description": null, - "verbose_name": null, - "id": 44, - "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:58" }, - "table_id": 1, + "expression": "", + "avg": true, + "id": 13, + "python_date_format": "", + "max": false, + "column_name": "order_quantity", + "database_expression": "", + "min": false, + "verbose_name": "Quantity Ordered", "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" - } - }, - { - "__SqlMetric__": { - "metric_name": "sum__total_stockout_days", - "changed_on": { - "__datetime__": "2019-03-22T07:44:26" - }, + "filterable": true, + "is_active": true, "changed_by_fk": null, - "expression": "SUM(total_stockout_days)", - "d3format": null, - "description": null, - "verbose_name": null, - "id": 45, "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, + "description": "", + "type": "DOUBLE PRECISION", "table_id": 1, - "created_by_fk": null, - "warning_text": null, - "is_restricted": false, - "metric_type": "sum" + "groupby": true, + "is_dttm": false, + "count_distinct": false } - } - ], - "columns": [ + }, { "__TableColumn__": { - "sum": false, + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": false, - "id": 23, + "avg": true, + "id": 6, "python_date_format": null, "max": false, - "column_name": "author_id", + "column_name": "calculated_order_quantity", "database_expression": null, "min": false, "verbose_name": null, @@ -4502,8 +4767,11 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "description": null, - "type": "VARCHAR", + "type": "DOUBLE PRECISION", "table_id": 1, "groupby": true, "is_dttm": false, @@ -4512,19 +4780,16 @@ }, { "__TableColumn__": { - "sum": false, + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": false, - "id": 24, + "avg": true, + "id": 8, "python_date_format": null, "max": false, - "column_name": "country_code", + "column_name": "combined_stockout", "database_expression": null, "min": false, "verbose_name": null, @@ -4532,8 +4797,11 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "description": null, - "type": "VARCHAR", + "type": "INTEGER", "table_id": 1, "groupby": true, "is_dttm": false, @@ -4542,19 +4810,16 @@ }, { "__TableColumn__": { - "sum": false, + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": false, - "id": 25, + "avg": true, + "id": 9, "python_date_format": null, "max": false, - "column_name": "country_id", + "column_name": "consumption", "database_expression": null, "min": false, "verbose_name": null, @@ -4562,8 +4827,11 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "description": null, - "type": "VARCHAR", + "type": "DOUBLE PRECISION", "table_id": 1, "groupby": true, "is_dttm": false, @@ -4572,19 +4840,16 @@ }, { "__TableColumn__": { - "sum": false, + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": false, - "id": 27, + "avg": true, + "id": 10, "python_date_format": null, "max": false, - "column_name": "district_code", + "column_name": "due_days", "database_expression": null, "min": false, "verbose_name": null, @@ -4592,8 +4857,11 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "description": null, - "type": "VARCHAR", + "type": "INTEGER", "table_id": 1, "groupby": true, "is_dttm": false, @@ -4604,25 +4872,25 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, "avg": false, - "id": 28, - "python_date_format": null, + "id": 26, + "python_date_format": "", "max": false, - "column_name": "district_id", - "database_expression": null, + "column_name": "country_name", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Country", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, + "description": "", "type": "VARCHAR", "table_id": 1, "groupby": true, @@ -4632,19 +4900,16 @@ }, { "__TableColumn__": { - "sum": false, + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": false, - "id": 32, + "avg": true, + "id": 15, "python_date_format": null, "max": false, - "column_name": "facility_code", + "column_name": "price_per_pack", "database_expression": null, "min": false, "verbose_name": null, @@ -4652,8 +4917,11 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "description": null, - "type": "VARCHAR", + "type": "DOUBLE PRECISION", "table_id": 1, "groupby": true, "is_dttm": false, @@ -4662,19 +4930,16 @@ }, { "__TableColumn__": { - "sum": false, + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": false, - "id": 33, + "avg": true, + "id": 14, "python_date_format": null, "max": false, - "column_name": "facility_id", + "column_name": "packs_to_ship", "database_expression": null, "min": false, "verbose_name": null, @@ -4682,8 +4947,11 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "description": null, - "type": "VARCHAR", + "type": "DOUBLE PRECISION", "table_id": 1, "groupby": true, "is_dttm": false, @@ -4692,19 +4960,16 @@ }, { "__TableColumn__": { - "sum": false, + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": false, - "id": 35, + "avg": true, + "id": 12, "python_date_format": null, "max": false, - "column_name": "facility_operator_code", + "column_name": "max_periods_of_stock", "database_expression": null, "min": false, "verbose_name": null, @@ -4712,8 +4977,11 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "description": null, - "type": "VARCHAR", + "type": "DOUBLE PRECISION", "table_id": 1, "groupby": true, "is_dttm": false, @@ -4722,19 +4990,16 @@ }, { "__TableColumn__": { - "sum": false, + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": false, - "id": 36, + "avg": true, + "id": 11, "python_date_format": null, "max": false, - "column_name": "facility_operator_id", + "column_name": "late_days", "database_expression": null, "min": false, "verbose_name": null, @@ -4742,8 +5007,11 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "description": null, - "type": "VARCHAR", + "type": "INTEGER", "table_id": 1, "groupby": true, "is_dttm": false, @@ -4754,25 +5022,25 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, "avg": false, - "id": 39, - "python_date_format": null, + "id": 54, + "python_date_format": "", "max": false, - "column_name": "facility_type_code", - "database_expression": null, + "column_name": "processing_schedule_name", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Processing Schedule", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": "", "type": "VARCHAR", "table_id": 1, "groupby": true, @@ -4784,17 +5052,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, "avg": false, - "id": 40, + "id": 38, "python_date_format": null, "max": false, - "column_name": "facility_type_id", + "column_name": "facility_status", "database_expression": null, "min": false, "verbose_name": null, @@ -4802,8 +5067,11 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, - "type": "VARCHAR", + "type": "BOOLEAN", "table_id": 1, "groupby": true, "is_dttm": false, @@ -4814,28 +5082,28 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, "avg": false, - "id": 44, + "id": 42, "python_date_format": null, "max": false, - "column_name": "id", + "column_name": "facilty_active_status", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, - "type": "UUID", + "type": "BOOLEAN", "table_id": 1, - "groupby": false, + "groupby": true, "is_dttm": false, "count_distinct": false } @@ -4844,17 +5112,14 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, "avg": false, - "id": 45, + "id": 57, "python_date_format": null, "max": false, - "column_name": "li_req_id", + "column_name": "program_active_status", "database_expression": null, "min": false, "verbose_name": null, @@ -4862,8 +5127,11 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": null, - "type": "VARCHAR", + "type": "BOOLEAN", "table_id": 1, "groupby": true, "is_dttm": false, @@ -4872,31 +5140,31 @@ }, { "__TableColumn__": { - "sum": false, + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": false, - "id": 46, - "python_date_format": null, + "avg": true, + "id": 5, + "python_date_format": "", "max": false, - "column_name": "modified_date", - "database_expression": null, + "column_name": "beginning_balance", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Beginning Balance", "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, - "type": "DATE", + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, + "description": "", + "type": "DOUBLE PRECISION", "table_id": 1, - "groupby": false, - "is_dttm": true, + "groupby": true, + "is_dttm": false, "count_distinct": false } }, @@ -4904,25 +5172,25 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 47, - "python_date_format": null, + "id": 34, + "python_date_format": "", "max": false, - "column_name": "orderable_id", - "database_expression": null, + "column_name": "facility_name", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Facility", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": "", "type": "VARCHAR", "table_id": 1, "groupby": true, @@ -4934,29 +5202,29 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 48, - "python_date_format": null, + "id": 37, + "python_date_format": "", "max": false, - "column_name": "processing_period_enddate", - "database_expression": null, + "column_name": "facility_operator_name", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Facility Operator", "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, - "type": "DATE", + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": "", + "type": "VARCHAR", "table_id": 1, - "groupby": false, - "is_dttm": true, + "groupby": true, + "is_dttm": false, "count_distinct": false } }, @@ -4964,25 +5232,25 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 49, - "python_date_format": null, + "id": 41, + "python_date_format": "", "max": false, - "column_name": "processing_period_id", - "database_expression": null, + "column_name": "facility_type_name", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Facility Type", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": "", "type": "VARCHAR", "table_id": 1, "groupby": true, @@ -4994,25 +5262,25 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 51, - "python_date_format": null, + "id": 50, + "python_date_format": "", "max": false, - "column_name": "processing_period_startdate", - "database_expression": null, + "column_name": "processing_period_name", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Processing Period", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": "", "type": "VARCHAR", "table_id": 1, "groupby": true, @@ -5024,25 +5292,25 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 52, - "python_date_format": null, + "id": 60, + "python_date_format": "", "max": false, - "column_name": "processing_schedule_code", - "database_expression": null, + "column_name": "program_name", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Program", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": "", "type": "VARCHAR", "table_id": 1, "groupby": true, @@ -5054,25 +5322,25 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 53, - "python_date_format": null, + "id": 65, + "python_date_format": "", "max": false, - "column_name": "processing_schedule_id", - "database_expression": null, + "column_name": "req_status", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Req Status", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": "", "type": "VARCHAR", "table_id": 1, "groupby": true, @@ -5082,28 +5350,28 @@ }, { "__TableColumn__": { - "sum": false, + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, - "avg": false, - "id": 58, - "python_date_format": null, + "avg": true, + "id": 2, + "python_date_format": "", "max": false, - "column_name": "program_code", - "database_expression": null, + "column_name": "amc", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "AMC", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, - "type": "VARCHAR", + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, + "description": "", + "type": "DOUBLE PRECISION", "table_id": 1, "groupby": true, "is_dttm": false, @@ -5114,25 +5382,25 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 59, - "python_date_format": null, + "id": 55, + "python_date_format": "", "max": false, - "column_name": "program_id", - "database_expression": null, + "column_name": "product_code", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Product Code", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": "", "type": "VARCHAR", "table_id": 1, "groupby": true, @@ -5144,25 +5412,25 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 61, - "python_date_format": null, + "id": 63, + "python_date_format": "", "max": false, - "column_name": "region_code", - "database_expression": null, + "column_name": "region_name", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Region", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": "", "type": "VARCHAR", "table_id": 1, "groupby": true, @@ -5174,25 +5442,25 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 62, - "python_date_format": null, + "id": 71, + "python_date_format": "", "max": false, - "column_name": "region_id", - "database_expression": null, + "column_name": "supplying_facility", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Supplying Facility", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": "", "type": "VARCHAR", "table_id": 1, "groupby": true, @@ -5202,118 +5470,58 @@ }, { "__TableColumn__": { - "sum": false, + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, - "avg": false, - "id": 64, - "python_date_format": null, + "avg": true, + "id": 19, + "python_date_format": "", "max": false, - "column_name": "req_created_date", - "database_expression": null, + "column_name": "total_cost", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Total Cost", "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, - "type": "DATE", - "table_id": 1, - "groupby": false, - "is_dttm": true, - "count_distinct": false - } - }, - { - "__TableColumn__": { - "sum": false, - "changed_on": { - "__datetime__": "2019-03-22T07:44:27" - }, - "expression": "", "created_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": false, - "id": 66, - "python_date_format": null, - "max": false, - "column_name": "requisition_line_item_id", - "database_expression": null, - "min": false, - "verbose_name": null, - "created_by_fk": null, - "filterable": false, - "is_active": true, - "changed_by_fk": null, - "description": null, - "type": "UUID", + "description": "", + "type": "DOUBLE PRECISION", "table_id": 1, - "groupby": false, + "groupby": true, "is_dttm": false, "count_distinct": false } }, { "__TableColumn__": { - "sum": false, + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, - "avg": false, - "id": 67, + "avg": true, + "id": 22, "python_date_format": null, "max": false, - "column_name": "status_date", + "column_name": "total_stockout_days", "database_expression": null, "min": false, "verbose_name": null, "created_by_fk": null, - "filterable": false, + "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, - "type": "DATE", - "table_id": 1, - "groupby": false, - "is_dttm": true, - "count_distinct": false - } - }, - { - "__TableColumn__": { - "sum": false, - "changed_on": { - "__datetime__": "2019-03-22T07:44:27" - }, - "expression": "", "created_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": false, - "id": 68, - "python_date_format": null, - "max": false, - "column_name": "status_req_id", - "database_expression": null, - "min": false, - "verbose_name": null, - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, "description": null, - "type": "VARCHAR", + "type": "DOUBLE PRECISION", "table_id": 1, "groupby": true, "is_dttm": false, @@ -5322,19 +5530,16 @@ }, { "__TableColumn__": { - "sum": false, + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, - "avg": false, - "id": 70, + "avg": true, + "id": 16, "python_date_format": null, "max": false, - "column_name": "supervisory_node", + "column_name": "requested_quantity", "database_expression": null, "min": false, "verbose_name": null, @@ -5342,8 +5547,11 @@ "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "description": null, - "type": "VARCHAR", + "type": "DOUBLE PRECISION", "table_id": 1, "groupby": true, "is_dttm": false, @@ -5354,25 +5562,25 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 72, - "python_date_format": null, + "id": 29, + "python_date_format": "", "max": false, - "column_name": "trade_item_id", - "database_expression": null, + "column_name": "district_name", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "District", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": "", "type": "VARCHAR", "table_id": 1, "groupby": true, @@ -5384,25 +5592,25 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 73, - "python_date_format": null, + "id": 43, + "python_date_format": "", "max": false, - "column_name": "username", - "database_expression": null, + "column_name": "full_product_name", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Full Product Name", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, + "description": "", "type": "VARCHAR", "table_id": 1, "groupby": true, @@ -5414,26 +5622,26 @@ "__TableColumn__": { "sum": false, "changed_on": { - "__datetime__": "2019-03-22T07:44:44" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:27" - }, "avg": false, - "id": 69, + "id": 56, "python_date_format": "", "max": false, - "column_name": "stock_status", + "column_name": "program", "database_expression": "", "min": false, - "verbose_name": "Stock Status", + "verbose_name": "Program", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:44" + }, "description": "", - "type": "TEXT", + "type": "VARCHAR", "table_id": 1, "groupby": true, "is_dttm": false, @@ -5444,24 +5652,24 @@ "__TableColumn__": { "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:44" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, "avg": true, - "id": 7, + "id": 21, "python_date_format": "", "max": false, - "column_name": "closing_balance", + "column_name": "total_received_quantity", "database_expression": "", "min": false, - "verbose_name": "Closing Balance", + "verbose_name": "Total Received Quantity", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "description": "", "type": "DOUBLE PRECISION", "table_id": 1, @@ -5474,25 +5682,25 @@ "__TableColumn__": { "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:44" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, "avg": true, - "id": 18, - "python_date_format": null, + "id": 1, + "python_date_format": "", "max": false, - "column_name": "total_consumed_quantity", - "database_expression": null, + "column_name": "adjusted_consumption", + "database_expression": "", "min": false, - "verbose_name": null, + "verbose_name": "Adjusted Consumption", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, - "description": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, + "description": "", "type": "DOUBLE PRECISION", "table_id": 1, "groupby": true, @@ -5502,1206 +5710,1058 @@ }, { "__TableColumn__": { - "sum": false, + "sum": true, "changed_on": { - "__datetime__": "2019-03-22T07:44:44" + "__datetime__": "2021-04-28T08:38:58" }, "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": false, - "id": 30, + "avg": true, + "id": 20, "python_date_format": "", "max": false, - "column_name": "emergency_status", + "column_name": "total_losses_and_adjustments", "database_expression": "", "min": false, - "verbose_name": "Emergency Status", + "verbose_name": "Total Losses and Adjustments", "created_by_fk": null, "filterable": true, "is_active": true, "changed_by_fk": null, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "description": "", - "type": "BOOLEAN", + "type": "DOUBLE PRECISION", "table_id": 1, "groupby": true, "is_dttm": false, "count_distinct": false } - }, + } + ], + "metrics": [ { - "__TableColumn__": { - "sum": false, + "__SqlMetric__": { + "metric_name": "avg__adjusted_consumption", "changed_on": { - "__datetime__": "2019-03-22T07:44:44" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "AVG(adjusted_consumption)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 1, "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": false, - "id": 31, - "python_date_format": "", - "max": false, - "column_name": "facility", - "database_expression": "", - "min": false, - "verbose_name": "Facility", - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": "", - "type": "VARCHAR", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "avg__amc", "changed_on": { - "__datetime__": "2019-03-22T07:44:44" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "AVG(amc)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 2, "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": true, - "id": 17, - "python_date_format": "", - "max": false, - "column_name": "stock_on_hand", - "database_expression": "", - "min": false, - "verbose_name": "Stock on Hand", - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": "", - "type": "DOUBLE PRECISION", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "avg__approved_quantity", "changed_on": { - "__datetime__": "2019-03-22T07:44:44" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": true, - "id": 3, - "python_date_format": null, - "max": false, - "column_name": "approved_quantity", - "database_expression": null, - "min": false, - "verbose_name": null, - "created_by_fk": null, - "filterable": true, - "is_active": true, "changed_by_fk": null, + "expression": "AVG(approved_quantity)", + "d3format": null, "description": null, - "type": "DOUBLE PRECISION", + "verbose_name": null, + "id": 3, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "avg__average_consumption", "changed_on": { - "__datetime__": "2019-03-22T07:44:44" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": true, - "id": 4, - "python_date_format": null, - "max": false, - "column_name": "average_consumption", - "database_expression": null, - "min": false, - "verbose_name": null, - "created_by_fk": null, - "filterable": true, - "is_active": true, "changed_by_fk": null, + "expression": "AVG(average_consumption)", + "d3format": null, "description": null, - "type": "DOUBLE PRECISION", + "verbose_name": null, + "id": 4, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "avg__beginning_balance", "changed_on": { - "__datetime__": "2019-03-22T07:44:44" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "AVG(beginning_balance)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 5, "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": true, - "id": 13, - "python_date_format": "", - "max": false, - "column_name": "order_quantity", - "database_expression": "", - "min": false, - "verbose_name": "Quantity Ordered", - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": "", - "type": "DOUBLE PRECISION", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "avg__calculated_order_quantity", "changed_on": { - "__datetime__": "2019-03-22T07:44:44" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": true, - "id": 6, - "python_date_format": null, - "max": false, - "column_name": "calculated_order_quantity", - "database_expression": null, - "min": false, - "verbose_name": null, - "created_by_fk": null, - "filterable": true, - "is_active": true, "changed_by_fk": null, + "expression": "AVG(calculated_order_quantity)", + "d3format": null, "description": null, - "type": "DOUBLE PRECISION", + "verbose_name": null, + "id": 6, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "avg__closing_balance", "changed_on": { - "__datetime__": "2019-03-22T07:44:44" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": true, - "id": 8, - "python_date_format": null, - "max": false, - "column_name": "combined_stockout", - "database_expression": null, - "min": false, - "verbose_name": null, - "created_by_fk": null, - "filterable": true, - "is_active": true, "changed_by_fk": null, + "expression": "AVG(closing_balance)", + "d3format": null, "description": null, - "type": "INTEGER", + "verbose_name": null, + "id": 7, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "avg__combined_stockout", "changed_on": { - "__datetime__": "2019-03-22T07:44:44" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": true, - "id": 9, - "python_date_format": null, - "max": false, - "column_name": "consumption", - "database_expression": null, - "min": false, - "verbose_name": null, - "created_by_fk": null, - "filterable": true, - "is_active": true, "changed_by_fk": null, + "expression": "AVG(combined_stockout)", + "d3format": null, "description": null, - "type": "DOUBLE PRECISION", + "verbose_name": null, + "id": 8, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "avg__consumption", "changed_on": { - "__datetime__": "2019-03-22T07:44:44" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "AVG(consumption)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 9, "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": true, - "id": 10, - "python_date_format": null, - "max": false, - "column_name": "due_days", - "database_expression": null, - "min": false, - "verbose_name": null, - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": null, - "type": "INTEGER", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" } }, { - "__TableColumn__": { - "sum": false, + "__SqlMetric__": { + "metric_name": "avg__due_days", "changed_on": { - "__datetime__": "2019-03-22T07:44:44" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "AVG(due_days)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 10, "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": false, - "id": 26, - "python_date_format": "", - "max": false, - "column_name": "country_name", - "database_expression": "", - "min": false, - "verbose_name": "Country", - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": "", - "type": "VARCHAR", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "avg__late_days", "changed_on": { - "__datetime__": "2019-03-22T07:44:44" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": true, - "id": 15, - "python_date_format": null, - "max": false, - "column_name": "price_per_pack", - "database_expression": null, - "min": false, - "verbose_name": null, - "created_by_fk": null, - "filterable": true, - "is_active": true, "changed_by_fk": null, + "expression": "AVG(late_days)", + "d3format": null, "description": null, - "type": "DOUBLE PRECISION", + "verbose_name": null, + "id": 11, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "avg__max_periods_of_stock", "changed_on": { - "__datetime__": "2019-03-22T07:44:44" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": true, - "id": 14, - "python_date_format": null, - "max": false, - "column_name": "packs_to_ship", - "database_expression": null, - "min": false, - "verbose_name": null, - "created_by_fk": null, - "filterable": true, - "is_active": true, "changed_by_fk": null, + "expression": "AVG(max_periods_of_stock)", + "d3format": null, "description": null, - "type": "DOUBLE PRECISION", + "verbose_name": null, + "id": 12, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "avg__order_quantity", "changed_on": { - "__datetime__": "2019-03-22T07:44:44" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": true, - "id": 12, - "python_date_format": null, - "max": false, - "column_name": "max_periods_of_stock", - "database_expression": null, - "min": false, - "verbose_name": null, - "created_by_fk": null, - "filterable": true, - "is_active": true, "changed_by_fk": null, + "expression": "AVG(order_quantity)", + "d3format": null, "description": null, - "type": "DOUBLE PRECISION", + "verbose_name": null, + "id": 13, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "avg__packs_to_ship", "changed_on": { - "__datetime__": "2019-03-22T07:44:44" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": true, - "id": 11, - "python_date_format": null, - "max": false, - "column_name": "late_days", - "database_expression": null, - "min": false, - "verbose_name": null, - "created_by_fk": null, - "filterable": true, - "is_active": true, "changed_by_fk": null, + "expression": "AVG(packs_to_ship)", + "d3format": null, "description": null, - "type": "INTEGER", + "verbose_name": null, + "id": 14, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" } }, { - "__TableColumn__": { - "sum": false, + "__SqlMetric__": { + "metric_name": "avg__price_per_pack", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "AVG(price_per_pack)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 15, "created_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": false, - "id": 54, - "python_date_format": "", - "max": false, - "column_name": "processing_schedule_name", - "database_expression": "", - "min": false, - "verbose_name": "Processing Schedule", - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": "", - "type": "VARCHAR", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" } }, { - "__TableColumn__": { - "sum": false, + "__SqlMetric__": { + "metric_name": "avg__requested_quantity", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" - }, - "avg": false, - "id": 38, - "python_date_format": null, - "max": false, - "column_name": "facility_status", - "database_expression": null, - "min": false, - "verbose_name": null, - "created_by_fk": null, - "filterable": true, - "is_active": true, "changed_by_fk": null, + "expression": "AVG(requested_quantity)", + "d3format": null, "description": null, - "type": "BOOLEAN", + "verbose_name": null, + "id": 16, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" } }, { - "__TableColumn__": { - "sum": false, + "__SqlMetric__": { + "metric_name": "avg__stock_on_hand", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "AVG(stock_on_hand)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 17, "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": false, - "id": 42, - "python_date_format": null, - "max": false, - "column_name": "facilty_active_status", - "database_expression": null, - "min": false, - "verbose_name": null, + "table_id": 1, "created_by_fk": null, - "filterable": true, - "is_active": true, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" + } + }, + { + "__SqlMetric__": { + "metric_name": "avg__total_consumed_quantity", + "changed_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "changed_by_fk": null, + "expression": "AVG(total_consumed_quantity)", + "d3format": null, "description": null, - "type": "BOOLEAN", + "verbose_name": null, + "id": 18, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" } }, { - "__TableColumn__": { - "sum": false, + "__SqlMetric__": { + "metric_name": "avg__total_cost", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "AVG(total_cost)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 19, "created_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": false, - "id": 57, - "python_date_format": null, - "max": false, - "column_name": "program_active_status", - "database_expression": null, - "min": false, - "verbose_name": null, + "table_id": 1, "created_by_fk": null, - "filterable": true, - "is_active": true, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" + } + }, + { + "__SqlMetric__": { + "metric_name": "avg__total_losses_and_adjustments", + "changed_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "changed_by_fk": null, + "expression": "AVG(total_losses_and_adjustments)", + "d3format": null, "description": null, - "type": "BOOLEAN", + "verbose_name": null, + "id": 20, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "avg__total_received_quantity", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "AVG(total_received_quantity)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 21, "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": true, - "id": 5, - "python_date_format": "", - "max": false, - "column_name": "beginning_balance", - "database_expression": "", - "min": false, - "verbose_name": "Beginning Balance", - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": "", - "type": "DOUBLE PRECISION", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" } }, { - "__TableColumn__": { - "sum": false, + "__SqlMetric__": { + "metric_name": "avg__total_stockout_days", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "AVG(total_stockout_days)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 22, "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": false, - "id": 34, - "python_date_format": "", - "max": false, - "column_name": "facility_name", - "database_expression": "", - "min": false, - "verbose_name": "Facility", + "table_id": 1, "created_by_fk": null, - "filterable": true, - "is_active": true, + "warning_text": null, + "is_restricted": false, + "metric_type": "avg" + } + }, + { + "__SqlMetric__": { + "metric_name": "count", + "changed_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "changed_by_fk": null, - "description": "", - "type": "VARCHAR", + "expression": "COUNT(*)", + "d3format": null, + "description": null, + "verbose_name": "COUNT(*)", + "id": 23, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "count" } }, { - "__TableColumn__": { - "sum": false, + "__SqlMetric__": { + "metric_name": "sum__adjusted_consumption", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "SUM(adjusted_consumption)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 24, "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": false, - "id": 37, - "python_date_format": "", - "max": false, - "column_name": "facility_operator_name", - "database_expression": "", - "min": false, - "verbose_name": "Facility Operator", + "table_id": 1, "created_by_fk": null, - "filterable": true, - "is_active": true, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" + } + }, + { + "__SqlMetric__": { + "metric_name": "sum__amc", + "changed_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "changed_by_fk": null, - "description": "", - "type": "VARCHAR", + "expression": "SUM(amc)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 25, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" } }, { - "__TableColumn__": { - "sum": false, + "__SqlMetric__": { + "metric_name": "sum__approved_quantity", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "SUM(approved_quantity)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 26, "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": false, - "id": 41, - "python_date_format": "", - "max": false, - "column_name": "facility_type_name", - "database_expression": "", - "min": false, - "verbose_name": "Facility Type", + "table_id": 1, "created_by_fk": null, - "filterable": true, - "is_active": true, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" + } + }, + { + "__SqlMetric__": { + "metric_name": "sum__average_consumption", + "changed_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "changed_by_fk": null, - "description": "", - "type": "VARCHAR", + "expression": "SUM(average_consumption)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 27, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" } }, { - "__TableColumn__": { - "sum": false, + "__SqlMetric__": { + "metric_name": "sum__beginning_balance", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "SUM(beginning_balance)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 28, "created_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": false, - "id": 50, - "python_date_format": "", - "max": false, - "column_name": "processing_period_name", - "database_expression": "", - "min": false, - "verbose_name": "Processing Period", + "table_id": 1, "created_by_fk": null, - "filterable": true, - "is_active": true, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" + } + }, + { + "__SqlMetric__": { + "metric_name": "sum__calculated_order_quantity", + "changed_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "changed_by_fk": null, - "description": "", - "type": "VARCHAR", + "expression": "SUM(calculated_order_quantity)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 29, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" } }, { - "__TableColumn__": { - "sum": false, + "__SqlMetric__": { + "metric_name": "sum__closing_balance", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "SUM(closing_balance)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 30, "created_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": false, - "id": 60, - "python_date_format": "", - "max": false, - "column_name": "program_name", - "database_expression": "", - "min": false, - "verbose_name": "Program", - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": "", - "type": "VARCHAR", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" } }, { - "__TableColumn__": { - "sum": false, + "__SqlMetric__": { + "metric_name": "sum__combined_stockout", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "SUM(combined_stockout)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 31, "created_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": false, - "id": 65, - "python_date_format": "", - "max": false, - "column_name": "req_status", - "database_expression": "", - "min": false, - "verbose_name": "Req Status", - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": "", - "type": "VARCHAR", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "sum__consumption", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "SUM(consumption)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 32, "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": true, - "id": 2, - "python_date_format": "", - "max": false, - "column_name": "amc", - "database_expression": "", - "min": false, - "verbose_name": "AMC", - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": "", - "type": "DOUBLE PRECISION", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" } }, { - "__TableColumn__": { - "sum": false, + "__SqlMetric__": { + "metric_name": "sum__due_days", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "SUM(due_days)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 33, "created_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": false, - "id": 55, - "python_date_format": "", - "max": false, - "column_name": "product_code", - "database_expression": "", - "min": false, - "verbose_name": "Product Code", - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": "", - "type": "VARCHAR", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" } }, { - "__TableColumn__": { - "sum": false, + "__SqlMetric__": { + "metric_name": "sum__late_days", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "SUM(late_days)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 34, "created_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": false, - "id": 63, - "python_date_format": "", - "max": false, - "column_name": "region_name", - "database_expression": "", - "min": false, - "verbose_name": "Region", - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": "", - "type": "VARCHAR", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" } }, { - "__TableColumn__": { - "sum": false, + "__SqlMetric__": { + "metric_name": "sum__max_periods_of_stock", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "SUM(max_periods_of_stock)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 35, "created_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": false, - "id": 71, - "python_date_format": "", - "max": false, - "column_name": "supplying_facility", - "database_expression": "", - "min": false, - "verbose_name": "Supplying Facility", - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": "", - "type": "VARCHAR", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "sum__order_quantity", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "SUM(order_quantity)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 36, "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": true, - "id": 19, - "python_date_format": "", - "max": false, - "column_name": "total_cost", - "database_expression": "", - "min": false, - "verbose_name": "Total Cost", - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": "", - "type": "DOUBLE PRECISION", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "sum__packs_to_ship", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" - }, - "expression": "", - "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": true, - "id": 22, - "python_date_format": null, - "max": false, - "column_name": "total_stockout_days", - "database_expression": null, - "min": false, - "verbose_name": null, - "created_by_fk": null, - "filterable": true, - "is_active": true, "changed_by_fk": null, + "expression": "SUM(packs_to_ship)", + "d3format": null, "description": null, - "type": "DOUBLE PRECISION", + "verbose_name": null, + "id": 37, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "sum__price_per_pack", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "SUM(price_per_pack)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 38, "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": true, - "id": 16, - "python_date_format": null, - "max": false, - "column_name": "requested_quantity", - "database_expression": null, - "min": false, - "verbose_name": null, + "table_id": 1, "created_by_fk": null, - "filterable": true, - "is_active": true, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" + } + }, + { + "__SqlMetric__": { + "metric_name": "sum__requested_quantity", + "changed_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "changed_by_fk": null, + "expression": "SUM(requested_quantity)", + "d3format": null, "description": null, - "type": "DOUBLE PRECISION", + "verbose_name": null, + "id": 39, + "created_on": { + "__datetime__": "2021-04-28T08:38:43" + }, "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" } }, { - "__TableColumn__": { - "sum": false, + "__SqlMetric__": { + "metric_name": "sum__stock_on_hand", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "SUM(stock_on_hand)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 40, "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": false, - "id": 29, - "python_date_format": "", - "max": false, - "column_name": "district_name", - "database_expression": "", - "min": false, - "verbose_name": "District", - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": "", - "type": "VARCHAR", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" } }, { - "__TableColumn__": { - "sum": false, + "__SqlMetric__": { + "metric_name": "sum__total_consumed_quantity", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "SUM(total_consumed_quantity)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 41, "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": false, - "id": 43, - "python_date_format": "", - "max": false, - "column_name": "full_product_name", - "database_expression": "", - "min": false, - "verbose_name": "Full Product Name", - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": "", - "type": "VARCHAR", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" } }, { - "__TableColumn__": { - "sum": false, + "__SqlMetric__": { + "metric_name": "sum__total_cost", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "SUM(total_cost)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 42, "created_on": { - "__datetime__": "2019-03-22T07:44:27" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": false, - "id": 56, - "python_date_format": "", - "max": false, - "column_name": "program", - "database_expression": "", - "min": false, - "verbose_name": "Program", - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": "", - "type": "VARCHAR", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "sum__total_losses_and_adjustments", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "SUM(total_losses_and_adjustments)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 43, "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": true, - "id": 21, - "python_date_format": "", - "max": false, - "column_name": "total_received_quantity", - "database_expression": "", - "min": false, - "verbose_name": "Total Received Quantity", - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": "", - "type": "DOUBLE PRECISION", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "sum__total_received_quantity", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "SUM(total_received_quantity)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 44, "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": true, - "id": 1, - "python_date_format": "", - "max": false, - "column_name": "adjusted_consumption", - "database_expression": "", - "min": false, - "verbose_name": "Adjusted Consumption", - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": "", - "type": "DOUBLE PRECISION", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" } }, { - "__TableColumn__": { - "sum": true, + "__SqlMetric__": { + "metric_name": "sum__total_stockout_days", "changed_on": { - "__datetime__": "2019-03-22T07:44:45" + "__datetime__": "2021-04-28T08:38:43" }, - "expression": "", + "changed_by_fk": null, + "expression": "SUM(total_stockout_days)", + "d3format": null, + "description": null, + "verbose_name": null, + "id": 45, "created_on": { - "__datetime__": "2019-03-22T07:44:26" + "__datetime__": "2021-04-28T08:38:43" }, - "avg": true, - "id": 20, - "python_date_format": "", - "max": false, - "column_name": "total_losses_and_adjustments", - "database_expression": "", - "min": false, - "verbose_name": "Total Losses and Adjustments", - "created_by_fk": null, - "filterable": true, - "is_active": true, - "changed_by_fk": null, - "description": "", - "type": "DOUBLE PRECISION", "table_id": 1, - "groupby": true, - "is_dttm": false, - "count_distinct": false + "created_by_fk": null, + "warning_text": null, + "is_restricted": false, + "metric_type": "sum" } } ], "database": { "__Database__": { - "allow_csv_upload": true, - "database_name": "main", - "created_by_fk": null, "allow_ctas": false, "sqlalchemy_uri": "postgresql+psycopg2://postgres:XXXXXXXXXX@db:5432/open_lmis_reporting", "changed_by_fk": null, "allow_dml": false, - "password": "p@ssw0rd", + "password": null, "force_ctas_schema": null, "cache_timeout": null, - "allow_multi_schema_metadata_fetch": true, "created_on": { - "__datetime__": "2019-03-22T07:44:25" + "__datetime__": "2021-04-28T08:38:43" }, + "allow_multi_schema_metadata_fetch": false, "select_as_create_table_as": false, + "extra": "{\r\n \"metadata_params\": {},\r\n \"engine_params\": {}\r\n}\r\n", "changed_on": { - "__datetime__": "2019-03-22T07:44:53" + "__datetime__": "2021-04-28T08:39:04" }, - "extra": "{\r\n \"metadata_params\": {},\r\n \"engine_params\": {}\r\n}\r\n", "expose_in_sqllab": true, - "perm": "[main].(id:1)", "id": 1, + "perm": "[main].(id:1)", "allow_run_sync": true, "verbose_name": null, "impersonate_user": false, - "allow_run_async": false + "allow_run_async": false, + "database_name": "main", + "created_by_fk": null, + "allow_csv_upload": true } } } } ] -} +} \ No newline at end of file diff --git a/reporting/cron/Dockerfile b/reporting/cron/Dockerfile index 0ef55a71..86dfe5fa 100644 --- a/reporting/cron/Dockerfile +++ b/reporting/cron/Dockerfile @@ -1,4 +1,4 @@ -FROM gliderlabs/alpine:3.4 +FROM alpine:3.11 COPY ./periodic /cron/periodic diff --git a/reporting/cron/periodic/15min/refresh-mv b/reporting/cron/periodic/15min/refresh-mv index e2042afc..66605972 100755 --- a/reporting/cron/periodic/15min/refresh-mv +++ b/reporting/cron/periodic/15min/refresh-mv @@ -37,4 +37,5 @@ psql <<-EOSQL REFRESH MATERIALIZED VIEW reporting_rate_and_timeliness; REFRESH MATERIALIZED VIEW adjustments; REFRESH MATERIALIZED VIEW stock_status_and_consumption; + REFRESH MATERIALIZED VIEW facilities; EOSQL diff --git a/reporting/db/Dockerfile b/reporting/db/Dockerfile index 8c36da54..edee0aa5 100644 --- a/reporting/db/Dockerfile +++ b/reporting/db/Dockerfile @@ -1,4 +1,4 @@ -FROM gliderlabs/alpine:3.4 +FROM alpine:3.11 COPY ./docker-entrypoint-initdb.d /docker-entrypoint-initdb.d diff --git a/reporting/db/docker-entrypoint-initdb.d/templates/OlmisCreateTableStatements.sql b/reporting/db/docker-entrypoint-initdb.d/templates/OlmisCreateTableStatements.sql index ed839dfc..520340c2 100644 --- a/reporting/db/docker-entrypoint-initdb.d/templates/OlmisCreateTableStatements.sql +++ b/reporting/db/docker-entrypoint-initdb.d/templates/OlmisCreateTableStatements.sql @@ -2296,3 +2296,13 @@ FROM kafka_requisitions r WITH DATA; ALTER MATERIALIZED VIEW stock_status_and_consumption OWNER TO postgres; + +CREATE MATERIALIZED VIEW facilities AS +SELECT f.code as code, f.name as name, gz.name as district, ft.name as type, fo.name as operator_name +FROM public.kafka_facilities f +left join public.kafka_geographic_zones gz on gz.id = f.geographiczoneid +left join public.kafka_facility_types ft on ft.id = f.typeid +left join public.kafka_facility_operators fo on fo.id = f.operatedbyid +WITH DATA; + +ALTER MATERIALIZED VIEW facilities OWNER TO postgres; \ No newline at end of file diff --git a/reporting/docker-compose.yml b/reporting/docker-compose.yml index 8dd9de0e..d7ca3e2e 100644 --- a/reporting/docker-compose.yml +++ b/reporting/docker-compose.yml @@ -158,18 +158,18 @@ services: syslog-address: "udp://127.0.0.1:${SYSLOG_UDP_PORT}" depends_on: [kafka] - # connect-reg: - # image: openlmis/toolbelt - # env_file: settings.env - # volumes: - # - config-volume:/config - # entrypoint: > - # bash -c "/config/connect/register.sh" - # logging: - # driver: syslog - # options: - # syslog-address: "udp://127.0.0.1:${SYSLOG_UDP_PORT}" - # depends_on: [connect] + connect-reg: + image: openlmis/toolbelt + env_file: settings.env + volumes: + - config-volume:/config + entrypoint: > + bash -c "/config/connect/register.sh" + logging: + driver: syslog + options: + syslog-address: "udp://127.0.0.1:${SYSLOG_UDP_PORT}" + depends_on: [connect] kafka-rest: image: confluentinc/cp-kafka-rest:${OL_CONFLUENT_VERSION} diff --git a/reporting/superset/Dockerfile b/reporting/superset/Dockerfile index 3162fac5..509f9192 100644 --- a/reporting/superset/Dockerfile +++ b/reporting/superset/Dockerfile @@ -18,7 +18,7 @@ ENV GUNICORN_BIND=0.0.0.0:8088 \ LANG=C.UTF-8 \ LC_ALL=C.UTF-8 \ PYTHONPATH=/etc/superset:/home/superset:$PYTHONPATH \ - SUPERSET_REPO=apache/incubator-superset \ + SUPERSET_REPO=apache/superset \ SUPERSET_VERSION=${SUPERSET_VERSION} \ SUPERSET_PATCHUP_VERSION=${SUPERSET_PATCHUP_VERSION} \ SUPERSET_PATCHUP_REPO=https://github.com/OpenLMIS/superset-patchup.git@${SUPERSET_PATCHUP_VERSION} \ @@ -98,12 +98,12 @@ RUN npm install -g yarn RUN npm install -g po2json # Fetching dependecies and first build -RUN wget -P /tmp https://github.com/apache/incubator-superset/archive/${SUPERSET_VERSION}.zip \ +RUN wget -P /tmp https://github.com/apache/superset/archive/${SUPERSET_VERSION}.zip \ && unzip /tmp/${SUPERSET_VERSION}.zip -d /tmp \ && rsync -a \ --remove-source-files \ --chown=superset:superset \ - /tmp/incubator-superset-${SUPERSET_VERSION}/superset/assets $APP_DIR \ + /tmp/superset-${SUPERSET_VERSION}/superset/assets $APP_DIR \ && rm -r /tmp/${SUPERSET_VERSION}.zip RUN cd $APP_DIR/assets && yarn install diff --git a/reporting/superset/README.md b/reporting/superset/README.md index 4e2eb7d5..d4d3377c 100644 --- a/reporting/superset/README.md +++ b/reporting/superset/README.md @@ -8,7 +8,7 @@ This project is unofficial and not related to Superset or Apache. Please **only** file issues in this project that are related to Docker and **do** include the Docker commands or compose configuration of your setup when filing issues (be sure to hide any secrets/passwords before submitting). -File issues/bugs with Superset at the [source](https://github.com/apache/incubator-superset/issues). +File issues/bugs with Superset at the [source](https://github.com/apache/superset/issues). Please **do not** files issues like "Please include `` in the Dockerfile," open a [pull request](https://github.com/amancevice/superset/pulls) for updates/enhancements. @@ -25,7 +25,7 @@ This repo is tagged in parallel with superset. Pulling `amancevice/superset:0.18 ## Configuration -Follow the [instructions](https://superset.incubator.apache.org/installation.html#configuration) provided by Apache Superset for writing your own `superset_config.py`. Place this file in a local directory and mount this directory to `/etc/superset` inside the container. This location is included in the image's `PYTHONPATH`. Mounting this file to a different location is possible, but it will need to be in the `PYTHONPATH`. +Follow the [instructions](https://superset.apache.org/installation.html#configuration) provided by Apache Superset for writing your own `superset_config.py`. Place this file in a local directory and mount this directory to `/etc/superset` inside the container. This location is included in the image's `PYTHONPATH`. Mounting this file to a different location is possible, but it will need to be in the `PYTHONPATH`. View the contents of the [`examples`](./examples) directory to see some simple `superset_config.py` samples. diff --git a/reporting/superset/requirements.txt b/reporting/superset/requirements.txt index cd48515e..080e5f70 100644 --- a/reporting/superset/requirements.txt +++ b/reporting/superset/requirements.txt @@ -13,10 +13,12 @@ babel==2.8.0 # via flask-babel backoff==1.10.0 # via apache-superset billiard==3.6.3.0 # via celery bleach==3.1.5 # via apache-superset +boto3==1.4.7 +botocore==1.7.48 brotli==1.0.7 # via flask-compress celery==4.4.2 # via apache-superset cffi==1.14.0 # via cryptography -click==7.1.2 # via apache-superset, flask, flask-appbuilder +click==6.7 # via apache-superset, flask, flask-appbuilder colorama==0.4.3 # via apache-superset, flask-appbuilder contextlib2==0.6.0.post1 # via apache-superset croniter==0.3.31 # via apache-superset @@ -46,6 +48,7 @@ importlib-metadata==1.6.0 # via jsonschema, kombu, markdown isodate==0.6.0 # via apache-superset itsdangerous==1.1.0 # via flask, flask-wtf jinja2==2.11.2 # via flask, flask-babel +jmespath==0.9.3 # via boto3, botocore jsonschema==3.2.0 # via flask-appbuilder kombu==4.6.8 # via celery mako==1.1.2 # via alembic @@ -53,7 +56,7 @@ markdown==3.2.2 # via apache-superset markupsafe>=1.1.1 # via jinja2, mako, wtforms marshmallow-enum==1.5.1 # via flask-appbuilder marshmallow-sqlalchemy==0.23.0 # via flask-appbuilder -marshmallow==2.21.0 # via flask-appbuilder, marshmallow-enum, marshmallow-sqlalchemy +marshmallow==2.19.5 # via flask-appbuilder, marshmallow-enum, marshmallow-sqlalchemy msgpack==0.6.2 # via apache-superset numpy==1.18.4 # via pandas, pyarrow packaging==20.3 # via bleach @@ -65,6 +68,7 @@ prison==0.1.3 # via flask-appbuilder py==1.8.1 # via retry pyarrow==0.16.0 # via apache-superset pycparser==2.20 # via cffi +pydruid==0.4.4 pyjwt==1.7.1 # via flask-appbuilder, flask-jwt-extended pyparsing==2.4.7 # via packaging pyrsistent==0.16.0 # via jsonschema @@ -76,18 +80,23 @@ python3-openid==3.1.0 # via flask-openid pytz==2020.1 # via babel, celery, flask-babel, pandas pyyaml==5.3.1 # via apache-superset, apispec retry==0.9.2 # via apache-superset +rfc3986==1.1.0 # via tableschema +s3transfer==0.1.13 # via boto3 selenium==3.141.0 # via apache-superset simplejson==3.17.0 # via apache-superset six==1.14.0 # via bleach, cryptography, flask-jwt-extended, flask-talisman, isodate, jsonschema, packaging, pathlib2, polyline, prison, pyarrow, pyrsistent, python-dateutil, sqlalchemy-utils, wtforms-json sqlalchemy-utils==0.36.5 # via apache-superset, flask-appbuilder sqlalchemy==1.3.17 # via alembic, apache-superset, flask-sqlalchemy, marshmallow-sqlalchemy, sqlalchemy-utils sqlparse==0.3.1 # via apache-superset +tableschema==1.8.0 +tabulator==1.24.3 # via tableschema urllib3==1.25.9 # via selenium vine==1.3.0 # via amqp, celery webencodings==0.5.1 # via bleach werkzeug==1.0.1 # via flask, flask-jwt-extended wtforms-json==0.3.3 # via apache-superset wtforms==2.3.1 # via flask-wtf, wtforms-json +xlrd==2.0.1 # via tabulator zipp==3.1.0 # via importlib-metadata # The following packages are considered to be unsafe in a requirements file: diff --git a/utils/bzt-yarn/Dockerfile b/utils/bzt-yarn/Dockerfile index def8a9ce..b0d42375 100644 --- a/utils/bzt-yarn/Dockerfile +++ b/utils/bzt-yarn/Dockerfile @@ -1,4 +1,4 @@ -FROM blazemeter/taurus:1.13.1 +FROM blazemeter/taurus:1.15.1 RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \