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

fix open-data endpoint timeout bug #2435

Merged
merged 5 commits into from
Jun 14, 2023
Merged

Commits on Jun 13, 2023

  1. fix open-data endpoint timeout bug

    there currently exists a peculiar intermittent bug where after ordering the queryset and
    the first item is accessed such as instances[0] or by slicing instances[0:1] (as in the
    the pagination implementation) the execution freezes and no result is returned.
    This causes the server to timeout. The workaround only ensures we order and paginate
    the results only when the queryset returns more than 1 item
    kelvin-muchiri committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    cddc559 View commit details
    Browse the repository at this point in the history
  2. address linting error

    kelvin-muchiri committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    26a312d View commit details
    Browse the repository at this point in the history
  3. add test case

    add test case for count query parameter on endpoint /api/v2/open-data/<uuid>/data
    kelvin-muchiri committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    dd92610 View commit details
    Browse the repository at this point in the history
  4. address linting errors

    kelvin-muchiri committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    7cd641b View commit details
    Browse the repository at this point in the history
  5. address linting errors

    kelvin-muchiri committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    fb07aa9 View commit details
    Browse the repository at this point in the history