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

Source Jira: Small fix in the board stream #21524

Merged
Merged
Changes from 8 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
d0c051a
fix board stream
anamargaridarl Jan 18, 2023
719731f
revert debug changes
anamargaridarl Jan 18, 2023
daffa20
Merge branch 'master' into feature/jira-fix-streams
anamargaridarl Jan 18, 2023
168ea05
Merge branch 'master' into feature/jira-fix-streams
anamargaridarl Jan 18, 2023
bd5d5e8
Merge branch 'master' into feature/jira-fix-streams
anamargaridarl Jan 18, 2023
18c9bce
one more fix
anamargaridarl Jan 24, 2023
ea219b7
Merge branch 'feature/jira-fix-streams' of github.com:anamargaridarl/…
anamargaridarl Jan 24, 2023
042067d
Merge branch 'master' into feature/jira-fix-streams
anamargaridarl Jan 24, 2023
1ba8399
code improvements based on suggestion
anamargaridarl Jan 27, 2023
5195716
Merge branch 'master' into feature/jira-fix-streams
anamargaridarl Jan 27, 2023
a06d032
Merge branch 'master' into feature/jira-fix-streams
anamargaridarl Jan 27, 2023
6a8830d
Merge branch 'master' into feature/jira-fix-streams
anamargaridarl Jan 30, 2023
4b80dff
Merge branch 'master' into feature/jira-fix-streams
anamargaridarl Jan 31, 2023
bc53e3a
Merge branch 'master' into feature/jira-fix-streams
anamargaridarl Feb 1, 2023
2147efe
Merge branch 'master' into feature/jira-fix-streams
anamargaridarl Feb 3, 2023
8878112
Merge branch 'master' into feature/jira-fix-streams
anamargaridarl Feb 6, 2023
baca5cf
Merge branch 'master' into feature/jira-fix-streams
anamargaridarl Feb 9, 2023
ccf922f
Merge branch 'master' into feature/jira-fix-streams
anamargaridarl Feb 17, 2023
9b0a5f1
Merge branch 'master' into feature/jira-fix-streams
natalyjazzviolin Mar 2, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,16 @@ def path(self, **kwargs) -> str:

def read_records(self, **kwargs) -> Iterable[Mapping[str, Any]]:
for board in super().read_records(**kwargs):
if not self._projects or board["location"]["projectKey"] in self._projects:
location = board["location"]
anamargaridarl marked this conversation as resolved.
Show resolved Hide resolved
if not self._projects or location.get("projectKey") in self._projects:
yield board

def transform(self, record: MutableMapping[str, Any], stream_slice: Mapping[str, Any], **kwargs) -> MutableMapping[str, Any]:
record["projectId"] = str(record["location"]["projectId"])
record["projectKey"] = record["location"]["projectKey"]
if record.get("location"):
location = record.get("location")
if location:
record["projectId"] = str(location.get("projectId"))
record["projectKey"] = location.get("projectKey")
anamargaridarl marked this conversation as resolved.
Show resolved Hide resolved
return record


Expand Down