Skip to content

Remove deprecated DEX support and tests (endpoints return 404)#93

Merged
martinkersner merged 4 commits into
mainfrom
issue-89-remove-deprecated-dex-support
Jun 30, 2026
Merged

Remove deprecated DEX support and tests (endpoints return 404)#93
martinkersner merged 4 commits into
mainfrom
issue-89-remove-deprecated-dex-support

Conversation

@martinkersner

@martinkersner martinkersner commented Jun 30, 2026

Copy link
Copy Markdown
Member

Summary

Closes #89.

The DEX endpoints are deprecated server-side — every /api/v1/dex/* call now returns 404 Cannot GET, which was the main cause of the integration-test failures. This PR removes DEX support and its tests entirely.

Removed:

  • SDKdatamaxi/datamaxi/dex.py (Dex client) and its import + self.dex = Dex(...) wiring in datamaxi/datamaxi/__init__.py.
  • Generated registrydatamaxi/_endpoints.py deleted in full. ENDPOINTS/GROUPS in that file are not imported anywhere in the SDK, tests, or packaging (clients build requests directly), so rather than hand-patch out the six dex_* entries from a generated artifact, the dead file is dropped. Verified: no consumers, import datamaxi clean, 140 tests still collect.
  • Teststest_dex (tests/test_call.py), the TestDex class (tests/test_integration.py), and the dex pytest marker (setup.cfg).
  • Docsdocs/dex.md, the - DEX: dex.md nav entry (mkdocs.yml), and the DEX Data section + TOC entry + client-description mention (README.md).

A repo-wide grep -ri dex sweep is clean (only index/set_index substrings remain).

⚠️ Codegen caveat (follow-up required)

datamaxi/_endpoints.py was an auto-generated file ("DO NOT EDIT — regenerate with: make python", sourced from openapi.yaml). The codegen source lives in a separate upstream repo not present here. This PR deletes the artifact, but the upstream codegen still emits it — so:

Action needed upstream: drop the dex tag from openapi.yaml AND stop emitting _endpoints.py (otherwise the next make python regenerates the file and reintroduces the dex entries). Note the file is currently unused, so a regen would not by itself resurrect the Dex client or the 404s — but it would undo this cleanup.

Test plan

  • python -m pytest tests/ --collect-only140 tests collected, no import/collection errors, no dex marker warnings. ✅
  • import datamaxi + Datamaxi('x') → import clean, no .dex attribute. ✅
  • python -m pytest tests/test_query_params.py tests/test_api.py10 passed. ✅
  • flake8 on changed files → clean. ✅
  • python -m pytest tests/test_call.py11 skipped — require a live DATAMAXI_API_KEY (not mocked); skipped offline. The former test_dex is gone.

Not run: the full tests/test_integration.py suite requires a live API key + network and was not executed in this environment. The DEX 404 failures it previously produced are removed by construction (the TestDex class is deleted).

Out of scope (per issue): TestPremium::test_premium_token_include is a separate non-DEX failure.

@martinkersner martinkersner self-assigned this Jun 30, 2026
DEX endpoints deprecated server-side (all /api/v1/dex/* return 404).
Drop Dex client, its wiring in Datamaxi.__init__, and the six dex_*
entries from _endpoints.py (GROUPS rebuilds, so dex group drops too).
Drop test_dex (test_call.py), the TestDex class (test_integration.py),
and the dex marker from setup.cfg.
ENDPOINTS/GROUPS in datamaxi/_endpoints.py are not imported anywhere in
the SDK, tests, or packaging — clients build requests directly. Drop the
dead generated artifact rather than keep patching its dex entries.
@martinkersner martinkersner force-pushed the issue-89-remove-deprecated-dex-support branch from af80bda to 08b4ea3 Compare June 30, 2026 04:20
@martinkersner martinkersner reopened this Jun 30, 2026
@martinkersner martinkersner merged commit 28d4b28 into main Jun 30, 2026
6 of 7 checks passed
@martinkersner martinkersner deleted the issue-89-remove-deprecated-dex-support branch June 30, 2026 04:25
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.

Remove deprecated DEX support and DEX tests (endpoints return 404)

1 participant