Skip to content

Read Lever companies of the EU instance - #57

Merged
albertoarena merged 2 commits into
albertoarena:mainfrom
danielebarbaro:fix/lever-eu-host
Nov 25, 2026
Merged

albertoarena merged 2 commits into
albertoarena:mainfrom
danielebarbaro:fix/lever-eu-host

Conversation

@danielebarbaro

Copy link
Copy Markdown
Contributor

Changes

  • When api.lever.co answers 404 for a company, the reader tries api.eu.lever.co one time.
  • If the EU host also has no such company, the user sees the error of the main host.
  • PRIVACY.md and docs/REQUIREMENTS.md name the second host.
  • A new fixture from a real EU board, with tests.

Review

  • Lever has two instances, and a company is on one of them. Today a company of the EU instance gives "not found" in the app, and the user cannot add it.
  • Two real examples on 2026-11-24: coinspaid (it has a Senior PHP Backend Engineer job) and tomtom.
  • The second request is sent only after a 404. A company of the main instance has no extra request, and another error does not start a second request.
  • docs/DECISIONS.md has the decision.
  • Pest, PHPStan and Pint pass.

Manual checks

  • Not run in the app. The tests cover the EU host, a 404 on the two hosts, and an error that is not a 404.

danielebarbaro and others added 2 commits November 24, 2026 08:43
The main Lever host answers 404 for a company of the EU instance. The reader then asks the EU host, with the same entry. The fixture is a real response of the EU host.
# Conflicts:
#	docs/DECISIONS.md
@albertoarena
albertoarena merged commit f20fe06 into albertoarena:main Nov 25, 2026
3 checks passed
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