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

🐛[4.x] Fixed updating a non-existent member not throwing #14657

Merged
merged 3 commits into from
May 4, 2022

Conversation

SimonBackx
Copy link
Contributor

@SimonBackx SimonBackx commented May 3, 2022

refs https://github.com/TryGhost/Team/issues/1580

This PR is for the 4.x branch.
5.0: #14658

@codecov
Copy link

codecov bot commented May 3, 2022

Codecov Report

Merging #14657 (33cca05) into 4.x (85577ac) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              4.x   #14657   +/-   ##
=======================================
  Coverage   59.80%   59.80%           
=======================================
  Files         580      580           
  Lines       48003    48003           
  Branches     4214     4214           
=======================================
  Hits        28710    28710           
  Misses      19252    19252           
  Partials       41       41           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 85577ac...33cca05. Read the comment docs.

SimonBackx added a commit to TryGhost/Members that referenced this pull request May 3, 2022
refs https://github.com/TryGhost/Team/issues/1580

- When you tried to update a member that doesn't exist, an internal error was thrown
- It should throw a 'not found' error instead
- Optimized when to fetch the initialMember

Tests for 4.x in TryGhost/Ghost#14657
Tests for 5.x in TryGhost/Ghost#14658
@SimonBackx SimonBackx marked this pull request as ready for review May 3, 2022 14:51
@matthanley matthanley merged commit 1dc61ca into TryGhost:4.x May 4, 2022
@SimonBackx SimonBackx changed the title 🐛[4.x] Fixed updating a non-existing member not throwing 🐛[4.x] Fixed updating a non-existent member not throwing May 4, 2022
daniellockyer pushed a commit that referenced this pull request Jul 20, 2022
refs https://github.com/TryGhost/Team/issues/1580

- When you tried to update a member that doesn't exist, an internal error was thrown
- It should throw a 'not found' error instead
- Optimized when to fetch the initialMember

Tests for 4.x in #14657
Tests for 5.x in #14658
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