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

[5.x] Fixed updating a non-existent member not throwing #14658

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 5.x branch.
4.x: #14657

Blocked by #14664

@SimonBackx SimonBackx changed the title [5.x] Added tests for editing a non-existing member [5.x] Fixed updating a non-existing member not throwing May 3, 2022
@codecov
Copy link

codecov bot commented May 3, 2022

Codecov Report

Merging #14658 (12dc629) into main (ad1ebe6) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main   #14658   +/-   ##
=======================================
  Coverage   60.91%   60.91%           
=======================================
  Files         569      569           
  Lines       47221    47221           
  Branches     4213     4213           
=======================================
  Hits        28765    28765           
  Misses      18414    18414           
  Partials       42       42           

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 ad1ebe6...12dc629. 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 force-pushed the update-non-existing-member-5-0 branch from 0b5da7b to 6df7253 Compare May 3, 2022 15:08
@SimonBackx
Copy link
Contributor Author

This is blocked until we add the webhook fix in the main branch.

@SimonBackx SimonBackx force-pushed the update-non-existing-member-5-0 branch from 6df7253 to 44d9d71 Compare May 4, 2022 10:40
@SimonBackx SimonBackx changed the title [5.x] Fixed updating a non-existing member not throwing [5.x] Fixed updating a non-existent member not throwing May 4, 2022
@SimonBackx SimonBackx force-pushed the update-non-existing-member-5-0 branch from 44d9d71 to 12dc629 Compare May 4, 2022 10:46
@SimonBackx SimonBackx marked this pull request as ready for review May 4, 2022 10:47
@SimonBackx SimonBackx merged commit 473ac3b into TryGhost:main May 4, 2022
@SimonBackx SimonBackx deleted the update-non-existing-member-5-0 branch May 4, 2022 11:51
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.

2 participants