-
Notifications
You must be signed in to change notification settings - Fork 0
Migrate to platform APIs #47
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
Conversation
9c8c207 to
9c3bb7c
Compare
this will serve as the unified ENLYZE platform API client
9c3bb7c to
cd246ba
Compare
cd246ba to
62bf4cd
Compare
Coverage resultsUpdate on 2025-05-05 14:38:06.962550955 +0000 This is the coverage report for commit 0c06385 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the synthesis of the previously single client prior to the introduction of Production Runs.
daniel-k
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't reviewed it yet, just noticed that coverage is missing for one line:
Name Stmts Miss Cover Missing
------------------------------------------------------------------------------------------------
.tox/py/lib/python3.12/site-packages/enlyze/api_client/client.py 64 1 98% 149
Co-authored-by: Daniel Krebs <daniel-k@users.noreply.github.com>
Co-authored-by: Daniel Krebs <daniel-k@users.noreply.github.com>
when this PR was submitted, the production run's machine field used to be an expanded subset of the machines endpoint featuring the machine's uuid and name field. After our refactor to a uuid reference of `machine`, MachineBase has become obsolete.
daniel-k
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for addressing my comments so far. What about these two?
This PR fixes issues we overlooked when merging #47. It depends on #54 so that we can review the fixes in isolation and don't get distracted with code that has already been approved. - remove `Site.address`: we don't publish this property anymore since `v2` - refactor `get_timeseries()` to use `POST` with slightly changed schema in `v2` Closes #45
This PR migrates the project to our new unified platform APIs hosted under
/api/v2, byBearer(fromToken)Sites to uuidsMoreover, this PR fixes a bug in
datetime_before_today_strategythat caused flaky test results.How to review
Commit by commit. I've done my best to keep commits atomic and semantic.
Closes
/api/v2#45