async def _attach_ephemeral_status(
        self, db: AsyncSession, collections: List[Collection], current_user: schemas.User
    ) -> List[Collection]:
        """Attach ephemeral status to collections.

        Args:
            db: The database session
            collections: The collections to process
            current_user: Current user for authorization

        Returns:
            Collections with computed status
        """
        if not collections:
            return []

        for collection in collections:
            # Compute and set the ephemeral status
            collection.status = await self._compute_collection_status(db, collection, current_user)

        return collections
Attach ephemeral status to collections.

        Args:
            db: The database session
            collections: The collections to process
            current_user: Current user for authorization

        Returns:
            Collections with computed status
        
backend/airweave/crud/crud_collection.py