Skip to content

Conversation

@ankurjuneja
Copy link
Contributor

Rationale

EHR billing tables have extensible columns and when those table rows are updated, the existing values for extensible columns get lost when lsid is not found in table selector.

Related Pull Requests

}
else
{
throw new NotFoundException("LSID value not found in table - " + table.getName());
Copy link
Contributor

Choose a reason for hiding this comment

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

NotFoundException is useful when the client set us a request for something that doesn't exist. We don't log it as an error because it was a bogus request.

IllegalStateException is a better fit here, as this represents something that shouldn't happen. It'll get logged and be more likely to be noticed with test failures.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes sense. changed.

Copy link
Contributor

@labkey-jeckels labkey-jeckels left a comment

Choose a reason for hiding this comment

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

I know you're still tracking down test failures but the fact that this change exposed those problems is a good confirmation of the approach.

import org.labkey.api.security.permissions.Permission;
import org.labkey.api.security.permissions.UpdatePermission;
import org.labkey.api.util.Pair;
import org.labkey.api.view.NotFoundException;
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be trimmed now.

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