cef8610925
feat: add enabled column to UserFeatures and TeamFeatures for tri-state semantics ( #25765 )
...
* feat: add enabled column to UserFeatures and TeamFeatures for tri-state semantics
- Add enabled Boolean column to UserFeatures model with default true
- Add enabled Boolean column to TeamFeatures model with default true
- Update FeaturesRepository to use tri-state semantics:
- enabled=true: feature is explicitly enabled
- enabled=false: feature is explicitly disabled (blocks inheritance)
- No row: inherit from team/org level
- Update SQL queries to check enabled=true for feature access
- Add enableFeatureForTeam method to interface and implementation
Co-Authored-By: eunjae@cal.com <hey@eunjae.dev >
* update comments
* add integration tests
* add more test
* select enabled only
* no @default(true)
* fix types and tests
* add missing enabled
* add missing enabled
* rename enableFeatureForTeam to updateFeatureForTeam and support FeatureState
* refactor: rename updateFeatureForTeam to setTeamFeatureState
Co-Authored-By: eunjae@cal.com <hey@eunjae.dev >
* fix integration test
* fix tests
* add more tests
* add missing enabled
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2025-12-18 07:16:20 -03:00
2c8ff89fac
perf: Calendar Cache Improvements ( #25502 )
...
* wip
* Filter only selectedCalendars where ff is enabled
* test: fix and add tests for calendar subscription cache feature
Co-Authored-By: Volnei Munhoz <volnei.munhoz@gmail.com >
* test: fix SelectedCalendarRepository tests for new teamIds parameter
Co-Authored-By: Volnei Munhoz <volnei.munhoz@gmail.com >
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2025-12-02 08:11:52 -03:00
2eb385af48
feat: allows forcing/skipping calendar cache serving ( #18224 )
...
* feat: allows forcing/skipping calendar cache serving
Signed-off-by: Omar López <zomars@me.com >
* Update features.repository.ts
* Added to HNB
* type fixes
* Update packages/prisma/migrations/20241216000000_add_calendar_cache_serve/migration.sql
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
* Update packages/prisma/zod-utils.ts
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
* Update selectedCalendar.ts
---------
Signed-off-by: Omar López <zomars@me.com >
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
2024-12-17 16:54:55 +00:00
Omar López and GitHub
16573717b4
fix: identify org-wide features per user ( #17010 )
2024-11-19 15:21:38 -05:00
Omar López and GitHub
7c0ee9f186
revert: "feat: Populate gCal calendar cache via webhooks ( #11928 )"" ( #17682 )
2024-11-18 19:48:33 +00:00
Keith Williams and GitHub
6272c881c8
revert: "feat: Populate gCal calendar cache via webhooks ( #11928 )" ( #17675 )
...
This reverts commit d294a74aad .
2024-11-15 19:28:30 -03:00
d294a74aad
feat: Populate gCal calendar cache via webhooks ( #11928 )
...
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* Update CalendarService.ts
* Type fixes
* WIP
* fix: improve cache hits
* Update CalendarService.ts
* Update CalendarService.ts
* Update CalendarService.ts
* Update CalendarService.ts
* Update CalendarService.ts
* Update CalendarService.ts
* Feedback
* Update CalendarService.ts
* Update CalendarService.ts
* Update _router.ts
* feedback
* WIP
* WIP
* Update schema.prisma
* feedback
* typefixes
* Update Calendar.d.ts
* fix: watches when adding a calendar
* Discard changes to packages/app-store/googlecalendar/api/add.ts
* WIP
Signed-off-by: Omar López <zomars@me.com >
* WIP
Signed-off-by: Omar López <zomars@me.com >
* WP
Signed-off-by: Omar López <zomars@me.com >
* Update calendar.ts
* Update calendar.ts
* Update callback.ts
* Update callback.ts
* Conflicts
* WIP
* WIP
* Update CalendarService.ts
* Cleanup
* Discard changes to packages/features/settings/layouts/SettingsLayout.tsx
* Update calendar-cache.repository.ts
* WIP
* Update getSelectedCalendarsToWatch.sql
* WIP
* Update CalendarService.ts
* Cleanup
* Discard changes to packages/app-store/googlecalendar/lib/CalendarService.ts
* Create CalendarService.wip.ts
* WIP
* Update CalendarService.ts
* Update getSelectedCalendarsToWatch.sql
* Delete CalendarService.wip.ts
* test updates
* cleanup
Signed-off-by: Omar López <zomars@me.com >
* Update CalendarService.test.ts
* Update CalendarService.ts
* type fixes
* Update OAuthManager.ts
* Update CalendarService.ts
* Almost there
* Update CalendarService.test.ts
* Update calendar.ts
* Update callback.ts
* Update toggleFeatureFlag.handler.ts
* fix: feedback
* Update getSelectedCalendarsToWatch.sql
* Fix unit tests
---------
Signed-off-by: Omar López <zomars@me.com >
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com >
2024-11-15 14:59:37 -03:00
1a60afad7a
chore: booking verification token and booking rejection logic from email ( #16324 )
...
Co-authored-by: Omar López <zomars@me.com >
2024-09-21 02:25:27 +00:00