From 05aac039a97abf7f19c27579bc5596263fa483ed Mon Sep 17 00:00:00 2001 From: Ali <010109ali@gmail.com> Date: Mon, 15 Jun 2026 16:00:22 +0000 Subject: [PATCH] fix(wizard): import on short queue + drop org role column (v0.1.34) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Route the post-setup ƏMAS employee import to the "short" RQ queue so it starts promptly instead of waiting ~a minute behind the post-setup backlog on the single worker's default queue. - Organization selection: remove the Role column ("Hüquqi şəxs" on every row); organization name + VÖEN are enough. - Bump version badge to 0.1.34. Co-Authored-By: Claude Opus 4.8 (1M context) --- jey_wizard/__init__.py | 2 +- jey_wizard/etaxes.py | 5 +++++ jey_wizard/public/js/jey_setup.js | 5 +---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/jey_wizard/__init__.py b/jey_wizard/__init__.py index c2e5539..8ef886b 100644 --- a/jey_wizard/__init__.py +++ b/jey_wizard/__init__.py @@ -1 +1 @@ -__version__ = "0.1.33" +__version__ = "0.1.34" diff --git a/jey_wizard/etaxes.py b/jey_wizard/etaxes.py index 50ae80e..84bb81d 100644 --- a/jey_wizard/etaxes.py +++ b/jey_wizard/etaxes.py @@ -1277,6 +1277,10 @@ def _materialize_amas_employees(company_name): employees_data=json.dumps(employees, ensure_ascii=False), company=company_name, create_designation=create_designation, + # "short" queue jumps ahead of the post-setup backlog on "default", + # so employees start importing as soon as the single worker frees + # instead of after a minute of waiting. + queue="short", ) # New (post-parallel-import refactor) response shape: # {success: True, enqueued: True, total: N} @@ -1296,6 +1300,7 @@ def _materialize_amas_employees(company_name): employees_data=json.dumps(employees, ensure_ascii=False), company=company_name, create_designation=create_designation, + queue="short", ) except Exception as exc: frappe.log_error( diff --git a/jey_wizard/public/js/jey_setup.js b/jey_wizard/public/js/jey_setup.js index 8f44e50..d0562f5 100644 --- a/jey_wizard/public/js/jey_setup.js +++ b/jey_wizard/public/js/jey_setup.js @@ -10,7 +10,7 @@ frappe.provide("jey_wizard"); // Bump this string in every commit that changes wizard code. Displayed in the badge so // we can tell at a glance which version is actually running on a given machine. Kept in // sync with __version__ in jey_wizard/__init__.py. -const JEY_WIZARD_VERSION = "0.1.33"; +const JEY_WIZARD_VERSION = "0.1.34"; // Wipe Frappe + ERPNext default slides so their `before_load`/`after_load` listeners // don't try to mutate a wizard that isn't slide-based anymore. @@ -381,12 +381,10 @@ frappe.setup.SetupWizard = class JeySetupWizard { const rows = (this.amas_accounts || []).map((a, i) => { const name = a.accountName || a.name || ""; const voen = a.accountNumber || a.voen || a.number || ""; - const role = a.roleName || a.role || ""; return ` ${frappe.utils.escape_html(name)} ${frappe.utils.escape_html(voen)} - ${frappe.utils.escape_html(role)} @@ -401,7 +399,6 @@ frappe.setup.SetupWizard = class JeySetupWizard { ${__("Organization")} ${__("VÖEN")} - ${__("Role")} ${rows}