feat: add user_id index to profiles table for faster lookups
The new index on the `user_id` column in the `profiles` table improves query performance when filtering or joining by user identifier, reducing full table scans during profile retrieval operations.
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
import pytest
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def test_attachment_upload_endpoint(alice):
|
||||
page, user = alice
|
||||
page.goto(f"{pytest.BASE_URL}/feed", wait_until="domcontentloaded")
|
||||
page.locator(".feed-fab").first.wait_for(state="visible", timeout=10000)
|
||||
page.locator(".feed-fab").click()
|
||||
page.locator("#create-post-modal").wait_for(state="visible")
|
||||
|
||||
|
||||
def test_attachment_store_and_serve(alice):
|
||||
page, user = alice
|
||||
uploads = page.context.request.post(f"{pytest.BASE_URL}/attachments/upload")
|
||||
|
||||
|
||||
def test_post_attachments_display(alice):
|
||||
page, user = alice
|
||||
page.goto(f"{pytest.BASE_URL}/feed", wait_until="domcontentloaded")
|
||||
|
||||
|
||||
def test_project_attachments_display(alice):
|
||||
page, user = alice
|
||||
page.goto(f"{pytest.BASE_URL}/projects", wait_until="domcontentloaded")
|
||||
|
||||
|
||||
def test_bug_attachments_display(alice):
|
||||
page, user = alice
|
||||
page.goto(f"{pytest.BASE_URL}/bugs", wait_until="domcontentloaded")
|
||||
|
||||
|
||||
def test_attachment_uploader_component_present(alice):
|
||||
page, user = alice
|
||||
page.goto(f"{pytest.BASE_URL}/feed", wait_until="domcontentloaded")
|
||||
page.locator(".feed-fab").wait_for(state="visible", timeout=10000)
|
||||
page.locator(".feed-fab").click()
|
||||
page.locator("#create-post-modal").wait_for(state="visible")
|
||||
page.locator(".attachment-upload-area").wait_for(state="visible", timeout=5000)
|
||||
page.locator(".attachment-upload-btn").wait_for(state="visible", timeout=5000)
|
||||
Reference in New Issue
Block a user