materialsproject / api

New API client for the Materials Project
https://materialsproject.github.io/api/
Other
105 stars 34 forks source link

use create_user_settings for new users posting settings for the first… #837

Closed yang-ruoxi closed 11 months ago

yang-ruoxi commented 11 months ago

Added a method for creating user settings that uses post_resource. This will work with the web to avoid the situation where new user can't set their settings

codecov-commenter commented 11 months ago

Codecov Report

Patch and project coverage have no change.

Comparison is base (5f15be1) 69.64% compared to head (50844cc) 69.64%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #837 +/- ## ======================================= Coverage 69.64% 69.64% ======================================= Files 51 51 Lines 2418 2418 ======================================= Hits 1684 1684 Misses 734 734 ``` | [Files Changed](https://app.codecov.io/gh/materialsproject/api/pull/837?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=materialsproject) | Coverage Δ | | |---|---|---| | [mp\_api/client/routes/\_user\_settings.py](https://app.codecov.io/gh/materialsproject/api/pull/837?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=materialsproject#diff-bXBfYXBpL2NsaWVudC9yb3V0ZXMvX3VzZXJfc2V0dGluZ3MucHk=) | `100.00% <ø> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.