Skip to content

Commit

Permalink
feat(api-perf-test): revert API query to original method on test inst…
Browse files Browse the repository at this point in the history
…ance for A/B performance testing (#2492)

Temporarily revert API query to original method on test instance for A/B
performance testing
  • Loading branch information
hogo6002 authored Aug 21, 2024
1 parent 826105d commit c3a6deb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions gcp/api/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,8 +1070,13 @@ def query_by_version(context: QueryContext,
bugs.append(bug)
elif project == 'oss-vdb-test' and supports_ordering:
# Query for non-enumerated ecosystems.
bugs, next_page_token = yield _query_by_comparing_versions(
context, query, ecosystem, version)

# Performance testing only
# TODO(gongh): revert change back after testing.
# bugs, next_page_token = yield _query_by_comparing_versions(
# context, query, ecosystem, version)
bugs, next_page_token = yield _query_by_generic_version(
context, query, package_name, ecosystem, purl, version)
else:
bugs, next_page_token = yield _query_by_generic_version(
context, query, package_name, ecosystem, purl, version)
Expand Down

0 comments on commit c3a6deb

Please sign in to comment.