-
Notifications
You must be signed in to change notification settings - Fork 78
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
WIP: fix empty discussion post in events communities #5073
base: develop
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Sorry, half my comment seems to have been deleted, I think I filled out the template wrong! This is for #4172 , added front end validation and backend check as well. Started writing tests but would like to chat with someone for 15-20 minutes about how to best write tests for this! |
Leaving a comment here about tests in case we don't overlap soon! Code looks great so far. Another good frontend test would be to make a new test file const postReplyMock = service.threads.postReply as jest.Mock; Then check it wasn't called in the individual test: expect(postReplyMock).not.toHaveBeenCalled(); We can assume that if the function that picks up the change wasn't called, then we successfully protected it via the frontend. For backend, you probably wanna add a test case in Instructions for testing locally on the backend are in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Backend looks good to me!
Checklists not yet completed, because I am not yet done!
Backend checklist
ruff check --select I --fix . && ruff check . && ruff format .
inapp/backend
develop
if necessary for linear migration historyWeb frontend checklist
yarn format
yarn lint --fix