Skip to content

Commit

Permalink
upgrade document
Browse files Browse the repository at this point in the history
Fixing the damn build (apache#3179)

* Fixing the build

* Going deeper

[bugfix] only filterable columns should show up in FilterBox list (apache#3105)

* [bugfix] only filterable columns should show up in FilterBox list

* Touchups

Datasource cannot be empty (apache#3035)

add title description to model view (apache#3045)

* add title description to model view

* add missing import

Add 'show/hide totals' option to pivot table vis (apache#3101)

[bugfix] numeric value for date fields in table viz (apache#3036)

Bug was present only when using the NOT GROUPED BY option

fixes apache#3027

fix hive.fetch_logs (apache#2968)

add Zalando to the list of organizations (apache#3171)

docs: fixup installation examples code indentation (apache#3169)

[bugfix] fix bar order (apache#3180)

[bugfix] visualize flow error: 'Metric x is not valid' (apache#3181)

The metric name in the frontend doesn't match the one generated on the
backend. It turns out the explore view will default to the first
metric so specifying one isn't needed.

Fix the segment interval for pulling metadata (apache#3174)

The end of the interval would be on the truncated today date, which
means that you will exclude today. If your realtime ingestion job
runs shorter than a day, the metadata cannot be pulled from the
druid cluster.

Bump cryptography to 1.9 (apache#3065)

As 1.7.2 doesn't compile here with openssl 1.1.0f

Escaping the user's SQL in the explore view (apache#3186)

* Escaping the user's SQL in the explore view

When executing SQL from SQL Lab, we use a lower level API to the
database which doesn't require escaping the SQL. When going through
the explore view, the stack chain leading to the same method may need
escaping depending on how the DBAPI driver is written, and that is the
case for Presto (and perhaps other drivers).

* Using regex to avoid doubling doubles

[sqllab] improve Hive support (apache#3187)

* [sqllab] improve Hive support

* Fix "Transport not open" bug
* Getting progress bar to show
* Bump pyhive to 0.4.0
* Getting [Track Job] button to show

* Fix testzz

Add BigQuery engine specifications (apache#3193)

As contributed by @mxmzdlv on issue apache#945

[bugfix] fix merge conflict that broke Hive support (apache#3196)

Adding 'apache' to docs (apache#3194)

[druid] Allow custom druid postaggregators (apache#3146)

* [druid] Allow custom druid postaggregators

Also, fix the postaggregation for approxHistogram quantiles so it adds
the dependent field and that can show up in the graphs/tables.

In general, postAggregators add significant power, we should probably
support including custom postAggregators. Plywood has standard
postAggregators here, and a customAggregator escape hatch that allows
you to define custom postAggregators.

This commit adds a similar capability for Superset and a additional
field/fields/fieldName breakdown of the typical naming for dependent
aggregations, which should make it significantly easier to develop
approxHistogram and custom postAggregation-required dashboards.

* [druid] Minor style cleanup in tests file.

* [druid] Apply code review suggestions

* break out CustomPostAggregator into separate class. This just cleans
  up the creation of the postaggregator a little bit.
* minor style issues.
* move the function around so the git diff is more readable

add combine config for metrics in pivot table (apache#3086)

* add combine config for metrics in pivot table

* change method to stack/unstack

* update backendSync

Autofocus search input in VizTypeControl modal onEnter (apache#2929)

Speed up JS build time (apache#3203)

Also bumping a few related libs

JS Translation

JS translations

js translation

fix issue 3204 (apache#3205)

[bugfix] capture Hive job_id pre-url transformation (apache#3213)

js translation

fix issue 3204 (apache#3205)

[bugfix] capture Hive job_id pre-url transformation (apache#3213)

[docs] update url in CONTRIBUTING.md (apache#3212)

[sqllab/cosmetics] add margin-top for labels in query history (apache#3222)

[explore] nvd3 sort values in rich tooltip (apache#3197)

[sqllab] fix UI shows 'The query returned no results' momentarily (apache#3214)

this is visible when running async queries between the fetching and
success state as the rows are getting cached in the component

[explore] DatasourceControl to pick datasource in modal (apache#3210)

* [explore] DatasourceControl to pick datasource in modal

Makes it easier to change datasource, also makes it such that the list
of all datasources doesn't need to be loaded upfront.

* Adding more metadata
  • Loading branch information
lxzhangchao committed Aug 2, 2017
1 parent c609467 commit 63bf3cf
Show file tree
Hide file tree
Showing 111 changed files with 18,020 additions and 3,206 deletions.
16 changes: 11 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ meets these guidelines:

## Documentation

The latest documentation and tutorial are available [here](http://airbnb.io/superset).
The latest documentation and tutorial are available [here](https://superset.incubator.apache.org/).

Contributing to the official documentation is relatively easy, once you've setup
your environment and done an edit end-to-end. The docs can be found in the
Expand Down Expand Up @@ -144,7 +144,7 @@ referenced in the rst, e.g.

aren't actually included in that directory. _Instead_, you'll want to add and commit
images (and any other static assets) to the _superset/assets/images_ directory.
When the docs are being pushed to [airbnb.io](http://airbnb.io/superset/), images
When the docs are being pushed to [Apache Superset (incubating)](https://superset.incubator.apache.org/), images
will be moved from there to the _\_static/img_ directory, just like they're referenced
in the docs.

Expand All @@ -161,12 +161,12 @@ instead.

## Setting up a Python development environment

Check the [OS dependencies](http://airbnb.io/superset/installation.html#os-dependencies) before follows these steps.
Check the [OS dependencies](https://superset.incubator.apache.org/installation.html#os-dependencies) before follows these steps.

# fork the repo on GitHub and then clone it
# alternatively you may want to clone the main repo but that won't work
# so well if you are planning on sending PRs
# git clone git@github.com:airbnb/superset.git
# git clone git@github.com:apache/incubator-superset.git

# [optional] setup a virtual env and activate it
virtualenv env
Expand Down Expand Up @@ -331,6 +331,8 @@ key is to instrument the strings that need translation using
a module, all you have to do is to `_("Wrap your strings")` using the
underscore `_` "function".

We use `import {t, tn, TCT} from locales;` in js, JSX file, locales is in `./superset/assets/javascripts/` directory.

To enable changing language in your environment, you can simply add the
`LANGUAGES` parameter to your `superset_config.py`. Having more than one
options here will add a language selection dropdown on the right side of the
Expand All @@ -342,6 +344,10 @@ navigation bar.
'zh': {'flag': 'cn', 'name': 'Chinese'},
}

We need to extract the string to be translated, run the following command:

pybabel extract -F ./babel/babel.cfg -k _ -k __ -k t -k tn -k tct -o ./babel/messages.pot .

As per the [Flask AppBuilder documentation] about translation, to create a
new language dictionary, run the following command:

Expand Down Expand Up @@ -379,4 +385,4 @@ to take effect, they need to be compiled using this command:

Here's an example as a Github PR with comments that describe what the
different sections of the code do:
https://github.com/airbnb/superset/pull/3013
https://github.com/apache/incubator-superset/pull/3013
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,4 @@ the world know they are using Superset. Join our growing community!
- [Tooploox](https://www.tooploox.com/)
- [Udemy](https://www.udemy.com/)
- [Yahoo!](www.yahoo.com)
- [Zalando](https://www.zalando.com)
4 changes: 4 additions & 0 deletions babel/babel.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
[ignore: superset/assets/node_modules/**]
[python: superset/**.py]
[jinja2: superset/**/templates/**.html]
[javascript: superset/assets/javascripts/**.js]
[javascript: superset/assets/javascripts/**.jsx]
[javascript: superset/assets/visualizations/**.js]
[javascript: superset/assets/visualizations/**.jsx]
encoding = utf-8
Loading

0 comments on commit 63bf3cf

Please sign in to comment.