Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass fields in GET /lists/contents request. Retrieve all fields if "fields" parameter is not provided #69

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

bvsharp
Copy link
Collaborator

@bvsharp bvsharp commented Mar 11, 2024

Purpose

Temporary change to retrieve contents for all fields in entity type definition. This will keep things working until the UI is updated to send desired fields in contents request. This PR also provides support for passing the list of fields to retrieve content for in the GET /lists/contents API, although the UI will need to be updated to support that change.

Fix for MODLISTS-90: Newly selected columns aren't populated with data

@bvsharp bvsharp force-pushed the retrieve-all-fields-from-entity-type branch 3 times, most recently from 24e3c3e to 9982321 Compare March 12, 2024 19:01
@bvsharp bvsharp force-pushed the retrieve-all-fields-from-entity-type branch from 9982321 to 43a1573 Compare March 13, 2024 18:07
@bvsharp bvsharp marked this pull request as ready for review March 13, 2024 18:11
@kjain110
Copy link
Contributor

kjain110 commented Mar 13, 2024

@bvsharp can we add a comment somewhere that this is temporary change and it will be changed when UI work is done

Copy link

sonarcloud bot commented Mar 13, 2024

@bvsharp
Copy link
Collaborator Author

bvsharp commented Mar 13, 2024

@bvsharp can we add a comment somewhere that this is temporary change and it will be changed when UI work is done

Originally I did have a comment for that, but I ended up reworking things so that it'll work right out of the box once the UI is updated to send fields in the request. Which means that this change will actually end up being permanent. But I'll rename the PR in order to reflect that more clearly.

@bvsharp bvsharp changed the title Temporarily retrieve contents for all fields in entity type definition Pass fields in GET /lists/contents request. Retrieve all fields if "fields" parameter is not provided Mar 13, 2024
@kjain110
Copy link
Contributor

@bvsharp can we add a comment somewhere that this is temporary change and it will be changed when UI work is done

Originally I did have a comment for that, but I ended up reworking things so that it'll work right out of the box once the UI is updated to send fields in the request. Which means that this change will actually end up being permanent. But I'll rename the PR in order to reflect that more clearly.

Oh okay. Make sense to me. Thank you for the explanation @bvsharp

@bvsharp bvsharp merged commit a1580d5 into master Mar 13, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants