Open shekarpendem opened 6 years ago
@lauraGgit to address the "quotation of the cutting area keys" question - I can't find your question, but I can say that we are inserting JSON into the db there so it has to be valid json, meaning it has to have quoted keys within the string of JSON going into the field. Maybe get us in a zoom to discuss if that isn't it please?
@lauraGgit re: refactoring the intake client base URL I would think something like this would have its own environment variable - INTAKE_CLIENT_BASE_URL for example Is that preferable since it really isn't a credential?
for 'idp.int.login.gov' this entry: vcapConstants.LOGIN_GOV_HOST = (typeof process.env.LOGIN_GOV_HOST === undefined ? 'idp.int.login.gov' : process.env.LOGIN_GOV_HOST); will use that as default unless LOGIN_GOV_HOST is defined
@sadlerw Per the quotations - there are a number places where the cutting areas json has a json on the front end that seems to have keys that are not single quoted- you might want to take a look at the Sprint 10 pr comments for this. It seems both inconsistent from the frontend to the server and a bit confusing.
@sadlerw INTAKE_CLIENT_BASE_URL
yes, if we have a node/ env file now for the server we can just take it out of the vcap and have it as a checked in env var that is still environment dependent. We would also need to update the manifests.
I'd rather not have the default login host be hardcoded at all, because if its not defined and PLATFORM != local thank the build should fail
Re: quotation the standards for json is quoted keys but they are optional in typescript and es6. They are not optional in a string being inserted into the db. They are optional in coffeescript for example, but not javascript before es5 (I think). Linting standards to make all json representations in the entire codebase uniform are not desirable.
OK we'll coordinate with you on the deploy to set both INTAKE_CLIENT_BASE_URL and LOGIN_GOV_HOST as environment variables. Staging will fail to start until these are configured. We will add them to our circle config too. Maybe sometime after sprint retro.
on the vcap changes - remove hardcoding of HOST in login gov auth in header and replace with the host from the discovery url?
on the email templates - I don't see an easy way to do this. Please open a new story specifically for this task if you think it should happen still
FYI for the task to look at extracting dependencies from docker and cache them, in theory it is possible. Upon trying to implement there was an error when circle tried to extract the cache and errorred out. This appears to be a known issue with no current solution. I was able to update the step which had installed all server dependencies so that only snyk was installed before the deploy job.
Notes
from the COR review
1: Must have task
2: Should probably have task
3: Nice to have task
Acceptance criteria
Tasks
Deployment and continuous integration
build-pa11y-image.sh
is just a wrapper for a direct docker compose command- let’s remove the this file (shekar)install-dependencies-docker.sh
let’s push each command to a new line.circleci/install-dependencies.sh
to.circleci/install-deployment-dependencies.sh
and I'm not sure that server dependencies would be needed for the deploy as they are being generated by the buildpack one the file is uploaded. (cameron)run-e2e.sh
andrun-unauthenticated-e2e.sh
and just change which is running based on cli flags or parameters. (cameron)Server
.snyk
overrides still make sense: https://github.com/nciinc/fs-permit-platform/blob/sprint-11-development/server/.snyk (will)DBA
API docs
swagger.yml
from the ui components of the swagger docs? it would make the directory a bit cleaner (will)description
and thetitle
for the swagger https://github.com/nciinc/fs-permit-platform/blob/sprint-11-development/server/docs/api/swagger.yml#L2 (will)put
really what cancels an application? Aren't thereputs
from a successful pay.gov transaction? https://github.com/nciinc/fs-permit-platform/blob/sprint-11-development/server/docs/api/swagger.yml#L238 (will)SRC
Auth
Controllers
server/src/controllers/christmas-tree.es6
the CRUD methods that leverage the db and the helper methods seem to be intermixed - seems like this could use some rearranging on the controller. (will)Services
Note: I like how most of these methods have jsDoc comments
Email
Tests
VCAP Services
Definition of Done