-
Notifications
You must be signed in to change notification settings - Fork 0
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
View Submitted Applications and Their Current Status #13
View Submitted Applications and Their Current Status #13
Conversation
75c17a7
to
9408168
Compare
5931a96
to
3df6832
Compare
3df6832
to
d607e73
Compare
71e8be6
to
ec0cac0
Compare
I wish I had Sequelize for eager loading: https://sequelize.org/docs/v6/advanced-association-concepts/eager-loading/ |
e217c84
to
6c5b127
Compare
9a9d59d
to
273439a
Compare
3e2993b
to
51152ea
Compare
e9d3ce3
to
228e549
Compare
|
52a33d1
to
bdc04e7
Compare
e89fe1e
to
24ff7ba
Compare
df15696
to
424ffda
Compare
} | ||
|
||
asDetailedView() { | ||
return this.#applicationDraft |
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 future, it would probably be a good idea to unpack the JSON hear and camelize all the keys.
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.
See fa52c93
I wasn't returning ids for sub-objects as part of the parent object.
A person might not have a sex or language so these need to be left joins to avoid excluding valid person data.
Why? To match the table name. Yeah its redundant, but I think simplicity is best for now.
I haven't been adding all the relationships, just the ones I've used so far.
Why? To make room for actual funding requests section.
Why? So I can generate the massive ERD that this project uses.
424ffda
to
b7e8d27
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.
It'll be interesting to try out the new controller pattern!
Yay! Partially, its about making space for code to grow, but it also provides a standard way to assemble routes, making it easier to identify all available routes.
At some point, I'm going to put a readme in each folder to define the specific boundaries and responsibilities associated with each object type. Mostly I'm just copying from Rails, because what they have works really well at scale. |
If we were using a heavier library than Express we would get these kinds of things for free, so we may want to investigate that avenue at some point. |
Relates to:
Depends on:
Context
Right now the portal is only displaying items from the
application_draft
table, but we need to surface data from theapplication
table as well as assessments and other related things.The API was returning that information previously, but it's been commented out.
We need a landing page for student applications that has details (non-editable), documents related to the application, letters related to the application, funding requests, etc. formatted similarly to the draft screens. An application dashboard of sorts.
@datajohnson will do the screen design and @klondikemarlen can do the wiring and API work.
Concerns
e.g.
program: 3
I believe this will cause a lot inconvenience and confusion in the future.
It is more predictable to sufix it with "id" if it is an ID field.
e.g.
programId: 3
Expected Endpoints and Data Formats
See https://guides.rubyonrails.org/routing.html#crud-verbs-and-actions for a stable example of route naming conventions.
TODO: it might also be worth making flat URL such as
TODO: application and draft-application formats should be identical, except for a "type"??? column.
example of list format
example of item format
Data Flow Modeling
How a Draft becomes an Application
NOTE: Students can't edit a submitted application.
Testing Instructions
sfa-client
back-end viaAPI_PORT=3100 dev up
student-financial-aid
back-end viastudent-finanacial-aid
front-end via