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

The loadEvents function does not work if 'startTime' and 'endTime' parameters are specified #1903

Closed
pavsenin opened this issue Jun 17, 2021 · 2 comments
Assignees
Labels
bug Issues related to defects and incorrect/unexpected feature behavior severity: moderate Issues with medium impact on the product, e.g., new features, non-critical defects, etc.

Comments

@pavsenin
Copy link

pavsenin commented Jun 17, 2021

Describe the bug
The loadEvents API function does not work if startTime and endTime parameters are specified

To Reproduce
Steps to reproduce the behavior:

  1. Execute the https://d6i6g4.resolve.sh/api/loadEvents request with the following event filter:
{
    startTime: new Date('2021-06-16T09:00:00').getTime(),
    endTime: new Date('2021-06-16T09:30:00').getTime(),
    limit: 2000,
    eventsSizeLimit: Number.MAX_SAFE_INTEGER,
    eventTypes: [
        REPORT_TASK_STARTED,
        REPORT_TEST_STARTED,
        REPORT_TEST_DONE,
        REPORT_TASK_DONE,
        UPLOAD_CREATED
    ]
}
  1. See error
    Error: ERROR: syntax error at or near ""sizedEvents""
    Position: 854

Expected behavior
All events between startTime and endTime are returned.

Desktop (please complete the following information):

  • 0.30.5 ReSolve Version
@pavsenin pavsenin changed the title The loadEvents function does not work if _startTime_ and _endTime_ parameters are specified The loadEvents function does not work if 'startTime' and 'endTime' parameters are specified Jun 17, 2021
@MrCheater MrCheater added bug Issues related to defects and incorrect/unexpected feature behavior severity: moderate Issues with medium impact on the product, e.g., new features, non-critical defects, etc. labels Jun 18, 2021
@FreeSlave
Copy link
Contributor

Fixed in 8441c09

@pavsenin
Copy link
Author

pavsenin commented Nov 16, 2021

Exactly the same request,

https://ddev.testcafe.io/api/loadEvents

The result:

Error: Invalid value undefined supplied to : EventFilterSchema/0: ({ limit: Int } & Partial<{ eventTypes: (Array | null), aggregateIds: (Array | null), eventsSizeLimit: Int }>)/0: { limit: Int }

Reopen issue please

@FreeSlave FreeSlave reopened this Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues related to defects and incorrect/unexpected feature behavior severity: moderate Issues with medium impact on the product, e.g., new features, non-critical defects, etc.
Projects
None yet
Development

No branches or pull requests

3 participants