Skip to content

Commit

Permalink
improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-loetzsch committed Jul 13, 2020
1 parent d4dfa36 commit a54a916
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
@@ -1,5 +1,5 @@
# Changelog

## 1.0.0 (2020-07-09)
## 1.0.0 - 1.0.1 (2020-07-09)

- Initial release
18 changes: 10 additions & 8 deletions README.md
Expand Up @@ -8,7 +8,7 @@

A python interface for [Mondrian server](https://github.com/project-a/mondrian-server), a [Mondrian](https://en.wikipedia.org/wiki/Mondrian_OLAP_server) [XMLA](https://en.wikipedia.org/wiki/XML_for_Analysis) server combined with the [Saiku](https://www.meteorite.bi/products/saiku/) ad hoc analysis tool. Comes with

- A [Makefile](.scripts/mondrian-server.mk) for running Mondrian Server locally.
- A Makefile for running Mondrian Server locally.

- [Mondrian schma](https://mondrian.pentaho.com/documentation/schema.php) generation from a [Mara Schema](https://github.com/mara/mara-schema) definition.

Expand Down Expand Up @@ -40,35 +40,37 @@ For an example of an integration into a flask application, have a look at the [m

## Running Saiku

From within a Mara project, include [.scripts/mondrian-server.mk] in your project Makefile (as for example in [https://github.com/mara/mara-example-project-1/blob/master/Makefile](https://github.com/mara/mara-example-project-1/blob/master/Makefile)).
From within a project, include [.scripts/mondrian-server.mk](https://github.com/mara/mara-mondrian/tree/master/.scripts/mondrian-server.mk) in your project Makefile (as for example in [https://github.com/mara/mara-example-project-1/blob/master/Makefile](https://github.com/mara/mara-example-project-1/blob/master/Makefile)).

Then running `make run-mondrian-server` will start Saiku and the XMLA server on port 8080:
Running `make setup-mondrian-server` will create the required `mondrian-server.properties` file. And then running `make run-mondrian-server` will start Saiku and the XMLA server on port 8080:

![Saiku](docs/saiku.png)

For running mondrian server in production, please have a look at [https://github.com/project-a/mondrian-server/blob/master/README.md](https://github.com/project-a/mondrian-server/blob/master/README.md).

 

## Mondrian schema generation
## Features

### Mondrian schema generation

If you have a data warehouse schema defined in [Mara Schema](https://github.com/mara/mara-schema), then you can automatically create a mondrian schema file using the function `write_mondrian_schema` in [mara_mondrian/schema_generation.py](mara_mondrian/schema_generation.py).

Have a look at [https://github.com/mara/mara-example-project-1/blob/master/app/pipelines/update_frontends/__init__.py](https://github.com/mara/mara-example-project-1/blob/master/app/pipelines/update_frontends/__init__.py) for an example.

 

## Mondrian cache flushing
### Mondrian cache flushing

With the function `flush_mondrian_cache` in [mara_mondrian/connection.py](mara_mondrian/connection.py) you can trigger a reload of the schema and a flushing of all caches in mondrian server.
The function `flush_mondrian_cache` in [mara_mondrian/connection.py](https://github.com/mara/mara-mondrian/tree/master/mara_mondrian/connection.py) triggers a reload of the schema and a flushing of all caches in mondrian server.

This file also contains functions for making XMLA requests.

 

## Saiku authentication via [Mara ACL](https://github.com/mara/mara-acl)
### Saiku authentication via [Mara ACL](https://github.com/mara/mara-acl)

Once you add the Saiku ACL resource in [mara_mondrian/views.py](mara_mondrian/views.py) to your project, you can control easily control which users can query which cubes:
Once you add the Saiku ACL resource in [mara_mondrian/views.py](https://github.com/mara/mara-mondrian/tree/master/mara_mondrian/views.py) to your project, you can control easily control which users can query which cubes:

![Saiku ACL](docs/acl.png)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -7,7 +7,7 @@ def get_long_description():

setup(
name='mara-mondrian',
version='1.0.0',
version='1.0.1',

description='A python integration for the Saiku ad hoc analysis tool',

Expand Down

0 comments on commit a54a916

Please sign in to comment.