-
Notifications
You must be signed in to change notification settings - Fork 7
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
tweak(tupaiaWeb): RN-1383: Make raw data downloads use one time link #5848
base: dev
Are you sure you want to change the base?
Conversation
const PLATFORM_SETTINGS = { | ||
tupaia: { | ||
url: requireEnv('TUPAIA_WEB_SERVER_API_URL'), | ||
friendlyName: 'Tupaia', |
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.
I like the term friendlyName :)
const { error, filePath } = responseBody; | ||
const { platform } = req.query; | ||
const subject = 'Your export from Tupaia'; |
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.
I wonder if the subject should change depending on the platform?
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.
Yes, good idea
@@ -28,13 +17,13 @@ type ResponseBody = { | |||
|
|||
type Req = { | |||
query: { | |||
emailExportFileMode?: EmailExportFileModes; | |||
platform?: 'tupaia' | 'adminPanel' | 'datatrak'; |
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.
Should Lesmis be included as an option?
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.
Good idea
@tcaiger are you able to re-review this one? |
merge: update branch with latest dev
Issue RN-1383: Make raw data downloads use one time link
Changes:
constructExportEmail
to handle links to different platformsgetTempDirectory
andgetExportPathForUser
toserver-utils
ExportSurveyDataHandler
inweb-config-server
use same temp directory as everywhere else