Repository navigation
Add experience-backed skill filtering - #475
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Developers::DirectorySearch(skill_id, profile_id)index for the skill-to-profile lookupBehavior
Query structure
Developers::DirectorySearchowns the text, skill, experience, country, availability, and remote filters and returns a composable Active Record relation. The controller only resolves the selected skill and supplies normalized filter inputs.Skill matching remains a selective
INsubquery, separate from the free-text search join. SQLite's query plan uses covering indexes for bothdevelopers_profile_skillsanddevelopers_experience_skills, avoiding profile-skill table lookups.Testing
test/services/developers/directory_search_test.rbtest/integration/public_site_test.rbtest/models/developers/profile_test.rbLocal Rails test startup requires the existing
Vips.blockworkaround because libvips is unavailable on this machine; only that initialization hook was stubbed for the focused test run.