platform icon indicating copy to clipboard operation
platform copied to clipboard

hardcoreeng/import-tool:latest Docker image is outdated and broken against huly.app

Open varaprasadreddy9676 opened this issue 8 months ago • 3 comments

Summary

The published hardcoreeng/import-tool:latest Docker image is incompatible with the current Huly cloud (huly.app). The source code in the repo is already correct, but the Docker image was never rebuilt after the account API was refactored.

Steps to Reproduce

Follow the documented import command:

docker run \
  -e FRONT_URL="https://huly.app" \
  -v /path/to/export:/data \
  hardcoreeng/import-tool:latest \
  -- bundle.js import-clickup-tasks /data/tasks.csv \
  --user [email protected] \
  --password yourpassword \
  --workspace your-workspace-id

Result: Login failed for user: [email protected]

Root Cause

The Docker image bundle was built before the account API was refactored. There are 6 incompatibilities between the bundle and the current server API:

# Location in bundle Old (broken) New (correct, already in source)
1 login2() params params: [user, password, workspace] params: { email, password }
2 login2() return returns only token must return full result { token, socialId, account }
3 getUserWorkspaces result field ws.workspaceUrl ws.url
4 selectWorkspace() call passes workspaces[0].workspace (UUID) must pass workspaces[0].url (workspace URL string)
5 selectWorkspace() params params: [workspace, "external"] params: { workspaceUrl, kind }
6 Account identity connection.getModel().getAccountByEmail() + PersonAccount class socialId from login response (TxOperations(connection, socialId))

The current dev/import-tool/src/index.ts already has all these fixed correctly — the Docker image just hasn't been rebuilt.

Expected Behavior

The import tool Docker image should successfully authenticate, find the workspace, and import data.

Workaround

The image can be patched at runtime by extracting the bundle and applying fixes manually, but this is not a reasonable ask for end users.

Fix Required

Rebuild and republish hardcoreeng/import-tool:latest from the current source. The source code needs no changes.

It would also help to publish versioned tags (e.g. hardcoreeng/import-tool:0.7.382) so users can pin to a version that matches their workspace.

varaprasadreddy9676 avatar Mar 10 '26 14:03 varaprasadreddy9676

Connected to Huly®: UBERF-15847

huly-github-staging avatar Mar 10 '26 14:03 huly-github-staging

The report states that the source code is already correct and only the published import-tool image is outdated, which is a release/publishing task rather than a code defect. If maintainers agree, please consider closing.

MichaelUray avatar Oct 20 '26 15:10 MichaelUray

@varaprasadreddy9676 — as explained above, this does not look like something that can be addressed in the codebase. Could you please close this issue if you agree? If you think there is a code change needed after all, please describe what should change.

MichaelUray avatar Oct 20 '26 23:10 MichaelUray