Skip to content

fix(repos): correct SQLAlchemy cast type in search analytics (no API/UI changes)#28

Merged
msaedi merged 1 commit intomainfrom
fix/search-analytics-cast-20250921
Sep 21, 2025
Merged

fix(repos): correct SQLAlchemy cast type in search analytics (no API/UI changes)#28
msaedi merged 1 commit intomainfrom
fix/search-analytics-cast-20250921

Conversation

@msaedi
Copy link
Copy Markdown
Owner

@msaedi msaedi commented Sep 21, 2025

Summary

  • replace the cast(SearchEvent.searched_at, Date) grouping with func.date(...) so we hand SQLAlchemy a real TypeEngine rather than a Python list wrapper
  • retain the analytics shape for search patterns; no other runtime behavior changes
  • Vercel previews remain informational only; required guardrails stay CI, env-contract, schemathesis, lint-build, privacy/size audits

Failure reference

  • tests/test_search_deduplication.py::test_search_analytics_data raised AttributeError: 'list' object has no attribute '_is_tuple_type' in backend/app/repositories/search_event_repository.py:get_search_patterns

Testing

No API/UI changes. Type-only work for Batch 3 remains isolated in the draft PR.

@msaedi msaedi added the fix Runtime bug fix label Sep 21, 2025
@msaedi msaedi self-assigned this Sep 21, 2025
@msaedi msaedi added the fix Runtime bug fix label Sep 21, 2025
@vercel
Copy link
Copy Markdown

vercel bot commented Sep 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
instainstru-preview Ready Ready Preview Comment Sep 21, 2025 4:57pm
instructly Ready Ready Preview Comment Sep 21, 2025 4:57pm

@github-actions
Copy link
Copy Markdown

🔒 Privacy Audit Results

Privacy Audit Report

Date: 2025-09-21 17:02:57
Execution Time: 0.85s

Summary

  • Total Endpoints Tested: 7
  • Passed: 7
  • Failed: 0

No violations found!

Coverage

  • public_endpoints: 4/4
  • authenticated_endpoints: 3/3
  • total: 7/7

📎 View detailed report
🔍 Run triggered by: pull_request

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@msaedi msaedi merged commit 1dfa866 into main Sep 21, 2025
21 checks passed
@msaedi msaedi deleted the fix/search-analytics-cast-20250921 branch September 21, 2025 17:17
msaedi added a commit that referenced this pull request Mar 20, 2026
…6,37,38)

Platform launch gate:
- Replace hardcoded date gate on Public Profile with student_launch_enabled
  platform config flag, default false (#5)
- Exposed through /api/v1/config/public, read-only in this pass

Tab indicators:
- Standardize all tab indicators to text-width across platform (#27)
- Shared textWidthTabs helper, applied to Bookings + Earnings tabs

Booking status consistency:
- Completed badge → blue everywhere: list cards, detail page, modal (#28)
- Shared bookingStatus helper for badge color standard
  (Confirmed=green, Completed=blue, Cancelled=red)
- Empty states for Upcoming + Past booking tabs (#29)

Messages fixes:
- "Last updated manually" → actual timestamp or hidden (#36)
- "NEXT BOOKING" → sentence case "Next booking" (#37)
- Upcoming badge → green (matches Confirmed standard)
- Booking cards in dropdown are now clickable links

Left nav:
- Reordered: Dashboard, Bookings, Messages, Availability,
  Referrals, Reviews, Instructor Profile, Account (#38)
- Messages added as route link with MessageSquare icon
- Shared nav config drives both desktop and mobile

Verify: 13,198 backend + 392 frontend tests passing.
msaedi added a commit that referenced this pull request Mar 21, 2026
…design (#339)

* feat(dashboard): A-Team quick wins Part 1 — 12 UI fixes (#1,6,7,10,12,14,15,17,19,20,21,22,23)

Icons and visual cleanup:
- Replace confetti emoji with Lucide Rocket on Go Live button (#1)
- Replace crooked star with Phosphor Star on Reviews card (#6)
- Proportional star fill based on rating, inline "4.5★ (3)" metadata (#7)
- Add @phosphor-icons/react dependency

Account settings overhaul:
- Single-open accordion — only one section expanded at a time (#14)
- Section icons: UserRoundPen (Account), SlidersHorizontal (Prefs), Info (About) (#21)
- Remove Acknowledgments from About, rename support label (#20)
- Remove phone management block from Preferences (#17)
- Format phone display as (212) 555-1001 in Account Details (#10)
- Shared formatPhoneDisplay helper in lib/phone.ts
- 2FA state refreshes immediately after enable/disable (#12)

2FA modal copy:
- Title → "Connect your authenticator app" (#15)
- Step 1/Step 2 labels, button → "Verify"

Notification preferences:
- Isolate per-toggle pendi single toggle change no longer
  flashes entire Push column (#19)

Instructor profile:
- Remove Personal Information accordion from dashboard context (#22)
- Skills & Pricing icon → Phosphor Tag (#23)

Verify: 13,194 backend + 389 frontend tests passing.

* feat(dashboard): A-Team quick wins Part 2 — 8 UI fixes (#5,27,28,29,36,37,38)

Platform launch gate:
- Replace hardcoded date gate on Public Profile with student_launch_enabled
  platform config flag, default false (#5)
- Exposed through /api/v1/config/public, read-only in this pass

Tab indicators:
- Standardize all tab indicators to text-width across platform (#27)
- Shared textWidthTabs helper, applied to Bookings + Earnings tabs

Booking status consistency:
- Completed badge → blue everywhere: list cards, detail page, modal (#28)
- Shared bookingStatus helper for badge color standard
  (Confirmed=green, Completed=blue, Cancelled=red)
- Empty states for Upcoming + Past booking tabs (#29)

Messages fixes:
- "Last updated manually" → actual timestamp or hidden (#36)
- "NEXT BOOKING" → sentence case "Next booking" (#37)
- Upcoming badge → green (matches Confirmed standard)
- Booking cards in dropdown are now clickable links

Left nav:
- Reordered: Dashboard, Bookings, Messages, Availability,
  Referrals, Reviews, Instructor Profile, Account (#38)
- Messages added as route link with MessageSquare icon
- Shared nav config drives both desktop and mobile

Verify: 13,198 backend + 392 frontend tests passing.

* fix(dashboard): address testing feedback on quick wins branch

Fixes from manual testing:
- Restore two-line empty state format: bold heading + muted subtitle
  in dashed card (Upcoming + Past booking tabs)
- Remove MessageSquare icon from Messages nav item (text-only like others)
- Public Profile button: environment-aware — always enabled on
  preview/localhost, gated by student_launch_enabled on beta hosts only
- 2FA: redirect to /login after disable (immediate) and after enable
  (after backup codes acknowledgment) to prevent stale session UI
- Account Details: split Name into First name + Last name (locked),
  inline phone verification with Verified/Verify/Pending states
- Update e2e tests for new reviews card DOM (reviews-summary testid)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Runtime bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant