-
Notifications
You must be signed in to change notification settings - Fork 8
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
Feature/homepage old history #3113
Conversation
src/backend/src/prisma/schema.prisma
Outdated
popUpId String @id @default(uuid()) | ||
text String | ||
iconName String | ||
users User[] @relation("userPopUps") |
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.
this is usersUnread right? And when they read the popup they get removed from this list?
slackEventId: string, | ||
slackChannelName: string, | ||
organizationId: string | ||
): Promise<Announcement> { |
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.
we should probably validate that the usersReceivedIds are all valid ids. otherwise were gonna throw a weird error
* @returns the user's updated unread pop up | ||
*/ | ||
static async removeUserPopUp(userId: string, popUpId: string, organizationId: string) { | ||
const updatedUser = await prisma.user.update({ |
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.
i think we need to verify that the popUpId exists before this.
where: { userId }, | ||
include: { assignedTasks: getTaskQueryArgs(organization.organizationId) } | ||
}); | ||
if (!requestedUser) throw new NotFoundException('User', userId); |
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.
i think we need to check if a user is in the organization as well
*/ | ||
export const getProjects = async (projectIds: string[], organizationId: string) => { | ||
const projects = await prisma.project.findMany({ | ||
where: { projectId: { in: projectIds } }, |
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.
dateDeleted === null
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.
wbsElement: { organizationId } aswell
…pdates Fixed Backend Checks On Homepage
Changes
Homepage changes
Finishline_HomepageRedesign_Overview.zip
Checklist
It can be helpful to check the
Checks
andFiles changed
tabs.Please review the contributor guide and reach out to your Tech Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.
yarn.lock
changes (unless dependencies have changed)Closes #2012 (issue #)