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 compatibility issues with jsonschema>=4 #364

Merged
merged 12 commits into from
Oct 14, 2022
Merged

Fix compatibility issues with jsonschema>=4 #364

merged 12 commits into from
Oct 14, 2022

Conversation

aaneto
Copy link
Contributor

@aaneto aaneto commented Oct 4, 2022

I have managed to pass the tests after updating jsonschema. The only issue I have is that Python 3.6 is having dependency issues with jsonschema==4.

I'll try to make the changes compatible with both jsonschema4 and 3, so that Python3.6 is still compatible.

@codecov
Copy link

codecov bot commented Oct 4, 2022

Codecov Report

Base: 74.28% // Head: 74.40% // Increases project coverage by +0.11% 🎉

Coverage data is based on head (c8e579d) compared to base (5020fca).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #364      +/-   ##
==========================================
+ Coverage   74.28%   74.40%   +0.11%     
==========================================
  Files          73       73              
  Lines        3126     3125       -1     
  Branches      487      368     -119     
==========================================
+ Hits         2322     2325       +3     
+ Misses        737      735       -2     
+ Partials       67       65       -2     
Impacted Files Coverage Δ
...dermon/contrib/validation/jsonschema/translator.py 100.00% <ø> (ø)
spidermon/contrib/validation/jsonschema/formats.py 100.00% <100.00%> (+28.57%) ⬆️

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 at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@aaneto
Copy link
Contributor Author

aaneto commented Oct 11, 2022

Hello,

I have added the changes needed to make the tests pass on all Python versions, I have also added tests for two public functions.

I believe these functions don't have tests so when I modified them the pipeline failed.

@aaneto aaneto changed the title WIP: Fix compatibility issues with jsonschema>=4 Fix compatibility issues with jsonschema>=4 Oct 11, 2022
@aaneto
Copy link
Contributor Author

aaneto commented Oct 11, 2022

I don't believe I see anything else that needs doing, I'll remove the WIP tag so that others can give feedback more freely.

Copy link
Member

@Gallaecio Gallaecio left a comment

Choose a reason for hiding this comment

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

Looks good to me.

I do wonder if we should implement a test job that uses the minimum supported versions of stuff, like we do in Scrapy, to make sure we do not break backward compatibility with older jsonschema as we add support for newer ones.

@aaneto
Copy link
Contributor Author

aaneto commented Oct 13, 2022

Great :)

If I'm not mistaken all that we need now is for someone with merge permission to accept this PR, correct?

@Gallaecio
Copy link
Member

I do wonder if we should implement a test job that uses the minimum supported versions of stuff, like we do in Scrapy, to make sure we do not break backward compatibility with older jsonschema as we add support for newer ones.

Let me implement this, then we can merge.

@Gallaecio Gallaecio merged commit 951dddb into scrapinghub:master Oct 14, 2022
@Gallaecio
Copy link
Member

Thanks!

@aaneto
Copy link
Contributor Author

aaneto commented Oct 14, 2022

Oh, sorry! That's what you meant by testing job, I thought it was a job on a cloud or something like that.

In any case, thanks everyone! :)

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