-
Notifications
You must be signed in to change notification settings - Fork 333
Periodic upload of open hybrid projects #14167
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
Conversation
3a96809 to
d6af21f
Compare
5cc0f65 to
1c864f2
Compare
1c864f2 to
91d314f
Compare
| localProjectId: backend.ProjectId, | ||
| parentDirectoryId: backend.DirectoryId, | ||
| baseUrl: URL, | ||
| defaultHeaders: Record<string, string>, |
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 have no idea why do we need defaultHeaders if we already have access to HTTPClient (and for example, stopWatchingHybridProject does not need them).
| if (!response.ok) { | ||
| return await this.throw(response, 'resolveProjectAssetPathBackendError') | ||
| } | ||
| const httpStatusIsDirty = 201 |
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.
Seems like stopping watcher results in created HTTP code? For me, it's a bit unintuitive. I would rather expect some information in the response body.
- close #14127 PR implements periodic uploads for opened hybrid projects Changelog: - add: implement directory watcher - update: project state management to start and stop directory watcher - update: HttpClient to work in NodeJS environment # Important Notes Followup: - we need some progress indication about the project state (think of Google Docs) i.e. unsaved, saving, saved - each upload creates a new version of the project. We need to update the upload endpoint to have an option to overwrite the latest version instead of always creating a new one. (cherry picked from commit 5a2012d)
Pull Request Description
PR implements periodic uploads for opened hybrid projects
Changelog:
Important Notes
Followup:
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
TypeScript,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
or the Snowflake database integration, a run of the Extra Tests has been scheduled.