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

fix: urlencode slash in urns too #4527

Merged
merged 2 commits into from
Apr 7, 2022

Conversation

daha
Copy link
Contributor

@daha daha commented Mar 30, 2022

Urns for datasources with datasetNameDelimiter: "/" was not encoded
correctly, resulting in REST calls not returning any data when querying
with the urn.

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable)

@github-actions
Copy link

github-actions bot commented Mar 30, 2022

Unit Test Results (build & test)

  95 files   - 1    95 suites   - 1   13m 19s ⏱️ - 7m 21s
683 tests  - 3  623 ✔️  - 4  59 💤 ±0  1 +1 

For more details on these failures, see this check.

Results for commit 1540ec4. ± Comparison against base commit 66defee.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Mar 30, 2022

Unit Test Results (metadata ingestion)

       5 files         5 suites   59m 49s ⏱️
   395 tests    395 ✔️   0 💤 0
1 819 runs  1 788 ✔️ 31 💤 0

Results for commit 1540ec4.

♻️ This comment has been updated with latest results.

@daha daha force-pushed the urlencode_urn_with_slash branch 2 times, most recently from 4d9161f to 85267ed Compare March 31, 2022 07:57
@daha
Copy link
Contributor Author

daha commented Mar 31, 2022

Looks like there are many flaky tests which fails repeatedly. My guess is that the hard coded ports for docker containers are the problem when other tests using the same containers/ports on the same host.

@daha daha force-pushed the urlencode_urn_with_slash branch 2 times, most recently from d963bed to 9e7fb9b Compare April 1, 2022 15:54
@daha daha changed the title fix: Urlencode slash in urns too fix: urlencode slash in urns too Apr 1, 2022
Urns for datasources with datasetNameDelimiter: "/" was not encoded
correctly, resulting in REST calls not returning any data when querying
with the urn.
@daha daha force-pushed the urlencode_urn_with_slash branch from 9e7fb9b to 1329123 Compare April 1, 2022 18:53
@daha
Copy link
Contributor Author

daha commented Apr 1, 2022

It might be better to create a urlencode_urn somewhere which run returns urllib.parse.quote(id, safe="") and use that everythere, both in the code and the tests, but I do not know what's the best place to put it.

@rslanka rslanka assigned rslanka and unassigned shirshanka Apr 7, 2022
Copy link
Contributor

@rslanka rslanka left a comment

Choose a reason for hiding this comment

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

LGTM!

@rslanka rslanka merged commit 0785ed6 into datahub-project:master Apr 7, 2022
@daha daha deleted the urlencode_urn_with_slash branch April 8, 2022 06:24
maggiehays pushed a commit to maggiehays/datahub that referenced this pull request Aug 1, 2022
* fix: urlencode slash in urns too + tests

Co-authored-by: Ravindra Lanka <[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