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

REGRESSION - analytics view not loading for 7 days or 28 days #3747

Closed
ilarimikkonen opened this issue May 9, 2019 · 2 comments · Fixed by #3748
Closed

REGRESSION - analytics view not loading for 7 days or 28 days #3747

ilarimikkonen opened this issue May 9, 2019 · 2 comments · Fixed by #3748

Comments

@ilarimikkonen
Copy link
Member

this is suspected to be due to regression caused by Meteor 1.8

  1. login to platform (https://94-237-88-234.de-fra1.upcloud.host/ can be used), create an account if needed
  2. ask admin access from me
  3. go to https://94-237-88-234.de-fra1.upcloud.host/dashboard?proxy_id=zXsL5K9MHemjgbNJy&timeframe=7&sort=name

error: no data is shown for 7 days and 28 days.
expected: data is shown for all selected time periods.

This is a good place to start digging: https://github.com/apinf/platform/blob/af8881beb8d13c4b55506009aa2cbc1aed3810cf/apinf_packages/analytics/server/methods.js

I suspect that this causes the regression: 0973a6b#diff-30ce14aa9f6f1695d82b6c9d416cf38e

to develop locally, you need to clone the meteor project. to have meaningful long term data for testing, you need to have a proxy and elastic search to work with:

  1. locally run the meteor project
  2. setup a proxy:
    https://94-237-88-234.de-fra1.upcloud.host:3002
    dQ0TXVfQLu3iiL7dpROFOZmePUnbudjjFkkIortB
    3BVE4qRnveSbMSdWj3euM1fE2JXfS3IJNDTSMeKD
    http://94-237-88-234.de-fra1.upcloud.host:9200
  3. add an API and generate some traffic
  4. check the stats for 7 or 28 days.
@ilarimikkonen
Copy link
Member Author

on the other hand; not sure what is causing this. the code in https://apinf.io/analytic/parkkihaukka?timeframe=7 is broken, and that runs on meteor 1.5 still. this works: https://vamos.apinf.io/dashboard?proxy_id=vf6xnqQMbmNnKgoHH&timeframe=7&sort=name and it runs meteor 1.5 also.

@ilarimikkonen
Copy link
Member Author

  • I have confirmed that there is data in the mongo db.

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 a pull request may close this issue.

1 participant