Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fireant 1.0 Rewrite #151

Merged
merged 163 commits into from
Sep 14, 2018
Merged

Fireant 1.0 Rewrite #151

merged 163 commits into from
Sep 14, 2018

Conversation

twheys
Copy link
Contributor

@twheys twheys commented Jan 17, 2018

Rewrite of the entire package

Notable changes:

  • Rewrote Slicer API, slicer queries can now implicitly serve multiple widgets and highcharts charts with different chart types on each axis
  • Removed Dashboard package and WidgetGroup since they are now redundant
  • Removed requirement to define which joins are necessary in the slicer configuration
  • Rewrote query builder to be much smaller
  • Rewrote transformer code to be much smaller

Still needs doing

  • Write highcharts transformer
  • Add tests for highcharts pie charts
  • Write pandas transformer
  • Write csv transformer
  • Write matplotlib transformer
  • Add totals
  • Add support for basic operations (cumsum, cumavg)
  • Add fix for leap years to YoY reference queries
  • Add pagination
  • Add function for querying dimension options
  • Adapt documentation

@twheys twheys added the 1.0 label Jan 17, 2018
@twheys twheys self-assigned this Jan 17, 2018
@twheys twheys force-pushed the fireant1.0 branch 4 times, most recently from 1574328 to f54bcee Compare January 19, 2018 09:19
@twheys twheys force-pushed the fireant1.0 branch 5 times, most recently from 9f10a67 to f5937cd Compare January 23, 2018 16:54
@coveralls
Copy link

coveralls commented Jan 23, 2018

Coverage Status

Coverage decreased (-3.1%) to 91.904% when pulling 53301bd on fireant1.0 into 9ac6b3a on master.

@twheys twheys force-pushed the fireant1.0 branch 6 times, most recently from 91e4835 to d13ed5d Compare January 23, 2018 17:44
:param data_frame:
:return:
"""
dv_by_dimension = {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea what dv stands for.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will fix


def _render_y_axis(self, axis_idx, color, references):
"""
Renders the yAxis configuraiton.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo in configuraiton

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, will fix

"""
Renders the xAxis configuraiton.

https://api.highcharts.com/highcharts/yAxis
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good that you're putting the documentation link for the highcharts elements. That helps a lot when debugging or changing behaviour.


def _render_x_axis(self, data_frame, dimension_display_values):
"""
Renders the xAxis configuraiton.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo in configuraiton

"title": {"text": reference.label},
"opposite": True,
"labels": {"style": {"color": color}}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those 3 lines seem to be badly indented.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will fix


def _render_plot_options(self, data_frame):
"""
Renders the plotOptions configuration
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing a dot in the end of the sentence. Don't think it's a big deal, but noticed you've put them for all other methods.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will fix. Looks better if it's consistent

twheys and others added 27 commits August 23, 2018 12:53
…frame that drops the metrics column index level when only a single metric is used. The changed accessor value was incorrect, the dropped metric name index level value is not reflected in the data.
Fixed the replacement of display values on multiindex data frames in …
…gh charts transformer would raise an unhandled exception
Added handle for empty sort array in pandas transformer
…es_for_highcharts

Fixed a case where if a null was returned for a display value, the hi…
Fixed sorting data frames with no dimensions
…p matplotlib tests if matplotlib is not installed
@twheys twheys changed the title [WIP] Fireant 1.0 Rewrite Fireant 1.0 Rewrite Sep 14, 2018
@twheys twheys merged commit 9929580 into master Sep 14, 2018
@twheys twheys deleted the fireant1.0 branch December 13, 2018 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants