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

[CAL-5185] Use slots not date-ranges for two weeks availability check #19371

Open
CarinaWolli opened this issue Feb 19, 2025 · 0 comments
Open
Assignees
Labels
crm-apps area: crm apps, salesforce, hubspot, close.com, sendgrid 🧹 Improvements Improvements to existing features. Mostly UX/UI Medium priority Created by Linear-GitHub Sync

Comments

@CarinaWolli
Copy link
Member

For CRM contact owner and fairness filtering, we check if there is any availability within the first two weeks. If the filtered users aren't available, we fallback to the original hosts.

Currently, we do this like that in slots/util.ts:

diff =
  aggregatedAvailability.length > 0 ? aggregatedAvailability[0].start.diff(twoWeeksFromNow, "day") : 1; // no aggregatedAvailability so we diff to +1

It checks if there are any date ranges starting in that time span. However, even though there is a date range, it doesn't mean that it's enough time for an available slot. Instead, we first need to calculate available slots and then check if there is a slot starting in the timespan.

From SyncLinear.com | CAL-5185

@CarinaWolli CarinaWolli self-assigned this Feb 19, 2025
@CarinaWolli CarinaWolli added the Medium priority Created by Linear-GitHub Sync label Feb 19, 2025
@dosubot dosubot bot added crm-apps area: crm apps, salesforce, hubspot, close.com, sendgrid 🧹 Improvements Improvements to existing features. Mostly UX/UI labels Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crm-apps area: crm apps, salesforce, hubspot, close.com, sendgrid 🧹 Improvements Improvements to existing features. Mostly UX/UI Medium priority Created by Linear-GitHub Sync
Projects
None yet
Development

No branches or pull requests

1 participant