Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

lentille-github: Fix decoding issue for URI type #15

Merged
merged 1 commit into from
May 11, 2021

Conversation

morucci
Copy link
Contributor

@morucci morucci commented May 10, 2021

This patch ensures the URI Text where Text is JSON doc (eg.
newTaskDataChangeUrl = ""https://github.com/elastic/elasticsearch/pull/70392\"")
is decoded.

This patch ensures the URI Text where Text is JSON doc (eg.
newTaskDataChangeUrl = "URI \"https://github.com/elastic/elasticsearch/pull/72808\"") is decoded.
@morucci morucci merged commit e985656 into change-metrics:main May 11, 2021
@@ -159,7 +160,11 @@ transformResponse searchResult =
extractUrl item = case item of
Just
( SearchNodesTimelineItemsNodesConnectedEvent
(SearchNodesTimelineItemsNodesSubjectPullRequest (url))
) -> show url
Copy link
Collaborator

Choose a reason for hiding this comment

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

The show implementation for Text does adds quotes. I don't think we need to further decode the value and unwrapping the URI type may be enough:

(SearchNodesTimelineItemsNodesSubjectPullRequest (URI url))) -> url

@morucci
Copy link
Contributor Author

morucci commented May 17, 2021 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants