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

Complete removal of "core" from the idiomatic API #314

Merged
merged 27 commits into from
Sep 18, 2024

Conversation

hemidactylus
Copy link
Collaborator

This PR removes the last big item of technical debt from astrapy. The whole client API is rewritten not to use any of the "core" (or pre-1.0) library, relying instead of the APICommander for all of its interactions with both the Data and DevOps APIs.

Additionally, with version 1.5 in mind, a deprecation notice is put in place for the whole "core" submodule (slated for removal in v2).

The rewriting of the whole client logic to do without "core" has implications in several places (see the CHANGES file for a quick map); but, notably, it allows to entirely remove the catch-and-reraise mechanism that used to be in place for most request-issuing methods in order to recast exceptions from core into "idiomatic" exceptions. This, incidentally, allows for a better control of the return types from said methods.

@hemidactylus hemidactylus changed the title Complere removal of "core" from the idiomatic API Complete removal of "core" from the idiomatic API Sep 16, 2024
@hemidactylus hemidactylus marked this pull request as draft September 17, 2024 16:54
@hemidactylus hemidactylus marked this pull request as ready for review September 17, 2024 23:17
Copy link
Collaborator

@erichare erichare left a comment

Choose a reason for hiding this comment

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

Exciting!! LGTM

@hemidactylus hemidactylus merged commit bdf08a4 into master Sep 18, 2024
3 checks passed
@hemidactylus hemidactylus deleted the SL-database-uses-api-commander branch September 18, 2024 16:39
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