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

Validate Group Fields in API #1121

Merged

Conversation

Aravindh-Raju
Copy link
Member

Fixes issue #1120.

Changes in this pull request:

  • Added validation similar to Portal in API to throw an error message when we try to create a group with name and/or email fields empty. Now we cannot create a group with empty name and/or email fields through API and we'll get the message Group name and email cannot be empty. when either or both is empty.

@codecov
Copy link

codecov bot commented May 2, 2022

Codecov Report

Base: 92.09% // Head: 92.09% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (5f910cc) compared to base (7f9f4ee).
Patch coverage: 88.88% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1121      +/-   ##
==========================================
- Coverage   92.09%   92.09%   -0.01%     
==========================================
  Files         172      172              
  Lines        6945     6954       +9     
  Branches      158      161       +3     
==========================================
+ Hits         6396     6404       +8     
- Misses        549      550       +1     
Impacted Files Coverage Δ
...dns/api/domain/membership/MembershipProtocol.scala 100.00% <ø> (ø)
...n/scala/vinyldns/api/route/MembershipRouting.scala 98.18% <0.00%> (-0.91%) ⬇️
...ldns/api/domain/membership/MembershipService.scala 95.03% <100.00%> (+0.25%) ⬆️
...s/core/src/main/scala/vinyldns/core/Messages.scala 100.00% <100.00%> (ø)

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

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Aravindh-Raju Aravindh-Raju self-assigned this May 2, 2022
@Aravindh-Raju Aravindh-Raju added kind/bug Something isn't working area/api Items relating to the API labels May 2, 2022
nspadaccino
nspadaccino previously approved these changes May 2, 2022
Copy link
Member

@nspadaccino nspadaccino left a comment

Choose a reason for hiding this comment

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

Looks good

Jay07GIT
Jay07GIT previously approved these changes May 4, 2022
Copy link
Member

@Jay07GIT Jay07GIT left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@remerle remerle added this to the vNext milestone May 25, 2022
Copy link
Member

@remerle remerle left a comment

Choose a reason for hiding this comment

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

Minor tweak

@Aravindh-Raju Aravindh-Raju dismissed stale reviews from Jay07GIT and nspadaccino via 01df5bb May 26, 2022 05:28
@nspadaccino nspadaccino requested review from remerle and removed request for remerle September 12, 2022 20:21
@nspadaccino nspadaccino dismissed remerle’s stale review September 12, 2022 20:28

Changes have been addressed

@nspadaccino nspadaccino merged commit ce716a3 into vinyldns:master Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api Items relating to the API kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants