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 calculation of schema location #1239

Merged

Conversation

lresende
Copy link
Member

Move away of using lstrip to manipulate the base URI while calculating schema location

Fixes #1238

@welcome
Copy link

welcome bot commented Mar 21, 2023

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please make sure you followed the pull request template, as this will help us review your contribution more quickly.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also a intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@lresende lresende requested a review from Zsailer March 21, 2023 03:56
@lresende lresende added the bug label Mar 21, 2023
@codecov
Copy link

codecov bot commented Mar 21, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.13 ⚠️

Comparison is base (e582e55) 80.39% compared to head (54d30ed) 80.27%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1239      +/-   ##
==========================================
- Coverage   80.39%   80.27%   -0.13%     
==========================================
  Files          68       68              
  Lines        8263     8263              
  Branches     1600     1600              
==========================================
- Hits         6643     6633      -10     
- Misses       1198     1206       +8     
- Partials      422      424       +2     
Impacted Files Coverage Δ
jupyter_server/serverapp.py 80.63% <100.00%> (-0.09%) ⬇️

... and 3 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@blink1073 blink1073 enabled auto-merge (squash) March 21, 2023 15:13
@lresende
Copy link
Member Author

Hehe, so, the trailing slash is needed to properly calculate the relative location of the schema. I tried to add it to the definition of the path const but it seemed to break some test cases, I can play more with this later today in case you guys don't like the current approach.

@Zsailer
Copy link
Member

Zsailer commented Mar 21, 2023

Nah, I think this is good to go. Thank you @lresende. :)

@blink1073 blink1073 merged commit 60d7cca into jupyter-server:main Mar 21, 2023
@welcome
Copy link

welcome bot commented Mar 21, 2023

Congrats on your first merged pull request in this project! 🎉
congrats
Thank you for contributing, we are very proud of you! ❤️

@lresende lresende deleted the fix-schema-location-calcuation branch March 21, 2023 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issues trying to calculate schema file location for new event schema
3 participants