Skip to content

Conversation

@d-klotz
Copy link
Contributor

@d-klotz d-klotz commented Oct 13, 2025

Version

Published prerelease version: @friggframework/api-module-frigg-scale-test@0.2.0-next.3

Changelog

🚀 Enhancement

  • @friggframework/api-module-frigg-scale-test
    • fix: correct API name and enhance authorization requirements for scale-test module #53 (@d-klotz)
  • @friggframework/api-module-microsoft-teams, @friggframework/api-module-slack, @friggframework/api-module-42matters, @friggframework/api-module-asana, @friggframework/api-module-attio, @friggframework/api-module-connectwise, @friggframework/api-module-contentful, @friggframework/api-module-contentstack, @friggframework/api-module-crossbeam, @friggframework/api-module-deel, @friggframework/api-module-frigg-scale-test, @friggframework/api-module-frontify, @friggframework/api-module-google-calendar, @friggframework/api-module-google-drive, @friggframework/api-module-helpscout, @friggframework/api-module-hubspot, @friggframework/api-module-ironclad, @friggframework/api-module-linear, @friggframework/api-module-salesforce, @friggframework/api-module-stripe, @friggframework/api-module-unbabel-projects, @friggframework/api-module-unbabel, @friggframework/api-module-zoho-crm, @friggframework/api-module-zoom
    • fix: add setAuthParams method for API key authentication in scale-test module #52 (@d-klotz)

Authors: 1

return num - 1;
function findContactIndexByUUID(accountId: string, targetUUID: string): number | undefined {
// For UUID-based IDs, we need to search through indices to find a match
// This is acceptable for scale test purposes with 10k contacts
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be poor for 100k, 1 million etc yeah?

let offset = cursorData?.offset ?? 0;
const since = parseUpdatedSince(params.updatedSince);
const contactIndexFilter = parseContactIndex(params.contactId);
const contactIndexFilter = params.contactId ? findContactIndexByUUID(params.accountId, params.contactId) : undefined;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be funky/slow at some scale, but we can handle at a later date

const limit = computeLimit(cursorData?.limit ?? params.limit, config);
let offset = cursorData?.offset ?? 0;
const since = parseUpdatedSince(params.updatedSince);
const mutations = await state.getLatestMutations(params.accountId, "contact");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll want to eventually optimize this, but unnecessary for the timebeing

@d-klotz d-klotz marked this pull request as ready for review October 20, 2025 19:10
@d-klotz d-klotz added release prerelease This change is available in a prerelease. labels Oct 20, 2025
@d-klotz d-klotz merged commit f87fc97 into next Oct 20, 2025
3 checks passed
@d-klotz d-klotz deleted the fix/scalability-api-module branch October 20, 2025 19:11
@seanspeaks
Copy link
Contributor

🚀 PR was released in @friggframework/api-module-frigg-scale-test@0.2.0-next.3 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

prerelease This change is available in a prerelease. release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants