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

Audit fix #2731

Merged
merged 3 commits into from
Jun 16, 2022
Merged

Audit fix #2731

merged 3 commits into from
Jun 16, 2022

Conversation

iamleeg
Copy link
Contributor

@iamleeg iamleeg commented Jun 16, 2022

No description provided.

I can't explain why, but before preparing this commit I couldn't npm install in the data-service _at all_ due to conflicting peer deps.
I resolved that in this change, but then found that there were a lot of failing tests in the data service. I don't know when they were
introduced so I can't account for them, but it seems that OpenAPI validation has changed from "no schema === any response" to "no
schema === empty response". For those responses where the presence of a body was causing a test failure, I have introduced a permissive
"any JSON response" schema.
@codecov-commenter
Copy link

codecov-commenter commented Jun 16, 2022

Codecov Report

Merging #2731 (16ff76d) into main (b510c16) will increase coverage by 8.17%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2731      +/-   ##
==========================================
+ Coverage   57.72%   65.90%   +8.17%     
==========================================
  Files          94      147      +53     
  Lines        3229     5722    +2493     
  Branches     1030     1512     +482     
==========================================
+ Hits         1864     3771    +1907     
- Misses       1365     1951     +586     
Impacted Files Coverage Δ
...on/curator-service/api/src/clients/email-client.ts 61.53% <0.00%> (ø)
...ation/curator-service/api/src/util/validate-env.ts 100.00% <0.00%> (ø)
...rving/data-service/src/geocoding/remoteGeocoder.ts 100.00% <0.00%> (ø)
data-serving/data-service/src/controllers/home.ts 100.00% <0.00%> (ø)
...ata-serving/data-service/src/geocoding/geocoder.ts 100.00% <0.00%> (ø)
...erving/data-service/src/model/revision-metadata.ts 100.00% <0.00%> (ø)
data-serving/data-service/src/index.ts 95.71% <0.00%> (ø)
...ata-serving/data-service/src/model/positive-int.ts 100.00% <0.00%> (ø)
...ion/curator-service/api/src/controllers/geocode.ts 77.08% <0.00%> (ø)
data-serving/data-service/src/util/search.ts 100.00% <0.00%> (ø)
... and 43 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b510c16...16ff76d. Read the comment docs.

@iamleeg iamleeg merged commit 5af5c9e into main Jun 16, 2022
@iamleeg iamleeg deleted the audit-fix branch June 16, 2022 15:23
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.

None yet

3 participants