Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix document-user relationship and optimize data fetching #1

Copy link
Copy link
@m-rousseau

Description

@m-rousseau
Issue body actions

Changes Made

This PR addresses the document-user relationship issues and implements several optimizations:

Key Changes

  • Fixed document-user relationship by implementing separate queries for better data consistency
  • Optimized data fetching by using batch operations for user emails
  • Updated admin interface to handle document management more efficiently
  • Added proper error handling for document operations
  • Implemented type safety improvements

Technical Details

  • Modified fetchAllDocuments to use separate queries and batch processing
  • Updated type definitions for better type safety
  • Improved error handling across document operations
  • Optimized database queries to reduce load

Testing

  • Verified that documents are correctly associated with users
  • Confirmed that user emails are properly fetched and displayed
  • Tested error handling scenarios
  • Checked performance with batch operations

Related Issues

  • Fixes PGRST200 error related to document-user relationships
  • Improves overall data fetching efficiency

Please review the changes and let me know if any adjustments are needed.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.