Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

add show_time_lag to subscription stats function #200

Merged
merged 6 commits into from
Sep 9, 2022

Conversation

roisin-jin
Copy link
Contributor

This PR is to add the flag show_time_lag to the subscription stats endpoint to be aligned with the nakadi doc, so the subsequent response will populate the consumer time lag field (if nakadi computation not times-out)

Reference: https://nakadi.io/manual.html#/subscriptions/subscription_id/stats_get

@roisin-jin roisin-jin force-pushed the stats_add_show_time_lag branch 2 times, most recently from 495181c to 6909d3e Compare August 26, 2022 15:14
@gchudnov
Copy link
Collaborator

overall looks good, but need to check why tests are failing...
since we cannot merge without them.

@roisin-jin
Copy link
Contributor Author

overall looks good, but need to check why tests are failing... since we cannot merge without them.

Ya I'm not sure why those tests are failing, the change we put in here doesnt seem to effect tests at all?

@roisin-jin
Copy link
Contributor Author

Hi @gchudnov I've updated the PR here if you can give the integration test another run? Thanks

@gchudnov
Copy link
Collaborator

hm. it looks there is a problem with docker image for nakadi that are being used for testing. The Nakadi Server seems to be not working (?).

Need to reproduce manually and contact the creator of the image if there is a problem

@roisin-jin
Copy link
Contributor Author

hm. it looks there is a problem with docker image for nakadi that are being used for testing. The Nakadi Server seems to be not working (?).

Need to reproduce manually and contact the creator of the image if there is a problem

it looks like there's known issue with linux of the latest version since it's released this March, I've changed the version back to previous one to see if it works? @gchudnov

@gchudnov
Copy link
Collaborator

hm.. failing..

@coveralls
Copy link

coveralls commented Sep 8, 2022

Pull Request Test Coverage Report for Build 3014322905

  • 2 of 3 (66.67%) changed or added relevant lines in 1 file are covered.
  • 12 unchanged lines in 7 files lost coverage.
  • Overall coverage increased (+0.3%) to 74.953%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/main/scala/org/zalando/kanadi/api/Subscriptions.scala 2 3 66.67%
Files with Coverage Reduction New Missed Lines %
src/main/scala/org/zalando/kanadi/api/EventTypes.scala 1 93.81%
src/main/scala/org/zalando/kanadi/models/PaginationLink.scala 1 50.0%
src/main/scala/org/zalando/kanadi/models/ReadScope.scala 1 50.0%
src/main/scala/org/zalando/kanadi/models/StreamId.scala 1 50.0%
src/main/scala/org/zalando/kanadi/models/SubscriptionId.scala 1 50.0%
src/main/scala/org/zalando/kanadi/models/PartitionCompactionKey.scala 2 0%
src/main/scala/org/zalando/kanadi/api/Subscriptions.scala 5 70.09%
Totals Coverage Status
Change from base Build 1638988635: 0.3%
Covered Lines: 395
Relevant Lines: 527

💛 - Coveralls

@gchudnov gchudnov merged commit 4d38d7d into zalando-nakadi:master Sep 9, 2022
gchudnov pushed a commit that referenced this pull request Dec 2, 2022
* add show_time_lag to subscription stats function

Signed-off-by: Roisin Jin <[email protected]>
Co-authored-by: Roisin Jin <[email protected]>
Signed-off-by: Grigorii Chudnov <[email protected]>
gchudnov pushed a commit that referenced this pull request Dec 2, 2022
* add show_time_lag to subscription stats function

Signed-off-by: Roisin Jin <[email protected]>
Co-authored-by: Roisin Jin <[email protected]>
Signed-off-by: Grigorii Chudnov <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants