onboarding: Separate submit for review to other endpoint#10837
onboarding: Separate submit for review to other endpoint#10837
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Preview Environment |
|
I was about to open a similar issue just now. Thanks for this. I introduced this issue by moving the I merged the two steps in a single API call to avoid triggering a premature organization review. So, another fix could be to decouple the organization review initialization from the As another option, I was considering maybe adding a private Do with it whatever you want 😁 |
OpenAPI ChangesOperations
|
c0ba40c to
3ab9a5d
Compare
|
@pieterbeulque took your advise, and reverted the POST/PATCH in the organization creation, and added a specific endpoint to submit review which we call from the dashboard |
3ab9a5d to
895d651
Compare
33ccc96 to
7bd1b61
Compare
And then PATCH it with business details
We store the details and call the specific endpoint when the user is submitting their org for review. This is hidden from the external API.
7bd1b61 to
59ef65c
Compare
|
Found 1 test failure on Blacksmith runners: Failure
|
| await self._after_update(session, organization) | ||
| return organization | ||
|
|
||
| def _validate_review_submission( |
There was a problem hiding this comment.
I would love us to find a way to use a proper Pydantic schema for this rather than manually spinning up validation logic like this
Split save details and submit for review into two separate endpoints. This clarifies the button, and makes sure that submitting for review is explicit