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

'Before' & 'After' Date Parameters Not Working #1089

Open
cbgrace opened this issue Dec 13, 2023 · 3 comments
Open

'Before' & 'After' Date Parameters Not Working #1089

cbgrace opened this issue Dec 13, 2023 · 3 comments

Comments

@cbgrace
Copy link

cbgrace commented Dec 13, 2023

What kind of issue?

Bug

User story

The before & after parameters seem to not really do anything, I am only seeing results from the last week. This does not match the behavior outlined in the documentation I found at: https://open.gsa.gov/api/dap/

Acceptance Criteria

  • [ ]

Notes

For example, if you notice in the following link, the dates only go back to 2023-12-05:
https://api.gsa.gov/analytics/dap/v1.1/agencies/agriculture/reports/site/data?api_key=DEMO_KEY1&before=2023-12-12&after=2023-11-25
Additionally, the following link returns an empty list:
https://api.gsa.gov/analytics/dap/v1.1/agencies/agriculture/reports/site/data?api_key=DEMO_KEY1&before=2023-12-01&after=2023-11-25
Changing the agency name or report type does not seem to matter either:
https://api.gsa.gov/analytics/dap/v1.1/agencies/interior/reports/download/data?api_key=DEMO_KEY1&before=2023-12-01&after=2023-11-25
https://api.gsa.gov/analytics/dap/v1.1/agencies/state/reports/os/data?api_key=DEMO_KEY1&before=2023-12-01&after=2023-11-25

Tasks (Optional)

@smarina04
Copy link
Contributor

@cbgrace thank you for reporting this, we recently did an upgrade and some of the older data did not propagate over to the newer database. We believe we have resolved the issue, and ask that you attempt your API queries once more. Please let us know if you see ANYTHING out of the ordinary.

@jhaese
Copy link

jhaese commented Jan 12, 2024

I am also facing this issue, I cannot access data older than 2023-07-31 while I could access data up to 2017 before.

@jhaese
Copy link

jhaese commented May 7, 2024

It still does not seem to propagate in v2.0.0, please see for example the following request: https://api.gsa.gov/analytics/dap/v2.0.0/reports/os-browser/data?api_key=DEMO_KEY1&before=2024-02-25

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

No branches or pull requests

3 participants