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

Issue 904/escape group name #911

Merged

Conversation

shinnokdisengir
Copy link
Contributor

Fixed bug for group_name decode implementing GroupNameDecoder
Added GroupNameDecoderTest unit tests

@shinnokdisengir shinnokdisengir force-pushed the issue-904/escape-group-name branch 2 times, most recently from 2751188 to 74a32ac Compare March 5, 2024 14:54
Copy link

codecov bot commented Mar 5, 2024

Codecov Report

Attention: Patch coverage is 87.50000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 68.11%. Comparing base (c83724f) to head (3f6b863).

Files Patch % Lines
...tarte_appengine_api_web/plug/group_name_decoder.ex 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #911      +/-   ##
==========================================
- Coverage   68.13%   68.11%   -0.02%     
==========================================
  Files         274      276       +2     
  Lines        7192     7192              
==========================================
- Hits         4900     4899       -1     
- Misses       2292     2293       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shinnokdisengir shinnokdisengir force-pushed the issue-904/escape-group-name branch 3 times, most recently from 14769b5 to 0aaeb8c Compare March 13, 2024 16:05
Copy link
Collaborator

@Annopaolo Annopaolo left a comment

Choose a reason for hiding this comment

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

Also, remember to squash your commits to keep history clean (i.e. no "merge branch ... into ...")

@shinnokdisengir shinnokdisengir force-pushed the issue-904/escape-group-name branch 4 times, most recently from c4ba5d0 to e37a98d Compare March 14, 2024 16:50
@shinnokdisengir shinnokdisengir force-pushed the issue-904/escape-group-name branch 2 times, most recently from 47d7543 to c082606 Compare March 18, 2024 09:41
- Use GroupNameDecoder (Plug) to decode group_name instead implementation inside controllers

FIX astarte-platform#904

Signed-off-by: Gabriele Ghio <[email protected]>
@shinnokdisengir shinnokdisengir force-pushed the issue-904/escape-group-name branch 3 times, most recently from 98f618f to 59ecbf2 Compare March 19, 2024 10:41
Copy link
Collaborator

@rbino rbino left a comment

Choose a reason for hiding this comment

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

Minor comments, plus you also have to add an entry in the CHANGELOG in the Fixed session since you fixed a bug

@shinnokdisengir shinnokdisengir force-pushed the issue-904/escape-group-name branch from 59ecbf2 to 998f385 Compare March 20, 2024 17:33
use of the ExUnitProperties/StreamData
(https://hexdocs.pm/stream_data/ExUnitProperties.html)
library to parameterize test writing

- use of generators (gen all) for creating cases to evaluate and checks
- execution of tests via prop tests (check all)
- added functional e2e test to "group creates the group with / in group name"
- setup test.exs and ci.exs max runs

Signed-off-by: Gabriele Ghio <[email protected]>
@shinnokdisengir shinnokdisengir force-pushed the issue-904/escape-group-name branch from 998f385 to 3f6b863 Compare March 22, 2024 09:14
@shinnokdisengir shinnokdisengir requested a review from rbino March 22, 2024 09:14
@rbino rbino merged commit c335319 into astarte-platform:master Mar 22, 2024
29 checks passed
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