Skip to content

LG-4870: Configure Acuant SDK path for JavaScript WebSDK resources#5577

Merged
aduth merged 2 commits intomainfrom
aduth-lg-4870-acuant-src-path
Nov 5, 2021
Merged

LG-4870: Configure Acuant SDK path for JavaScript WebSDK resources#5577
aduth merged 2 commits intomainfrom
aduth-lg-4870-acuant-src-path

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Nov 3, 2021

Why: Simplify to remove symlinks which exist only to support loading Acuant SDK relatively from subpaths. Instead, configure Acuant to point directly to the canonical source directory.

Previously, we assumed that Acuant would always try to load its dependent resources (WASM worker, etc) relative to the current path. This required us to implement complex routing to support non-English and hybrid flows.

It turns out that this is a simple configuration option that we overlooked: acuantConfig = { path: "..." }

This will be useful to help simplify the upgrade to Acuant SDK v11.5.0 (LG-4392).

I may or may not have had this branch sitting around on my computer since July. I assume it's still valid.

**Why**: Simplify to remove symlinks which exist only to support loading Acuant SDK relatively from subpaths. Instead, configure Acuant to point directly to the canonical source directory.
@zachmargolis
Copy link
Contributor

How do you feel about breaking this into two separate PRs? So that old boxes don't point at potentially broken links during the ~15min deploy?

  1. One to add the new config and set the JS to look there
  2. Another PR to really remove the unused symlinks paths etc

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aduth
Copy link
Contributor Author

aduth commented Nov 4, 2021

How do you feel about breaking this into two separate PRs? So that old boxes don't point at potentially broken links during the ~15min deploy?

  1. One to add the new config and set the JS to look there
  2. Another PR to really remove the unused symlinks paths etc

Yep, good thinking. Will update to split off a follow-on pull request to merge in a separate deploy.

**Why**: To avoid issue with mid-deploy session requests
@aduth
Copy link
Contributor Author

aduth commented Nov 4, 2021

How do you feel about breaking this into two separate PRs? So that old boxes don't point at potentially broken links during the ~15min deploy?

Split in 965177f, follow-up pull request at #5578.

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aduth aduth merged commit 70f46e0 into main Nov 5, 2021
@aduth aduth deleted the aduth-lg-4870-acuant-src-path branch November 5, 2021 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants