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

DXCDT-471: Fix creating org members when member list is empty #646

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

sergiught
Copy link
Contributor

🔧 Changes

While ensuring we can reliably run our tests e2e on a real test tenant, we encountered a bug where the organization members resource triggered an error when trying to create the resource with an empty members list. This PR fixes this issue by skipping the API call if the list is empty.

📚 References

🔬 Testing

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@sergiught sergiught requested a review from a team as a code owner June 20, 2023 13:12
@codecov-commenter
Copy link

codecov-commenter commented Jun 20, 2023

Codecov Report

Merging #646 (c5232c5) into main (0684384) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #646   +/-   ##
=======================================
  Coverage   86.60%   86.60%           
=======================================
  Files          80       80           
  Lines       12168    12168           
=======================================
  Hits        10538    10538           
  Misses       1243     1243           
  Partials      387      387           

@sergiught sergiught marked this pull request as draft June 20, 2023 13:41
@sergiught sergiught force-pushed the patch/DXCDT-473-fix-guard branch 2 times, most recently from 72a013e to 3388f02 Compare June 20, 2023 14:04
@sergiught sergiught force-pushed the patch/DXCDT-471-fix-members branch from 7688568 to e8bf000 Compare June 20, 2023 14:05
@sergiught sergiught marked this pull request as ready for review June 20, 2023 14:13
@sergiught sergiught force-pushed the patch/DXCDT-473-fix-guard branch from 3388f02 to edff628 Compare June 20, 2023 17:05
Base automatically changed from patch/DXCDT-473-fix-guard to main June 20, 2023 17:13
@sergiught sergiught force-pushed the patch/DXCDT-471-fix-members branch from e8bf000 to c5232c5 Compare June 20, 2023 17:14
@sergiught sergiught requested a review from willvedd June 20, 2023 17:14
@sergiught sergiught merged commit 8c7c2b7 into main Jun 21, 2023
@sergiught sergiught deleted the patch/DXCDT-471-fix-members branch June 21, 2023 08:10
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.

4 participants