qontract-reconcile 0.10.1rc1175__py3-none-any.whl → 0.10.1rc1176__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {qontract_reconcile-0.10.1rc1175.dist-info → qontract_reconcile-0.10.1rc1176.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc1175.dist-info → qontract_reconcile-0.10.1rc1176.dist-info}/RECORD +7 -7
- reconcile/utils/ocm/subscriptions.py +4 -1
- reconcile/utils/ocm_base_client.py +5 -0
- {qontract_reconcile-0.10.1rc1175.dist-info → qontract_reconcile-0.10.1rc1176.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc1175.dist-info → qontract_reconcile-0.10.1rc1176.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc1175.dist-info → qontract_reconcile-0.10.1rc1176.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc1175.dist-info → qontract_reconcile-0.10.1rc1176.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: qontract-reconcile
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.1rc1176
|
4
4
|
Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
|
5
5
|
Home-page: https://github.com/app-sre/qontract-reconcile
|
6
6
|
Author: Red Hat App-SRE Team
|
{qontract_reconcile-0.10.1rc1175.dist-info → qontract_reconcile-0.10.1rc1176.dist-info}/RECORD
RENAMED
@@ -702,7 +702,7 @@ reconcile/utils/oc.py,sha256=AjwQnzLxnMv0ML70GfjTHeYmiNsztI8kgXQF3N0Hvfw,66088
|
|
702
702
|
reconcile/utils/oc_connection_parameters.py,sha256=7DiEGo--TJelfYoZXJFyTBPeTw9kXL3L58vy2fiJnes,9643
|
703
703
|
reconcile/utils/oc_filters.py,sha256=Tz3OwtbUaYKmxENFls5CtPVzkZDeFXknw53dJe-wbT8,1382
|
704
704
|
reconcile/utils/oc_map.py,sha256=U8cYhiaZsomkofzbIjVrl7E7crRxkS2JKsFpVeeHVE8,8964
|
705
|
-
reconcile/utils/ocm_base_client.py,sha256=
|
705
|
+
reconcile/utils/ocm_base_client.py,sha256=DFqm5Z_KqBC3WYzEJH4-Kt6Zow2OLtT0jpHmnhwbSHU,6694
|
706
706
|
reconcile/utils/openshift_resource.py,sha256=ZyQ436YdV80nvKGPuzYyYLLJj8Abjnb3e_PsejxBTNM,24715
|
707
707
|
reconcile/utils/openssl.py,sha256=QVvhzhpChq_4Daf_5wE1qeZJr4thg3DDjJPn4bOPD4E,365
|
708
708
|
reconcile/utils/output.py,sha256=xh2Not-Xm97KeRx_J5nc2PP5tDwpDLZBeCrWI0S-al4,2034
|
@@ -802,7 +802,7 @@ reconcile/utils/ocm/search_filters.py,sha256=jdj2sMGArcQrZLluzxeypPSbMFX_5zSE3AC
|
|
802
802
|
reconcile/utils/ocm/service_log.py,sha256=RG1f0MMn6joKaRCAm2xveSJCavdOPP1BVo9FXecDxaI,2018
|
803
803
|
reconcile/utils/ocm/sre_capability_labels.py,sha256=nqh0imrYczNeeeC7ZNX3pEwuAIVkKLTKZf0YHSPZYpE,1537
|
804
804
|
reconcile/utils/ocm/status_board.py,sha256=fOuyzkykxU9Rr7zhW5VaY0Vkn8Ur-GxvElzb8No-DZg,2283
|
805
|
-
reconcile/utils/ocm/subscriptions.py,sha256=
|
805
|
+
reconcile/utils/ocm/subscriptions.py,sha256=hehKXsDXIhnhqvWOuiYvx6y2FGq3zt0APGYj7WiBIdI,2765
|
806
806
|
reconcile/utils/ocm/syncsets.py,sha256=9IQm1l5BodOVZa2OFbQmow3afmh4nXe5pn-CCJ5LxTI,1169
|
807
807
|
reconcile/utils/ocm/upgrades.py,sha256=VSpW_B3ux7XZjnxV7klW2OjPYW8Wh0rN7snDuiN0q2c,4861
|
808
808
|
reconcile/utils/rosa/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -880,8 +880,8 @@ tools/test/test_qontract_cli.py,sha256=iuzKbQ6ahinvjoQmQLBrG4shey0z-1rB6qCgS8T6d
|
|
880
880
|
tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
|
881
881
|
tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
|
882
882
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
883
|
-
qontract_reconcile-0.10.
|
884
|
-
qontract_reconcile-0.10.
|
885
|
-
qontract_reconcile-0.10.
|
886
|
-
qontract_reconcile-0.10.
|
887
|
-
qontract_reconcile-0.10.
|
883
|
+
qontract_reconcile-0.10.1rc1176.dist-info/METADATA,sha256=FO4VVCgyw7g9Ej_-qTU5yN7o37gXyNGXakWuCm-G49c,2213
|
884
|
+
qontract_reconcile-0.10.1rc1176.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
|
885
|
+
qontract_reconcile-0.10.1rc1176.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
|
886
|
+
qontract_reconcile-0.10.1rc1176.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
887
|
+
qontract_reconcile-0.10.1rc1176.dist-info/RECORD,,
|
@@ -18,9 +18,12 @@ def get_subscriptions(
|
|
18
18
|
subscriptions = {}
|
19
19
|
chunk_size = 100
|
20
20
|
for filter_chunk in filter.chunk_by("id", chunk_size, ignore_missing=True):
|
21
|
+
# Note, that pagination is currently broken.
|
22
|
+
# Each call will return a random order, meaning pages are not consistent.
|
23
|
+
# ALWAYS by default use "orderBy: id", as id has an index in the db.
|
21
24
|
for subscription_dict in ocm_api.get_paginated(
|
22
25
|
api_path="/api/accounts_mgmt/v1/subscriptions?fetchCapabilities=true&fetchLabels=true",
|
23
|
-
params={"search": filter_chunk.render()},
|
26
|
+
params={"search": filter_chunk.render(), "orderBy": "id"},
|
24
27
|
max_page_size=chunk_size,
|
25
28
|
):
|
26
29
|
try:
|
@@ -84,6 +84,11 @@ class OCMBaseClient:
|
|
84
84
|
max_page_size: int = 100,
|
85
85
|
max_pages: int | None = None,
|
86
86
|
) -> Generator[dict[str, Any], None, None]:
|
87
|
+
"""
|
88
|
+
Note, that pagination is currently broken.
|
89
|
+
Each call will return a random order, meaning pages are not consistent.
|
90
|
+
ALWAYS by default try to use "orderBy: id", as id exists for every resource and has an index in the db.
|
91
|
+
"""
|
87
92
|
params_copy = {} if not params else params.copy()
|
88
93
|
params_copy["size"] = max_page_size
|
89
94
|
|
{qontract_reconcile-0.10.1rc1175.dist-info → qontract_reconcile-0.10.1rc1176.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|