Skip to content

Conversation

@4e6
Copy link
Contributor

@4e6 4e6 commented Oct 16, 2025

Pull Request Description

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.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    TypeScript,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • Unit tests have been written where possible.
  • If meaningful changes were made to logic or tests affecting Enso Cloud integration in the libraries,
    or the Snowflake database integration, a run of the Extra Tests has been scheduled.
    • If applicable, it is suggested to paste a link to a successful run of the Extra Tests.

@4e6 4e6 self-assigned this Oct 16, 2025
@4e6 4e6 added the CI: No changelog needed Do not require a changelog entry for this PR. label Oct 16, 2025
@4e6 4e6 force-pushed the wip/db/14127-periodic-upload branch from 3a96809 to d6af21f Compare November 11, 2025 12:07
@4e6 4e6 force-pushed the wip/db/14127-periodic-upload branch 2 times, most recently from 5cc0f65 to 1c864f2 Compare November 20, 2025 13:39
@4e6 4e6 force-pushed the wip/db/14127-periodic-upload branch from 1c864f2 to 91d314f Compare November 20, 2025 20:27
@4e6 4e6 marked this pull request as ready for review November 20, 2025 21:16
@4e6 4e6 requested a review from somebody1234 as a code owner November 20, 2025 21:16
localProjectId: backend.ProjectId,
parentDirectoryId: backend.DirectoryId,
baseUrl: URL,
defaultHeaders: Record<string, string>,
Copy link
Contributor

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).

@4e6 4e6 requested a review from farmaazon December 1, 2025 09:06
if (!response.ok) {
return await this.throw(response, 'resolveProjectAssetPathBackendError')
}
const httpStatusIsDirty = 201
Copy link
Contributor

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.

@4e6 4e6 added the CI: Ready to merge This PR is eligible for automatic merge label Dec 3, 2025
@mergify mergify bot merged commit 5a2012d into develop Dec 3, 2025
61 checks passed
@mergify mergify bot deleted the wip/db/14127-periodic-upload branch December 3, 2025 19:51
@jdunkerley jdunkerley added this to the 2025.3 Release milestone Dec 5, 2025
jdunkerley pushed a commit that referenced this pull request Dec 5, 2025
- 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI: No changelog needed Do not require a changelog entry for this PR. CI: Ready to merge This PR is eligible for automatic merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Periodic upload of open hybrid projects

5 participants