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

feat(fe2): scope comment mentions to parent project collaborators #3635

Merged
merged 6 commits into from
Dec 5, 2024

Conversation

fabis94
Copy link
Contributor

@fabis94 fabis94 commented Dec 5, 2024

  • various related fixes

Copy link
Contributor

github-actions bot commented Dec 5, 2024

📸 Preview service has generated an image.

"""
Look up server users
"""
users(input: UsersRetrievalInput!): UserSearchResultCollection!
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The param list for userSearch was already too long and I expect it to grow in the future. Plus, why would we want to allow (non-admin)users to search for archived users?

Copy link
Contributor

github-actions bot commented Dec 5, 2024

📸 Preview service has generated an image.

@@ -151,7 +151,7 @@ function buildEmailTemplateParams(
objectId,
commitId
})
const url = new URL(commentRoute, getBaseUrl()).toString()
const url = new URL(commentRoute, getFrontendOrigin()).toString()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mention email cta links were busted locally (only where FE and BE origin differs afaik)

),
knex.raw(`(array_agg("user_emails"."verified"))[1] as verified`)
knex.raw(`(array_agg(??))[1] as "verified"`, [UserEmails.col.verified]),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alemagio it was this way before already, but i'm wondering if this logic is valid - surely we should look for the first verified email, instead of just the first email that exists? otherwise we risk marking the user as unverified, when one of their emails is verified

Copy link
Contributor

github-actions bot commented Dec 5, 2024

📸 Preview service has generated an image.

Mikehrn
Mikehrn previously approved these changes Dec 5, 2024
Copy link
Contributor

@Mikehrn Mikehrn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FE looks good :)

Copy link
Contributor

github-actions bot commented Dec 5, 2024

📸 Preview service has generated an image.

@fabis94 fabis94 requested a review from Mikehrn December 5, 2024 11:18
@fabis94 fabis94 merged commit 4b6e7af into main Dec 5, 2024
28 of 30 checks passed
@fabis94 fabis94 deleted the fabians/web-2165 branch December 5, 2024 11:33
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