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

Migrate to platform APIs #47

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

denizs
Copy link
Member

@denizs denizs commented Aug 15, 2024

This PR migrates the project to our new unified platform APIs hosted under /api/v2, by

  • Unifying API clients which we previously had separated due to different and inconsistent pagination schemes.
  • Changing the authentication scheme to Bearer (from Token)
  • Moving from numeric ids for Sites to uuids

Moreover, this PR fixes a bug in datetime_before_today_strategy that caused flaky test results.

How to review
Commit by commit. I've done my best to keep commits atomic and semantic.

Closes

@denizs denizs force-pushed the major/migrate-to-platform-apis branch 2 times, most recently from 9c8c207 to 9c3bb7c Compare August 16, 2024 10:23
@denizs denizs changed the title Migrate to platform apis Migrate to platform APIs Aug 16, 2024
@denizs denizs force-pushed the major/migrate-to-platform-apis branch from 9c3bb7c to cd246ba Compare August 16, 2024 10:25
@denizs denizs force-pushed the major/migrate-to-platform-apis branch from cd246ba to 62bf4cd Compare August 16, 2024 10:28
@denizs denizs marked this pull request as ready for review August 16, 2024 10:52
Copy link

Coverage results

This is the coverage report for commit 24a321c

Name                                                               Stmts   Miss  Cover   Missing
------------------------------------------------------------------------------------------------
.tox/py/lib/python3.12/site-packages/enlyze/__init__.py                4      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/api_client/client.py      64      1    98%   149
.tox/py/lib/python3.12/site-packages/enlyze/api_client/models.py      83      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/auth.py                   13      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/client.py                105      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/constants.py               7      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/errors.py                  3      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/iterable_tools.py          7      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/models.py                110      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/schema.py                 26      0   100%
.tox/py/lib/python3.12/site-packages/enlyze/validators.py             38      0   100%
------------------------------------------------------------------------------------------------
TOTAL                                                                460      1    99%

2 empty files skipped.

Copy link
Member Author

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.

@denizs denizs requested review from cipherself and daniel-k and removed request for cipherself August 16, 2024 11:36
Copy link
Member

@daniel-k daniel-k left a 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

@daniel-k daniel-k linked an issue Sep 6, 2024 that may be closed by this pull request
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.

Move to /api/v2
2 participants