Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the new ARES (Administrativní registr ekonomických subjektů) version #225

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

spaze
Copy link
Owner

@spaze spaze commented Sep 15, 2023

The new version uses JSON instead of XML.

The announcement & archived

See https://ares.gov.cz/stranky/vyvojar-info & https://ares.gov.cz/swagger-ui/ for the docs.
This is using the /ekonomicke-subjekty endpoint because it returns DIČ/tax id as well.


Follow-ups & bugs:

@spaze spaze self-assigned this Sep 15, 2023
@spaze spaze merged commit f657a9e into main Sep 15, 2023
54 checks passed
@spaze spaze deleted the spaze/ares-json branch September 15, 2023 02:02
spaze added a commit that referenced this pull request Sep 15, 2023
spaze added a commit that referenced this pull request Sep 15, 2023
spaze added a commit that referenced this pull request Sep 25, 2023
They now probably add it themselves.

Followup to #225
spaze added a commit that referenced this pull request Sep 25, 2023
They now probably add it themselves.

Followup to #225
@spaze spaze mentioned this pull request Oct 16, 2023
spaze added a commit that referenced this pull request Oct 16, 2023
I don't understand why but for this 'res' source, the country code is returned as "1", yes a string, instead of "cz", so let's deal with that. This wasn't happening when I've build the support in #225.

It could be easily removed in the future, and there's a test for it (the one for the company with id 00256081), so if it is removed and it shouldn't be, I should know about it rather soon.

Fix #242

The test querying the service is marked as "skipped" because it uses the Internet to actually query the live service and I don't want to query it when I'm running my tests in dev env for example. But I'd like to run the tests someday, so I've introduced a way to run all skipped tests, just define an environment variable `TEST_CASE_RUNNER_INCLUDE_SKIPPED=1` and run the test case again. Will also do it automatically with GitHub Actions.
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.

1 participant