Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backend/app/indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"projects": {"type": "keyword"},
"tracks": {"type": "keyword"},
"looking_for": {"type": "text"},
"links": {"type": "keyword", "index": False},
# Stored, never searched: profile links are URL strings, speaker links are {title, url} objects.
"links": {"type": "object", "enabled": False},
"visibility": {"type": "keyword"},
"updated_at": LOCAL_TIME,
}
Expand Down
9 changes: 9 additions & 0 deletions backend/tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,12 @@ def test_emma_monday(sessions):
assert items["emma-coffee-alice"]["with_id"] == "alice"
assert items["emma-lunch-request"]["status"] == "pending"
assert all(i["sample"] for i in items.values())


def test_people_links_mapping_accepts_profile_and_speaker_links():
"""Profile links are URL strings and speaker links are {title, url}; one mapping must hold both."""
from app.config import settings
from app.indices import MAPPINGS

links = MAPPINGS[settings.idx_people]["properties"]["links"]
assert links == {"type": "object", "enabled": False}
Loading