Skip to content

Conversation

@erayaydin
Copy link
Member

Made the functional test script simpler. We no longer compare visitorId between recent and oldest events.

✏️ What Changed?

  • Compare old vs new events by requestId only (removed visitorId check) so repeated visitors don't fail the check.
  • Validate FPJS_API_SECRET env variable at startup. Fail fast if missing.
  • Normalize FPJS_API_REGION env reading.
  • Drop unused ApiClient import.
  • Simplify api client building.
  • Replace global FPJS_* with local variables.
  • Add null-safety assertions.
  • Small readability tweaks.

Validate `FPJS_API_SECRET` environment. Normalize region env variable.
Remove unused `ApiClient` import. Simplify `FingerprintApi` build.
Replace global `FPJS_*` with local variables. Add null-safety
assertions. Minor readability tweaks.

Related-Task: INTER-1473
@erayaydin erayaydin self-assigned this Sep 28, 2025
@erayaydin erayaydin marked this pull request as ready for review September 29, 2025 13:13
mcnulty-fp
mcnulty-fp previously approved these changes Sep 29, 2025
Copy link
Contributor

@mcnulty-fp mcnulty-fp left a comment

Choose a reason for hiding this comment

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

LGTM! One minor comment about enabling assertions to fail the FunctionalTests when the assertions fail.

Add `-ea` jvm args to the `runFunctionalTests`.

Related-Task: INTER-1473
@github-actions
Copy link
Contributor

⚠️ This PR doesn't contain any changesets. If there are user-facing changes, don't forget to run:

pnpm exec changeset

to create a changeset.

@erayaydin erayaydin merged commit 1114b0b into main Sep 29, 2025
12 checks passed
@erayaydin erayaydin deleted the feat/remove-visitorId-comparison-inter-1473 branch September 29, 2025 18:52
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.

3 participants