FOUR-30436 | Record List Column Selector Does Not Show All Collection Fields When Configuring a Collection Source#1914
Open
mcraeteisha wants to merge 1 commit into
Open
FOUR-30436 | Record List Column Selector Does Not Show All Collection Fields When Configuring a Collection Source#1914mcraeteisha wants to merge 1 commit into
mcraeteisha wants to merge 1 commit into
Conversation
Use a forwarded `fields` array (when present on the v-model payload) to populate column/field options in inspector components instead of inferring columns from the first record.
screen-builder
|
||||||||||||||||||||||||||||||||||||||||
| Project |
screen-builder
|
| Branch Review |
defect/FOUR-30436
|
| Run status |
|
| Run duration | 23m 09s |
| Commit |
|
| Committer | Teisha McRae |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
2
|
|
|
0
|
|
|
17
|
|
|
8
|
|
|
381
|
| View all changes introduced in this branch ↗︎ | |
Tests for review

SelectListCollection.spec.js • 1 failed test • CI - Chrome
| Test | Artifacts | |
|---|---|---|
| select list mustache > Verify Load values in select list mustache + collection |
Test Replay
Screenshots
|
|

DatePicker.spec.js • 1 failed test • CI - Chrome
| Test | Artifacts | |
|---|---|---|
| Date Picker > Date picker with maxDate equal or greater than first datepicker should return the current date |
Test Replay
Screenshots
|
|
|
Contributor
Author
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.





Issue
Ticket: FOUR-30436
When a Record List screen control is configured with Collection as its Source of Record List, the column selector dropdown in the inspector silently drops fields once the chosen collection has more than ~12 columns. Fields that are unset/null on the first record are missing from the dropdown even though they exist on the collection.
Solution
getCollectionColumns()incolumn-setup.vueandcollection-data-source.vuederived columns fromObject.entries(firstRecord.data), so any field that was null/empty on the first record was invisible. The schema endpoint (GET /collections/{id}/columns) was already being fetched incollection-records-list.vue::getFields(), but the result never reached the dropdowns.This PR threads the schema through the existing data flow:
collection-records-list.vue: added"fields"toCONFIG_FIELDSso the schema rides along on the v-model payload alongsidecollectionId,pmql, anddataRecordList. ReshapedgetFields()to populatethis.fieldsas[{ text, value }, …]from the columns endpoint, and reset it oncollectionIdclear to avoid stale leakage across collection swaps.collection-data-source.vueandcolumn-setup.vue:getCollectionColumns()now prefers the schema from the payload when populating the dropdown, with the first-record-derived path kept as a legacy fallback.The dropdown now reflects the collection's defined schema rather than just the keys present on the first record.
How To Test
Staff Claim Collection Workshopcollection that is attached in the JIRA ticket).50358 Data Collection Records(also attached in the JIRA ticket).GetDataCollectionRecords.ci:deploy
Code Review Checklist