-
Notifications
You must be signed in to change notification settings - Fork 84
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
refactor: migrate GET /adminform endpoint to Typescript #575
Conversation
58fc92e
to
346a988
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.
minor suggestions!
.where('status') | ||
.ne(Status.Archived) | ||
// Project selected fields. | ||
.select('_id title admin lastModified status form_fields') |
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.
might be cleaner to extract this into a constants file somewhere
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.
Only used here, no need to extract for now
# Conflicts: # src/app/routes/admin-forms.server.routes.js
Problem
This PR adds a new
admin-form
module, and refactors the GET /adminform endpoint to the new layered architecture.Solution
Features:
FormModel#getDashboardForms
static functionFormService#getDashboardForms
service functionAdminFormController#handleListDashboardForms
handler for GET /adminforms endpointImprovements:
list
function.Tests