Repository navigation
Conversation
|
Deployment previews on netlify for branch
|
dati18
previously requested changes
Sep 9, 2026
| }), | ||
|
|
||
| http.post('/api/user/sendVerifyEmail', () => { | ||
| return new Response('Already verified') |
Contributor
There was a problem hiding this comment.
looking at api.js:45. Under MSW, that makes alreadyVerified always returns false because there is a "!" difference between 2 strings
Contributor
There was a problem hiding this comment.
That mismatch is outside this mock file, but it means fixing the mock alone would still leave a real API/UI contract bug.
Contributor
Author
There was a problem hiding this comment.
I updated the mocked messages here
And added a fix in this PR wbstack/api#1288
rosalieper
reviewed
Oct 6, 2026
|
|
||
| return Response.json({ items }) | ||
| }), | ||
|
|
Contributor
There was a problem hiding this comment.
I think It will be beneficial to add a comment here about these requiring an update every time there are new policies.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds basic version of missing policy mock handlers for viewing the current policies.
/api/v1/policies/terms-of-use/api/v1/policies/terms-of-use/by_active_from/2022-01-01/api/v1/policies/terms-of-use/current/api/v1/policies/terms-of-use/upcoming/api/v1/policies/hosting-policy/api/v1/policies/hosting-policy/current/api/v1/policies/hosting-policy/upcomingNote: due to the current implementation these will need to be adjusted when we add new (current/upcoming) policies. I'm not sure if a more dynamic implementation is worth it.
Compared with the current Platform API routes, I noticed in general the coverage of the mocks is not including these endpoints (which is probably fine? as they need different means of testing)
/api/v1/policy_acceptances- requires ability of mocking different data scenarios/api/wiki/profile- could be implemented for a successful store response but re-implementing persistence is not currently neededThese Platform API endpoints aren't relevant for the UI:
/api/wiki/deletedWikiMetrics/api/wikiConversionData/api/reusePrototypeBug: T436954