-
Notifications
You must be signed in to change notification settings - Fork 1
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
hotfix(0.18.1): merge into develop #674
Conversation
fb5275f
to
f7bb87c
Compare
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.
Nits:
we shouldnt have an additional call to github if the site already exists in our db.
But since this is non-functional and more of an optimisation, we can tackle this after our hotfix!
f7bb87c
to
438951b
Compare
yea but then it becomes q hard to read cos you have nested |
438951b
to
4048e7d
Compare
} catch { | ||
// If there are any errors, we failed to fetch the site | ||
// and the site is assumed to not exist. | ||
return false |
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.
in the event site does not exist, what response does the github API return?
Also, when we say errors, do we mean any response apart from 2xx goes into the catch block?
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.
returns 404 on our side - this means that it falls through to the default case where the site really doesn't exist
re: second point, yes. broadly, if it's a 4xx, we can omit the response from github because it's user based so our subsequent flow should cover it. if it's truly github's fault (5xx), we can't determine if the site exists or not, so returning that it doesn't is a safer choice than saying it does (and possibly being wrong)
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.
okay makes sense
1415914
to
a3fedf2
Compare
bdede53
to
9c3df90
Compare
b7b85cc
to
ecd13a8
Compare
chore(review): remove check on POST route tests(review): fixed tests tests(integration): fixed review tests chore(review): update function name fix(reviews): update spy fix(review): check for migrated site but not site members
fix(markdown): correct .split
ecd13a8
to
c25f448
Compare
Problem
DOMPurify
too restrictive on BESolution