Skip to content

Conversation

@abhayymishraa
Copy link
Contributor

@abhayymishraa abhayymishraa commented Jan 4, 2026

What does this PR do?

This PR fixes the problem where round‑robin (and collective) team event types seeded in development did not display any team availabilities. The root cause was that the seeding logic created the team and its members but never created the corresponding Host records that link users to the event type. Without those Host entries the availability engine has no users to query, so the UI shows an empty slot list.

Visual Demo (For contributors especially)

A visual demonstration is strongly recommended, for both the original and new change (video / image - any one).

Video Demo (if applicable):

After fix:

Screen.Recording.2026-01-04.at.2.02.34.PM.mov

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

  1. Reset the DB (as you already did):
    yarn workspace @calcom/prisma db-reset
  2. Run the seed script:
    yarn dx   # or the command you normally use to seed
  3. Log in as [email protected] (or any seeded user that belongs to a team with a round‑robin event).
  4. Navigate to Team → Seeded Team → “Round Robin Seeded Team Event”.
  5. Verify that the calendar now shows the team members’ available time slots (instead of an empty list).

Environment variables: No special env vars are needed beyond the usual ones for the local dev server.


  • Are there environment variables that should be set?
  • What are the minimal test data to have?
  • What is expected (happy path) to have (input and output)?
  • Any other important info that could help to test that PR

Checklist

@vercel
Copy link

vercel bot commented Jan 4, 2026

@abhayymishraa is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Jan 4, 2026
@github-actions github-actions bot added the 🐛 bug Something isn't working label Jan 4, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Copy link
Member

@dhairyashiil dhairyashiil left a comment

Choose a reason for hiding this comment

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

LGTM

@dhairyashiil dhairyashiil changed the title fix(seed): add missing Host entries for seeded round‑robin team events fix(seed): add missing Host entries for seeded round‑robin and collective team events Jan 4, 2026
@dhairyashiil dhairyashiil added the run-ci Approve CI to run for external contributors label Jan 4, 2026
@dhairyashiil dhairyashiil enabled auto-merge (squash) January 4, 2026 09:52
@dhairyashiil dhairyashiil merged commit f9dc3f2 into calcom:main Jan 4, 2026
65 of 72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working community Created by Linear-GitHub Sync ready-for-e2e run-ci Approve CI to run for external contributors size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Round robin events seeded in development do not display team availabilities

2 participants