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

Building and Testing Fern Definitions #1217

Merged
merged 57 commits into from
Feb 13, 2024

Conversation

jonahkaye
Copy link
Member

@jonahkaye jonahkaye commented Nov 22, 2023

Refs: #1212, #1219, #1371

Description

Todo

  • review fern definitions and fix nits.
  • fern generator larger changes: FHIR reference and document upload
  • finish writing tests for python and java
  • Update docx
  • integrate fern sdk testing into automatic testing in ci/cd?

Testing

  • This PR is 99% testing! I put the local testing of fern in each of the respective python, java, typescript folders under in the folder tester-local. Each tester-local roughly has the same tests.
  • The not local testing of each sdk is more sporadic, which makes sense since the sdks are not deployed. We might want to add an item to the go live to fully test the deployed sdks before sending sdk to customers.
  • The testing framework for java is a little bit funky. The local testing uses gradle but the testing for the actual sdk uses maven. I used what deep provided since I am really not so familiar with all the piping around running java code.
  • The not local testing for typescript still uses our current ts-sdk. It makes sense to rewrite this once we have the new ts-sdk deployed.

Note:

  • If when you look at the tester-local files, you think something should be renamed or a type looks funny, all that is of course changeable
  • You can build fern and run all local tests by running npm run test-fern-local from oss root

Release Plan

  • test
  • merge
  • proceed with the tasks in go live ticket, which is source of truth for all things Fern rn

@@ -6,7 +6,7 @@ api: "DELETE /medical/v1/patient/{id}"

## Query Params

<ParamField query="facilityId" type="string" required>
<ParamField query="facilityId" type="string" optional>
Copy link
Member Author

@jonahkaye jonahkaye Nov 23, 2023

Choose a reason for hiding this comment

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

modified to match endpoint definition.

@jonahkaye jonahkaye changed the title feat(sdk): Writing Java and Python Tests and Moving testers into sdk feat(sdk): Validating and Testing Fern Definitions Nov 23, 2023
@dsinghvi
Copy link
Contributor

@jonahkaye Filed an issue here to track the failing python generator.

Beyond that, the reason fern check is failing is because some of the examples are not correct and you should be able to resolve based on the error messages.

docs: Get the status of querying for patient's consolidated data.
method: GET
path: /patient/{id}/consolidated/query
createPatientConsolidated:
Copy link
Member Author

Choose a reason for hiding this comment

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

added missing endpoint

@@ -129,12 +136,42 @@ service:
conversionType: "pdf"
response:
body: $DocumentUrl.Example1

createDocumentReference:
Copy link
Member Author

Choose a reason for hiding this comment

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

This was a missing endpoint I added

jonahkaye and others added 3 commits November 24, 2023 14:01
* feat(fhir): reexport fhir types
Refs: #1212 

---------

Co-authored-by: jonahkaye <70026960+jonahkaye@users.noreply.github.com>
@jonahkaye jonahkaye self-assigned this Nov 27, 2023
- public

WebhookPatientConsolidatedDataPayload:
properties:
Copy link
Member Author

Choose a reason for hiding this comment

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

I generally just kept the types names as the same ones in the App. Idk if we want to change that

Copy link
Member Author

@jonahkaye jonahkaye left a comment

Choose a reason for hiding this comment

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

Added webhook types

Copy link
Member

@Goncharo Goncharo left a comment

Choose a reason for hiding this comment

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

generally LGTM - conditional approval on the comments getting addressed

fern/definition/medical/document.yml Outdated Show resolved Hide resolved
fern/definition/medical/fhir.yml Outdated Show resolved Hide resolved
fern/definition/medical/fhir.yml Outdated Show resolved Hide resolved
fern/definition/medical/fhir.yml Outdated Show resolved Hide resolved
fern/definition/medical/patient.yml Outdated Show resolved Hide resolved
@jonahkaye jonahkaye merged commit 715ebb9 into develop Feb 13, 2024
3 checks passed
@jonahkaye jonahkaye deleted the 1212-test-migration-python-sdk-tests branch February 13, 2024 03:31
@jonahkaye jonahkaye changed the title feat(sdk): Validating and Testing Fern Definitions Building and Testing Fern Definitions Feb 13, 2024
@jonahkaye jonahkaye mentioned this pull request Feb 13, 2024
1 task
Copy link

🎉 This PR is included in version 5.59.0-develop.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version 5.60.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants