-
Notifications
You must be signed in to change notification settings - Fork 15
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
Export data to CSV/XSLX weekly #304
Comments
Should it be a command line script? |
Seems to me like a cron job in another container might be fitting. Maybe a pure service that takes any data object (in JSON perhaps) and response with a CSV file transparently that gets run by a cron job weekly.
If no one is on this, I'd like to give it a first take. Also, are we limited to using Javascript, provided if docker orchestrates isolated services? |
Actually, I have another idea. Maybe we can create a new route for this purpose. For example,
I guess they plan to use it from frontend. Meaning that, the user will select date range and the frontend will redirect to this url with parameters and return data with corresponding content-type. We might also need to check whether the user have an access to data of the department. |
@heytitle I see. Why weekly then? That sounded like something that's not user-facing. |
@jochasinga You're right, the weekly part is unnecessary. It will be handled on frontend. I agree with @heytitle about making a new route for this. |
So basically the route send a GET request with relevant query params or payload to the database, retrieve the data and do the parsing to CSV or whatever format on the frontend. |
I think the workflow will look like this. What do you think? |
@heytitle you mean the api server responds with |
@jochasinga actually, what I meant by
|
Export pins as CSV or XSLX
Input:
Output:
Tabular data with these columns:
The text was updated successfully, but these errors were encountered: