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

Feature analytics #31

Merged
merged 6 commits into from
Nov 13, 2020
Merged

Feature analytics #31

merged 6 commits into from
Nov 13, 2020

Conversation

philip-ulrich
Copy link
Contributor

replaces #19 since the rebase completely screwed it up.

"Adding tool to generate PDF reports with statistics using matplotlib"

@philip-ulrich philip-ulrich changed the base branch from master to develop November 13, 2020 05:08
@philip-ulrich philip-ulrich changed the base branch from develop to master November 13, 2020 05:08
@philip-ulrich philip-ulrich changed the base branch from master to develop November 13, 2020 05:27
print("Report saved as " + filename)

def load_sessions(self):
path = self.username + "/sessions.json"
Copy link
Member

Choose a reason for hiding this comment

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

We should provide an API for fetching the path for the session. The way it is right now makes it difficult to refactor.
Perhaps we can improve this. This kind of information should be fetched from the core.

return None

def plot_followers_growth(self, sessions, pdf, username, period):
followers_count = [int(session["profile"]["followers"]) for session in sessions]
Copy link
Member

Choose a reason for hiding this comment

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

Same here. If we make session to be a class with all attributes, it improves maintainability of the code.

session.profile.followers instead. Can you please create a task to improve this? We can merge it like this for now..

@philip-ulrich
Copy link
Contributor Author

Yeah; this was basically just a copy/paste from the original PR. We can improve it - I just wanted to get it in since we’ve had the PR open for over a week and “it works”. 😄

Will add to project board.

@philip-ulrich philip-ulrich merged commit e7f93e9 into develop Nov 13, 2020
@philip-ulrich philip-ulrich deleted the feature-analytics branch November 13, 2020 13:48
philip-ulrich added a commit that referenced this pull request Nov 13, 2020
* No one is maintaining these - removing (#33)

- These likely need re-written from scratch anyway
- removing resources we don't use like patreon or the insomniac logo

* Feature analytics (#31)

* increment version

* fixing bug with interact argument

* ignoring all .pdf files

* Adding tool to generate PDF reports with statistics using matplotlib

* blackening

Co-authored-by: narkopolo <[email protected]>

Co-authored-by: narkopolo <[email protected]>
philip-ulrich added a commit that referenced this pull request Nov 13, 2020
* No one is maintaining these - removing (#33)

- These likely need re-written from scratch anyway
- removing resources we don't use like patreon or the insomniac logo

* Feature analytics (#31)

* increment version

* fixing bug with interact argument

* ignoring all .pdf files

* Adding tool to generate PDF reports with statistics using matplotlib

* blackening

Co-authored-by: narkopolo <[email protected]>

* Adding missing dependency (#37)

* No one is maintaining these - removing
- These likely need re-written from scratch anyway
- removing resources we don't use like patreon or the insomniac logo

* adding matplotlib dependency

Co-authored-by: narkopolo <[email protected]>
philip-ulrich added a commit that referenced this pull request Nov 14, 2020
* No one is maintaining these - removing
- These likely need re-written from scratch anyway
- removing resources we don't use like patreon or the insomniac logo

* No one is maintaining these - removing (#33)

- These likely need re-written from scratch anyway
- removing resources we don't use like patreon or the insomniac logo

* Feature analytics (#31)

* increment version

* fixing bug with interact argument

* ignoring all .pdf files

* Adding tool to generate PDF reports with statistics using matplotlib

* blackening

Co-authored-by: narkopolo <[email protected]>

* Adding missing dependency (#37)

* No one is maintaining these - removing
- These likely need re-written from scratch anyway
- removing resources we don't use like patreon or the insomniac logo

* adding matplotlib dependency

* Use python logging module (#36)

* Use python logging module

- add log.py: used to configure
python logging module

There are two log handlers: one colored
for the console and one with raw data for the
crash report. This way we will be able to make
the console be less cluttered while still have debug
information when a crash happens.

* Change plugin loading log level to INFO

* Remove unused log constants (#41)

* Remove pipenv because they can't figure out how to support python version ranges pypa/pipenv#1050 (#44)

* No one is maintaining these - removing
- These likely need re-written from scratch anyway
- removing resources we don't use like patreon or the insomniac logo

* removing pipenv

* removing extra res folder - updating version

Co-authored-by: narkopolo <[email protected]>
Co-authored-by: Arthur Silva <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants