Skip to content

Refactor/latex docker downsize api#8

Merged
macite merged 32 commits intomacite:chore/update-gemsfrom
b0ink:refactor/latex-docker-downsize-api
Apr 1, 2025
Merged

Refactor/latex docker downsize api#8
macite merged 32 commits intomacite:chore/update-gemsfrom
b0ink:refactor/latex-docker-downsize-api

Conversation

@macite
Copy link
Copy Markdown
Owner

@macite macite commented Apr 1, 2025

Description

This PR moves Latex install to a separate contaner, and uses Docker to execute the PDF generation on that container. In doing this, we reduce the build time and size of the docker images.

b0ink added 30 commits August 10, 2024 00:40
* solves current permission issues that prevented the working folder from being rm -rf'd from the api
* this ensures that input.pdf and input.log still exist when the script successfully completes
@macite macite merged commit f0b98a6 into macite:chore/update-gems Apr 1, 2025
2 checks passed
macite pushed a commit that referenced this pull request Oct 15, 2025
* chore: create CreateMarkingSessions migration and MarkingSession model (#4)

* chore: create CreateSessionActivities migration and SessionActivity model, migration ran successfully (#5)

* feature/session-tracker-service (#6)

- implement session tracker service with integration test
- amend marking session update_session_details method to initalize date
  time before assigning

* feat: implement service track in endpoints (#7)

- implement test

* feat: add analytics endpoints for marking sessions, session activities and and aggregated analytics (#8)

* chore: fix robocop

* chore: migrate marking sessions schema

* chore: revert schema

* chore: bump session migrations

* chore: migrate session activities

* chore: fix rubocops

* refactor: rename marker to user

* fix: get task before logging action

* chore: record activity after action is complete

* chore: whitelist valid actions

* test: correct activity action type

* refactor: move statistics to entity models

* wip

* fix: add unit id to route

* refactor: end session once there hasnt been any new activity

* feat: download tutor times summary

* chore: serialise date filters

* feat: seed marking sessions

* chore: aggregate activity actions count

* refactor: expose endpoint to retrieve all marking sessions for a unit

* fix: ensure end date is inclusive

* chore: add permission for tutor times

* refactor: fix timezone issues

* refactor: clean up marking sessions api

* refactor: clean up session tracker

* refactor: add unit tests

* chore: get last created activity

* test: test all routes recording assessment activities

* refacto: remove duration minutes from schema

- calculate it based on start/end time

* chore: update default ip

* chore: remove todo

* chore: set end_time to default marking session

* chore: test permissions for tutor summary csv

* chore: use get tutor times permission

* test: ensure correct number of sessions are returned

* chore: remove newline

* chore: remove newline

* feat: split sessions for allocated for tutorial times

* test: fix tutorial time

* test: fix wrong unit

* feat: option to exclude sessions during tutorials

* refactor: remove old code

* test: ensure ignore tutorial sessions has different duration

* fix: add missing parameter

* chore: remove todo

* chore: avoid redundancy

---------

Co-authored-by: Joseph K Saji <jjbrothersdelhi@hotmail.com>
Co-authored-by: Josh Talev <139172317+jtalev@users.noreply.github.com>
Co-authored-by: Martin Dolores <77220115+martindolores@users.noreply.github.com>
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.

2 participants