-
Notifications
You must be signed in to change notification settings - Fork 16
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
[Issue #2481] Add new GitHub export #2539
Conversation
Enables users to run the slack integration tests if they pass the: `--slack-token-set` flag
This dataset stores a newly transformed version of exported GitHub data.
Adds tests for get_parent_with_type()
Enables us to store multiple scripts in the integrations/github/ dir
- export_sprint_data() - export_roadmap_data()
Catches and logs validation errors instead of panicking during `populate_issue_lookup()`
Replaces numpy.nan with None in BaseDataset.to_dict() method
Exports sprint and roadmap data using the new structure
Approach looks great so far 🚀 |
Exports data required to build the new `GitHubIssues` dataset
Loads a dataset directly from a JSON file with the same shape.
Loads the `GitHubIssues` dataset instead of `SprintBoard` into the db. The `SprintBoard` represents the old method for exporting gh data, and `GitHubIssues` is the new way GitHub data is represented
👀 |
@@ -163,6 +164,17 @@ roadmap-data-export: | |||
--project $(ROADMAP_PROJECT) \ | |||
--output-file $(ROADMAP_FILE) | |||
|
|||
delivery-data-export: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want this running in AWS?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not yet! I'll think want to finish some subset of the following tickets:
- Turn on Sprinty McBurndown for sprint burndown
- Post new % completed by deliverable metric to Slack
- Remove old deliverable reports from
/analytics
codebase
Then I'll create a separate ticket for which commands to run in AWS and tag you on it @coilysiren
Looks great once we are green. Noting the documentation isn't updated but that could wait for a follow-up. There is this analytics doc ticket that could be used #2130 or another created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The extra spaces in the SPRINT_FIELD and POINTS_FIELD before the comment were being passed through to the CLI
@coilysiren and @DavidDudas-Intuitial I fixed one bug with the Makefile (fix(analytics): Extra space in Makefile variable) that I didn't catch until I was working on the sprint burndown PR, would you all mind reviewing again? |
Summary
Adds new export command for the new GitHub issue structure.
Fixes #2481
Time to review: 10 mins
Changes proposed
GitHubIssues
dataset todatasets/issues.py
--slack-token-set
pytest flagGitHubIssues
dataset that stores the content of the new delivery data exportintegrations/github.py
to make it a sub-packageintegrations/github/
to store the bash script and graphql queriesexport_delivery_data()
tointegrations/github/main.py
export_json_to_database()
withGitHubIssues
TODO
integrations/github.py
to make it a sub-packageintegrations/github/
to store the bash script and graphql queriesexport_delivery_data()
tointegrations/github/main.py
export_json_to_database()
Context for reviewers
documentation/analytics/development.md
using Docker.make delivery-data-export POINTS_FIELD="Story Points"
to export GitHub data using the new formatmake gh-data-db-import
to load the exported data into the Postgres DBAdditional information