-
Notifications
You must be signed in to change notification settings - Fork 26
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
1728/notifications #1802
1728/notifications #1802
Conversation
❌ Deploy Preview for dev-storybook-bloom failed. 🔨 Explore the source changes: ef7d046 🔍 Inspect the deploy log: https://app.netlify.com/sites/dev-storybook-bloom/deploys/6142a8affeba8a000852cdb9 |
✔️ Deploy Preview for clever-edison-cd22c1 ready! 🔨 Explore the source changes: 00c4ee5 🔍 Inspect the deploy log: https://app.netlify.com/sites/clever-edison-cd22c1/deploys/6138da3750eeb600072b844d 😎 Browse the preview: https://deploy-preview-1802--clever-edison-cd22c1.netlify.app |
✔️ Deploy Preview for dev-partners-bloom ready! 🔨 Explore the source changes: ef7d046 🔍 Inspect the deploy log: https://app.netlify.com/sites/dev-partners-bloom/deploys/6142a8af637dea0007305046 😎 Browse the preview: https://deploy-preview-1802--dev-partners-bloom.netlify.app |
@seanmalbert Here is what I mentioned in standup today. The two issues I have/see now are (1) Getting a 401 on the jurisdictions service and (2) Feels weird to fetch all the jurisdictions, to find our current one, to find the sign-up URL |
✔️ Deploy Preview for dev-bloom ready! 🔨 Explore the source changes: ef7d046 🔍 Inspect the deploy log: https://app.netlify.com/sites/dev-bloom/deploys/6142a8af33a38c000755a07c 😎 Browse the preview: https://deploy-preview-1802--dev-bloom.netlify.app |
|
@emilyjablonski , I updated jurisdictions to use the optional auth guard so we can now read jurisdictions with an anonymous user. You should now be unblocked on that. |
9e07d70
to
900eaf6
Compare
@Get(`:jurisdictionId`) | ||
@ApiOperation({ summary: "Get jurisdiction by id", operationId: "retrieve" }) | ||
async retrieve(@Param("jurisdictionId") jurisdictionId: string): Promise<JurisdictionDto> { | ||
@Get(`:jurisdictionName`) |
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 would like to keep GET /jurisidctions/:id
endpoint because it's a REST API convention and most endpoints follow it. name
search you need here could be implemented through list()
endpoint. Please add optional query param to `list and do such filtering there. Frontend then should receive and parse a single element array as a response.
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.
@pbn4 ,
It makes sense to keep that endpoint, but I don't like using list for this either, since we're only expecting one to return (name column has been set to unique), so having another route like jurisdictions/byName/:name
makes sense to me.
c9e503f
to
6b4fae2
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.
Looks good! Can you update the e2e tests so that the get requests don't have the admin token, since they should be accessible by an anonymous user.
|
||
const getById = await supertest(app.getHttpServer()) | ||
.get(`/jurisdictions/byName/${res.body.name}`) | ||
.set(...setAuthorization(adminAccesstoken)) |
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 be able to get this without the token now. Same with the existing gets above.
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.
updated 👍
ff72755
to
ef7d046
Compare
Pull Request Template
Issue
Addresses #1728
Description
If a jurisdiction has the notificationsSignUpURL field set, the home page will display a second action block with the sign up link. The migration sets the value for Alameda to be the current sign-up link.
Type of change
How Can This Be Tested/Reviewed?
Load up the homepage with the jurisdiction ENV variable set to Alameda and to anything but Alameda to see both states.
Checklist: