Skip to content
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

Resolucion del examen #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

pablop94
Copy link

Pablo Pissi

Excercise 1 - Add filter by technologyId for GET /courses endpoint

For the issue #1 the resolution was to add the technologyId in the filterFields of the Course model.

Excercise 2 - create a GET /admin/billing/getInvoices

For the issue #2 the resolution was to call the getChargeableStudents method and then use those students to generate an invoice using the AFIP api. After that, the invoiceId is attached to the response payload.

Excercise 3 - Add Middleware for caching GET requests

For the issue #3 I've created a middleware function which handle the requests. For GET requests, it uses the cache when available and for POST and PUT it removes elements from the cache. There are some GET requests that must be excluded, there is a list for that in the cacheMiddleware file, where you can list the URLs excluded from caching.

Excercise 4 - create GET /stats/failuresByStates

For the issue #4 I make a list of all the notes that are failed, using all the evaluations. Then I mapped the notes to their respective students and with this information, reduced the lists of students (which may contains duplicates) grouping by the state and counting only the different students.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant