-
Notifications
You must be signed in to change notification settings - Fork 18
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
[DPC-4442] Remove Endpoint #2396
Conversation
@@ -170,9 +163,9 @@ private Map<String, Reference> seedPatientBundle(FHIREntityConverter converter, | |||
}) | |||
.map(entity -> patientEntityToRecord(context, entity)) | |||
.peek(context::executeInsert) | |||
.forEach(record -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"record" is a protected term
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to see it go!
Have we made sure the web and admin still work? |
</changeSet> | ||
|
||
<changeSet id="drop-organization-endpoints-table" author="ashley-weaver"> | ||
<dropTable tableName="ORGANIZATION_ENDPOINTS"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to test this migration in a deployed environment before merging or do you have a high level of confidence making these changes? @ashley-weaver
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that cleaning up the databases as a separate ticket is probably safer.
src/main/resources/webster.tmpl.json
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we even use this file anywhere? can it be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like junk to me. It was added as part of a token validation, but doesn't seem to be used anywhere. grep didn't find it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
I don't think the edit-registered-organization workflow does anything anymore, so it can be removed from dpc-admin.
Also, we might want to leave the table in in case we need to roll back.
<div class="ds-u-margin-bottom--1"> | ||
Status: <%= @organization.registered_organization.fhir_endpoint.status.titleize %> | ||
</div> | ||
|
||
<%= link_to "Edit", edit_organization_registered_organization_path( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably go, as the only editing is on the endpoint.
@@ -0,0 +1,12 @@ | |||
class DropFhirEndpointsTable < ActiveRecord::Migration[7.2] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am kind of thinking we should leave this in case we need to roll back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Some minor tweaks if you feel like it!
🎫 Ticket
https://jira.cms.gov/browse/DPC-4442
🛠 Changes
EndpointResource and all associated code removed.
ℹ️ Context
Organization endpoints are not being used, and can be removed.
🧪 Validation
Tests updated.