Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
olapy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
olapy
Commits
1bf75ab7
Commit
1bf75ab7
authored
May 12, 2017
by
mouadh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
web-config docstring update
parent
5b0b7a2f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
94 deletions
+68
-94
olapy/core/mdx/tools/config_file_parser.py
olapy/core/mdx/tools/config_file_parser.py
+68
-94
No files found.
olapy/core/mdx/tools/config_file_parser.py
View file @
1bf75ab7
...
...
@@ -117,32 +117,35 @@ class ConfigParser:
WEB Config file Structure::
<?xml version="1.0" encoding="UTF-8"?>
<cubes>
<cube>
<!-- cube name => db name -->
<name>mpr</name>
<!-- source : postgres | csv -->
<source>postgres</source>
<!--
star building customized star schema
-->
<!-- star building customized star schema -->
<facts>
<!-- facts table name -->
<table_name>projet</table_name>
<keys>
<!-- ref = table_name.column -->
<column_name ref="vocabulary_crm_status.id">status_id</column_name>
<column_name ref="vocabulary_crm_pole_leader.id">pole_leader_id</column_name>
<column_name ref="contact.id">contact_id</column_name>
<column_name ref="compte.id">compte_porteur_id</column_name>
<column_name ref="vocabulary_crm_aap_type.id">aap_name_id</column_name>
</keys>
<!-- specify measures explicitly -->
<measures>
<!-- by default, all number type columns in facts table, or you can specify them here -->
<name>budget_total</name>
...
...
@@ -152,66 +155,37 @@ class ConfigParser:
</facts>
<!--
end building customized star schema
-->
<!-- -------------------------------------------------------- -->
<!-- FOR WEB -->
<!-- end building customized star schema -->
<tables>
<!-- Table name -->
<table name="vocabulary_crm_status">
<!-- Columns to keep (exclude id)-->
<!-- They must be seperated with comma ',' -->
<columns>label,active</columns>
<!-- Change insignificant table columns names -->
<!-- {IMPORTANT} Renaming COMMUN columns between dimensions and other columns if you want, other than ids column -->
<new_name old_column_name="label">status_label</new_name>
</table>
<!-- *********************** -->
<!-- Table name -->
<table name="vocabulary_crm_pole_leader
">
<table name="vocabulary_crm_status
">
<!-- Columns to keep (exclude
id)-->
<!-- Columns to keep (INCLUDING
id)-->
<!-- They must be seperated with comma ',' -->
<columns>
label</columns>
<columns>id,
label</columns>
<!-- Change insignificant table columns names -->
<!-- {IMPORTANT} Renaming COMMUN columns between dimensions and other columns if you want, other than ids column -->
<new_name old_column_name="label">pole_leader_label
</new_name>
<new_name old_column_name="label">Status
</new_name>
</table>
<!-- *********************** -->
<!-- Table name -->
<table name="contact">
<!-- Columns to keep (exclude id)-->
<!-- They must be seperated with comma ',' -->
<columns>nom,prenom,fonction</columns>
<columns>id,nom,prenom,fonction</columns>
</table>
</tables>
<!-- END FOR WEB -->
<!-- -------------------------------------------------------- -->
</tables>
</cube>
</cubes>
"""
# TODO one config file (I will try to merge dimensions between them in web part)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment