Repository navigation
feat(upload): upload Guestline exports, daily or a backfill, and follow each file's job - #167
Merged
Merged
Conversation
The upload page needs to send the day's exports and follow each file's job; the mocks follow the same shapes so it works without the backend.
Managers upload the day's Guestline exports from the app and see whether each one loaded, without touching training.
…g dates The backend takes any date range, and the first upload is a two-year backfill, so the page shouldn't read as daily only; the dates let a manager see a backfill reached back far enough.
selvarajuv
approved these changes
Nov 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The upload page at
/upload, in the sidebar as "Upload data" (closes #148):POST /hotels/{id}/ingest/files, then pollsGET /jobs/{id}for each file: queued, running (rows saved so far), succeeded (the booking dates it covered, and new and updated rows) or failed with the job's error.Why
Managers upload a Guestline export every day and had no way to do it from the app (#148).
How to check
just frontend --mocks, open Upload data, drop aDailyNewReservations.csv: it goes queued, running, succeeded..txtis turned away before sending.Screenshots
A
.txtturned away in the browser; the CSV listed with its sizeRunning, with rows saved so far
Finished, with the booking dates the file covered, the retrain message and a link to the calendar
A Cancellations file: the API's 422, and nothing uploaded
Notes
apiUploadis a separate function inclient.jsso the multipart request doesn't changeapiPost.docs/open-questions.md; nothing retrains on its own today.