Fix CRM skill truncation on profile pages#836
Merged
wicksipedia merged 2 commits intomainfrom Apr 30, 2026
Merged
Conversation
Dataverse caps each OData response at 5000 rows and returns @odata.nextLink for the rest. The CRM helper ignored that link, so once /ssw_userskills, /ssw_skills, /ssw_consultingservices, or the saved-query systemusers view grew past one page, rows were silently dropped. When a userskill row's matching skill fell on a later page, the skill lookup returned undefined and the row was filtered out as unpublished — explaining why some users (e.g. Marina Gerber) saw only a couple of skills on their profile despite having many Published skills in CRM. Add a fetchAllPages helper that loops while @odata.nextLink is set and use it for the four collections that can grow without bound. Leave /sites alone — it's a small fixed list. Fixes #835 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Documents the three-source build pipeline (markdown profiles + Dynamics CRM + YouTube) that gatsby-node.js stitches together, the China build branching, the webpack polyfill setup, the dev-only rules proxy, and the pinned dependencies that should not be bumped without checking packageComments in package.json. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
src/helpers/CRMApi.jsignored@odata.nextLink, silently truncating/ssw_userskills,/ssw_skills,/ssw_consultingservices, and the saved-query systemusers view.fetchAllPageshelper that loops on@odata.nextLinkand uses it for the four unbounded collections./sitesleft as-is.Fixes #835
Test plan
yarn build) and confirm console showsFetched N rows from .../ssw_userskills across M page(s)withN > 5000andM > 1main— verify the same on staging before promoting torelease/xx🤖 Generated with Claude Code