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

feat(agent): Agent/$upgrade operation #4613

Merged
merged 70 commits into from
Jun 22, 2024
Merged

feat(agent): Agent/$upgrade operation #4613

merged 70 commits into from
Jun 22, 2024

Conversation

ThatOneBro
Copy link
Member

@ThatOneBro ThatOneBro commented May 31, 2024

Closes #3900
Closes #4225

Copy link

vercel bot commented May 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
medplum-provider ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 21, 2024 8:30pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
medplum-app ⬜️ Ignored (Inspect) Visit Preview Jun 21, 2024 8:30pm
medplum-storybook ⬜️ Ignored (Inspect) Visit Preview Jun 21, 2024 8:30pm
medplum-www ⬜️ Ignored (Inspect) Visit Preview Jun 21, 2024 8:30pm

Copy link
Member

@codyebberson codyebberson left a comment

Choose a reason for hiding this comment

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

Big picture looks good. See comments and questions. I'm going to test and run it on some windows machines before approval, but nothing else blocking.

Thanks for hard work on this, I imagine it was a slog 🙏

packages/fhir-router/src/fhirrouter.ts Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason this has to be a separately file from main.ts? Kinda confusing to have main.ts and agent-main.ts.

Copy link
Member Author

@ThatOneBro ThatOneBro Jun 18, 2024

Choose a reason for hiding this comment

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

main.ts now is the entry point for two different "binaries"... I think it makes sense to split the main entry point from the entry point of each of the two paths...

Also when testing the main, I need to mock agentMain in order to test that it actually calls the right main between agentMain and upgraderMain, which is not possible if agentMain is in the same module as main itself.

Copy link
Member Author

Choose a reason for hiding this comment

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

As a suggestion I'm not completely sold on but might bring more uniformity, should we rename agent-main.ts to agent.ts? So it's upgrader.ts and agent.ts ?

packages/agent/src/upgrader-utils.ts Outdated Show resolved Hide resolved
packages/agent/src/upgrader-utils.ts Outdated Show resolved Hide resolved
packages/app/src/resource/ToolsPage.test.tsx Show resolved Hide resolved
Copy link

sonarcloud bot commented Jun 21, 2024

@ThatOneBro ThatOneBro added this pull request to the merge queue Jun 22, 2024
Merged via the queue into main with commit 7fcfc60 Jun 22, 2024
32 checks passed
@ThatOneBro ThatOneBro deleted the derrick-agent-upgrade branch June 22, 2024 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Find alternative to pkg for agent Medplum Agent Command: Force Upgrade
3 participants