Comments (5)
@scottmtp I'm sure @ericboucher would love a PR to come through for this.
from tap-github.
I'm able to work around this with this change:
diff --git a/tap_github/repository_streams.py b/tap_github/repository_streams.py
index e80c4f1..0701250 100644
--- a/tap_github/repository_streams.py
+++ b/tap_github/repository_streams.py
@@ -1351,6 +1351,10 @@ class PullRequestCommits(GitHubRestStream):
),
).to_dict()
+ def post_process(self, row: dict, context: Optional[Dict[str, str]] = None) -> dict:
+ if context is not None and "pull_number" in context:
+ row["pull_number"] = context["pull_number"]
+ return row
class ReviewsStream(GitHubRestStream):
name = "reviews"
However, I'm not sure if this is the correct fix.
from tap-github.
Great catch @scottmtp. Indeed, we would love a PR for this. Your change looks quite reasonable :)
from tap-github.
@edgarrmondragon any thoughts on why this part of the context is not forwarded to the record by default? @scottmtp's change looks reasonable but I'm wondering if we should look into a higher-level fix.
from tap-github.
@edgarrmondragon any thoughts on why this part of the context is not forwarded to the record by default? @scottmtp's change looks reasonable but I'm wondering if we should look into a higher-level fix.
@ericboucher Without diving deeper, my guess is that state_partitioning_keys
is limiting the keys passed to pull_requests_commits
from its parent stream.
from tap-github.
Related Issues (20)
- Passing a username as "organizations" config value crashes the tap HOT 5
- KeyError: `commit_timestamp` HOT 5
- Field `fetched_at` in stream `extra-metrics` can be formatted as a date-time string
- Releases stream has 10,000 record limit HOT 3
- If a member is part of multiple teams, they will only be listed once HOT 2
- ValueError: not enough values to unpack (expected at least 1, got 0) in repository_streams HOT 1
- Incremental replication doesn't respect the current state HOT 1
- Use pre-commit.ci to lint project
- Stream `extra_metrics` fails on repos with large number of issues/PRs HOT 1
- Drop support for python 3.7 HOT 1
- Invalid SCHEMA messages are produced for deselected streams HOT 3
- Replace use of `get_next_page_token` in the tap HOT 2
- Workflow streams incorrectly claim to support incremental loading
- Hard to tell if API token is valid or not HOT 1
- Add `files` property to `CommitsStream` HOT 1
- Experiencing 401 Bad Credentials when credentials are valid HOT 1
- Document `api_url_base` setting for Enterprise Server installations
- SDK Version pointing to a specific commit HOT 1
- Loader 'target-jsonl' is not known to Meltano.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tap-github.