Skip to content

Fetch pub values from evaluations integration#62

Merged
3mcd merged 1 commit into
mainfrom
em/fetch-pub-values
Aug 31, 2023
Merged

Fetch pub values from evaluations integration#62
3mcd merged 1 commit into
mainfrom
em/fetch-pub-values

Conversation

@3mcd
Copy link
Copy Markdown
Collaborator

@3mcd 3mcd commented Aug 31, 2023

Quick PR that uses the new core API route structure to fetch Pub fields in the evaluations integration.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes a React warning that snuck in.

@isTravis isTravis temporarily deployed to em/fetch-pub-values - integration-evaluations PR #62 August 31, 2023 14:57 — with Render Destroyed
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@qweliant I wasn't able to get these routes working without the leading /.

@3mcd 3mcd force-pushed the em/fetch-pub-values branch from 949469e to c514cc6 Compare August 31, 2023 15:02
@isTravis isTravis temporarily deployed to em/fetch-pub-values - core PR #62 August 31, 2023 15:02 — with Render Destroyed
@isTravis isTravis temporarily deployed to em/fetch-pub-values - integration-evaluations PR #62 August 31, 2023 15:02 — with Render Destroyed
Copy link
Copy Markdown
Collaborator Author

@3mcd 3mcd Aug 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now the client types all pub values as unknown so I just do an explicit conversion/cast here so TS doesn't yell at me.

Comment thread packages/sdk/src/lib/client.ts Outdated
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed put to patch since the verb changed in core.

Comment thread packages/sdk/src/lib/client.ts Outdated
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Snuck this in as a contrived example of the SDK doing runtime validation of pub fields.

@3mcd 3mcd requested review from kalilsn and qweliant and removed request for kalilsn August 31, 2023 15:04
@3mcd 3mcd force-pushed the em/fetch-pub-values branch from c514cc6 to 70f96b4 Compare August 31, 2023 15:06
@isTravis isTravis temporarily deployed to em/fetch-pub-values - core PR #62 August 31, 2023 15:06 — with Render Destroyed
@isTravis isTravis temporarily deployed to em/fetch-pub-values - integration-evaluations PR #62 August 31, 2023 15:06 — with Render Destroyed
"title": {
"id": "aa63cab5-3729-4a12-813b-eae316eceb69"
}
},
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still doesn't do much, just a placeholder manifest.

@3mcd 3mcd requested review from kalilsn and removed request for qweliant August 31, 2023 15:07
Copy link
Copy Markdown
Contributor

@kalilsn kalilsn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catches, thanks!

@3mcd 3mcd merged commit 4017838 into main Aug 31, 2023
@3mcd 3mcd deleted the em/fetch-pub-values branch August 31, 2023 15:28
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