Skip to content

refactor: Renamed yaw to azimuth#219

Merged
frgfm merged 7 commits into
masterfrom
azimuth
Oct 12, 2022
Merged

refactor: Renamed yaw to azimuth#219
frgfm merged 7 commits into
masterfrom
azimuth

Conversation

@frgfm

@frgfm frgfm commented Oct 10, 2022

Copy link
Copy Markdown
Member

This PR introduces the following modifications:

  • renamed device "yaw" to "azimuth" which is the correct term geometrically speaking
  • updated all unittests
  • when the alert azimuth is not specified, takes the one of the device
  • made alert azimuth non nullable

Any feedback is welcome!

@frgfm frgfm added this to the 0.2.0 milestone Oct 10, 2022
@frgfm
frgfm requested a review from a team October 10, 2022 21:32
@frgfm frgfm self-assigned this Oct 10, 2022
fe51
fe51 previously approved these changes Oct 10, 2022
Comment thread src/app/api/schemas/devices.py Outdated
lon: Optional[float] = Field(..., gt=-180, lt=180, example=4.514880)
elevation: Optional[float] = Field(..., gt=0.0, lt=10000, example=1582)
yaw: Optional[float] = Field(..., ge=0, le=360, example=110)
azimuth: Optional[float] = Field(..., ge=0, le=360)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We do not want any example ?

fe51
fe51 previously approved these changes Oct 11, 2022
@frgfm

frgfm commented Oct 11, 2022

Copy link
Copy Markdown
Member Author

No need to review until I get the unittests to work :)

@fe51

fe51 commented Oct 11, 2022

Copy link
Copy Markdown
Member

Ho okay sorry, thought it was done ! :)

@codecov

codecov Bot commented Oct 11, 2022

Copy link
Copy Markdown

Codecov Report

Merging #219 (44b3aae) into master (fa878b8) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #219      +/-   ##
==========================================
+ Coverage   94.07%   94.08%   +0.01%     
==========================================
  Files          47       47              
  Lines        1282     1285       +3     
==========================================
+ Hits         1206     1209       +3     
  Misses         76       76              
Flag Coverage Δ
unittests 94.08% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/app/api/routes/alerts.py 98.24% <100.00%> (+0.06%) ⬆️
src/app/api/schemas/alerts.py 100.00% <100.00%> (ø)
src/app/api/schemas/base.py 100.00% <100.00%> (ø)
src/app/api/schemas/devices.py 100.00% <100.00%> (ø)
src/app/db/models.py 93.10% <100.00%> (ø)

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

@frgfm
frgfm requested a review from fe51 October 12, 2022 07:59
@frgfm

frgfm commented Oct 12, 2022

Copy link
Copy Markdown
Member Author

Now it's all good :)

@frgfm
frgfm merged commit 13575ed into master Oct 12, 2022
@frgfm
frgfm deleted the azimuth branch October 12, 2022 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants