Skip to content

PY-225 Retrieval code communicating to the backend for metric rendering API#28

Merged
pitercl merged 9 commits intodev/fetch-metric-bucketsfrom
gabrys/fetch-metric-buckets-retrieval
Sep 3, 2025
Merged

PY-225 Retrieval code communicating to the backend for metric rendering API#28
pitercl merged 9 commits intodev/fetch-metric-bucketsfrom
gabrys/fetch-metric-buckets-retrieval

Conversation

@gabrys
Copy link
Contributor

@gabrys gabrys commented Sep 3, 2025

Before submitting checklist

  • Did you update the CHANGELOG? (not for test updates, internal changes/refactors or CI/CD setup)
  • Did you ask the docs owner to review all the user-facing changes?

@linear
Copy link

linear bot commented Sep 3, 2025

@gabrys gabrys changed the title PY-225 Retrieval code communicating to the backend for metric renderi… PY-225 Retrieval code communicating to the backend for metric rendering API Sep 3, 2025
@gabrys gabrys changed the base branch from gabrys/fetch-metric-buckets-retrieval-base to dev/fetch-metric-buckets September 3, 2025 13:30
@gabrys gabrys force-pushed the gabrys/fetch-metric-buckets-retrieval branch from c70cc76 to 918a7e6 Compare September 3, 2025 13:37
@gabrys gabrys force-pushed the gabrys/fetch-metric-buckets-retrieval branch from b768881 to abba1f3 Compare September 3, 2025 14:56
@gabrys gabrys force-pushed the gabrys/fetch-metric-buckets-retrieval branch from 33ffbbe to a1991c6 Compare September 3, 2025 15:02
@pitercl pitercl merged commit 9694c16 into dev/fetch-metric-buckets Sep 3, 2025
18 checks passed
@gabrys gabrys deleted the gabrys/fetch-metric-buckets-retrieval branch September 5, 2025 10:14
github-merge-queue bot pushed a commit that referenced this pull request Sep 9, 2025
* feat: fetch_metrics_buckets output format + draft of the rest (#25)

* feat: fetch_metrics_buckets [WIP]

* fix: naming

* fix: use IntervalIndex for buckets

* fix: review

---------

Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>

* feat: directly fetch run_attribute_definitions (#27)

* wip

* feat: directly fetch run_attribute_definitions

* feat: apply fetch_run_attribute_definitions to fethc_metric_buckets

* fix: revert changes to metrics

* fix: add tests for fetch_run_attribute_definitions_single_filter

* Deduplicate attribute values fetching logic  (#30)

* fix: review

* fix: remove test

---------

Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>

* fix: review

---------

Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>

* PY-225 Retrieval code communicating to the backend for metric rendering API (#28)

* Bump neptune-api to the dev version

* PY-225 Retrieval code communicating to the backend for metric rendering API

* Remove debugging left-overs

* Code review notes addressed

* Rename BucketMetric to TimeseriesBucket and populate all fields that backend sends

* Fix protobuf_v4plus imports

* Remove DEFAULT_MAX_BUCKETS and x_neptune_client_metadata

* fix circular import

* Fix unit tests too

* chore: rename cols/index (#32)

Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>

* feat: add logger (#33)

* feat: add logger

* Update src/neptune_query/internal/retrieval/retry.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/neptune_query/internal/retrieval/retry.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: sort create_metric_buckets_dataframe output df (#34)

Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>

* fix: change column name (#35)

* Bump neptune-api to 0.22.0 (#36)

* PY-235 Fix deserialization of optional fields of ProtoTimeseriesBucketsDTO (#40)

* PY-235 Fix deserialization of optional fields of ProtoTimeseriesBucketsDTO

* Update dataclass types too

* PY-233 Add @experimental decorator to fetch_metric_buckets (#42)

* PY-233 Add @experimental decorator to fetch_metric_buckets

* Add docstring for fetch_metric_buckets() (#37)

* add docstrings for fetch_metric_buckets()

* chore: add metric buckets tests (#31)

* chore: add some bucket tests

* fix: x range calcs

* fix: add nan/inf tests

* add different xs axes tests

* fix

---------

Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>

* feat: merge 1st and 2nd bucket (#44)

* feat: merge 1st and 2nd bucket

* fix: add several tests

* fix: limit 1000 and range ends equality

---------

Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>

* fix: add proper typing to experimental decorator (#51)

* fix: take start_point in the first bucket of a series (#45)

* take 1st point in the first series bucket

* fix: return proper first/last x/y from generate_categorized_rows

---------

Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>

* Fix output format for all non finite rows (#43)

* PY-236 Fix output format for all non finite rows

* fix: change index->filter in create_metrics_dataframe. Use ind/col instead of 0/1

* add a test with a bucket series of nans

---------

Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>

* fix: experimental status of fetch_metric_buckets in docstrings (#52)

* fix: experimental status of fetch_metric_buckets in docstrings

* Copy the copy from docs

* Some more changes

---------

Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
Co-authored-by: Piotr Gabryjeluk <piotr.gabryjeluk@neptune.ai>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Piotr Łusakowski <piotr.lusakowskI@neptune.ai>
Co-authored-by: Sabine Ståhlberg <sabine.stahlberg@neptune.ai>
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