-
Notifications
You must be signed in to change notification settings - Fork 52
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
Issue 904/escape group name #911
Conversation
2751188
to
74a32ac
Compare
Codecov ReportAttention: Patch coverage is
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. |
14769b5
to
0aaeb8c
Compare
There was a problem hiding this 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 ...")
...appengine_api/lib/astarte_appengine_api_web/controllers/device_status_by_group_controller.ex
Outdated
Show resolved
Hide resolved
apps/astarte_appengine_api/lib/astarte_appengine_api_web/plug/group_name_decoder.ex
Outdated
Show resolved
Hide resolved
.../astarte_appengine_api/test/astarte_appengine_api_web/controllers/groups_controller_test.exs
Outdated
Show resolved
Hide resolved
apps/astarte_appengine_api/test/astarte_appengine_api_web/plug/group_name_decoder_test.exs
Outdated
Show resolved
Hide resolved
apps/astarte_appengine_api/test/astarte_appengine_api_web/plug/group_name_decoder_test.exs
Outdated
Show resolved
Hide resolved
c4ba5d0
to
e37a98d
Compare
47d7543
to
c082606
Compare
- Use GroupNameDecoder (Plug) to decode group_name instead implementation inside controllers FIX astarte-platform#904 Signed-off-by: Gabriele Ghio <[email protected]>
98f618f
to
59ecbf2
Compare
There was a problem hiding this 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
apps/astarte_appengine_api/test/astarte_appengine_api_web/plug/group_name_decoder_test.exs
Show resolved
Hide resolved
apps/astarte_appengine_api/test/astarte_appengine_api_web/plug/group_name_decoder_test.exs
Outdated
Show resolved
Hide resolved
.../astarte_appengine_api/test/astarte_appengine_api_web/controllers/groups_controller_test.exs
Show resolved
Hide resolved
apps/astarte_appengine_api/test/astarte_appengine_api_web/plug/group_name_decoder_test.exs
Outdated
Show resolved
Hide resolved
apps/astarte_appengine_api/lib/astarte_appengine_api_web/plug/group_name_decoder.ex
Show resolved
Hide resolved
apps/astarte_appengine_api/lib/astarte_appengine_api_web/plug/group_name_decoder.ex
Outdated
Show resolved
Hide resolved
59ecbf2
to
998f385
Compare
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]>
998f385
to
3f6b863
Compare
Fixed bug for
group_name
decode implementingGroupNameDecoder
Added
GroupNameDecoderTest
unit tests